@cloudbase/framework-plugin-low-code 1.0.1 → 1.0.2-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (218) hide show
  1. package/package.json +4 -4
  2. package/template/src/datasources/index.js.tpl +0 -2
  3. package/lib/builder/config/common.d.ts +0 -2
  4. package/lib/builder/config/common.d.ts.map +0 -1
  5. package/lib/builder/config/common.js +0 -13
  6. package/lib/builder/config/index.d.ts +0 -3
  7. package/lib/builder/config/index.d.ts.map +0 -1
  8. package/lib/builder/config/index.js +0 -29
  9. package/lib/builder/config/mp.d.ts +0 -2
  10. package/lib/builder/config/mp.d.ts.map +0 -1
  11. package/lib/builder/config/mp.js +0 -13
  12. package/lib/builder/core/copy.d.ts +0 -5
  13. package/lib/builder/core/copy.d.ts.map +0 -1
  14. package/lib/builder/core/copy.js +0 -62
  15. package/lib/builder/core/generate.d.ts +0 -9
  16. package/lib/builder/core/generate.d.ts.map +0 -1
  17. package/lib/builder/core/generate.js +0 -128
  18. package/lib/builder/core/index.d.ts +0 -32
  19. package/lib/builder/core/index.d.ts.map +0 -1
  20. package/lib/builder/core/index.js +0 -149
  21. package/lib/builder/core/material.d.ts +0 -4
  22. package/lib/builder/core/material.d.ts.map +0 -1
  23. package/lib/builder/core/material.js +0 -80
  24. package/lib/builder/core/plugin.d.ts +0 -4
  25. package/lib/builder/core/plugin.d.ts.map +0 -1
  26. package/lib/builder/core/plugin.js +0 -30
  27. package/lib/builder/core/prepare.d.ts +0 -8
  28. package/lib/builder/core/prepare.d.ts.map +0 -1
  29. package/lib/builder/core/prepare.js +0 -108
  30. package/lib/builder/core/webpack.d.ts +0 -15
  31. package/lib/builder/core/webpack.d.ts.map +0 -1
  32. package/lib/builder/core/webpack.js +0 -58
  33. package/lib/builder/mp/BuildContext.d.ts +0 -13
  34. package/lib/builder/mp/BuildContext.d.ts.map +0 -1
  35. package/lib/builder/mp/BuildContext.js +0 -2
  36. package/lib/builder/mp/index.d.ts +0 -33
  37. package/lib/builder/mp/index.d.ts.map +0 -1
  38. package/lib/builder/mp/index.js +0 -453
  39. package/lib/builder/mp/lowcode.d.ts +0 -8
  40. package/lib/builder/mp/lowcode.d.ts.map +0 -1
  41. package/lib/builder/mp/lowcode.js +0 -58
  42. package/lib/builder/mp/materials.d.ts +0 -15
  43. package/lib/builder/mp/materials.d.ts.map +0 -1
  44. package/lib/builder/mp/materials.js +0 -338
  45. package/lib/builder/mp/mixMode.d.ts +0 -10
  46. package/lib/builder/mp/mixMode.d.ts.map +0 -1
  47. package/lib/builder/mp/mixMode.js +0 -215
  48. package/lib/builder/mp/mp_config.d.ts +0 -18
  49. package/lib/builder/mp/mp_config.d.ts.map +0 -1
  50. package/lib/builder/mp/mp_config.js +0 -206
  51. package/lib/builder/mp/util.d.ts +0 -20
  52. package/lib/builder/mp/util.d.ts.map +0 -1
  53. package/lib/builder/mp/util.js +0 -239
  54. package/lib/builder/mp/wxml.d.ts +0 -16
  55. package/lib/builder/mp/wxml.d.ts.map +0 -1
  56. package/lib/builder/mp/wxml.js +0 -310
  57. package/lib/builder/service/builder/copy.d.ts +0 -14
  58. package/lib/builder/service/builder/copy.d.ts.map +0 -1
  59. package/lib/builder/service/builder/copy.js +0 -185
  60. package/lib/builder/service/builder/generate.d.ts +0 -52
  61. package/lib/builder/service/builder/generate.d.ts.map +0 -1
  62. package/lib/builder/service/builder/generate.js +0 -800
  63. package/lib/builder/service/builder/index.d.ts +0 -16
  64. package/lib/builder/service/builder/index.d.ts.map +0 -1
  65. package/lib/builder/service/builder/index.js +0 -69
  66. package/lib/builder/service/builder/plugin.d.ts +0 -8
  67. package/lib/builder/service/builder/plugin.d.ts.map +0 -1
  68. package/lib/builder/service/builder/plugin.js +0 -149
  69. package/lib/builder/service/builder/webpack.d.ts +0 -91
  70. package/lib/builder/service/builder/webpack.d.ts.map +0 -1
  71. package/lib/builder/service/builder/webpack.js +0 -594
  72. package/lib/builder/types/common.d.ts +0 -12
  73. package/lib/builder/types/common.d.ts.map +0 -1
  74. package/lib/builder/types/common.js +0 -7
  75. package/lib/builder/util/common.d.ts +0 -36
  76. package/lib/builder/util/common.d.ts.map +0 -1
  77. package/lib/builder/util/common.js +0 -257
  78. package/lib/builder/util/console.d.ts +0 -2
  79. package/lib/builder/util/console.d.ts.map +0 -1
  80. package/lib/builder/util/console.js +0 -13
  81. package/lib/builder/util/generateFiles.d.ts +0 -6
  82. package/lib/builder/util/generateFiles.d.ts.map +0 -1
  83. package/lib/builder/util/generateFiles.js +0 -94
  84. package/lib/builder/util/index.d.ts +0 -2
  85. package/lib/builder/util/index.d.ts.map +0 -1
  86. package/lib/builder/util/index.js +0 -13
  87. package/lib/builder/util/junk.d.ts +0 -3
  88. package/lib/builder/util/junk.d.ts.map +0 -1
  89. package/lib/builder/util/junk.js +0 -25
  90. package/lib/builder/util/mp.d.ts +0 -5
  91. package/lib/builder/util/mp.d.ts.map +0 -1
  92. package/lib/builder/util/mp.js +0 -99
  93. package/lib/builder/util/name-mangler.d.ts +0 -3
  94. package/lib/builder/util/name-mangler.d.ts.map +0 -1
  95. package/lib/builder/util/name-mangler.js +0 -7
  96. package/lib/builder/util/net.d.ts +0 -3
  97. package/lib/builder/util/net.d.ts.map +0 -1
  98. package/lib/builder/util/net.js +0 -54
  99. package/lib/builder/util/process.d.ts +0 -9
  100. package/lib/builder/util/process.d.ts.map +0 -1
  101. package/lib/builder/util/process.js +0 -28
  102. package/lib/builder/util/style.d.ts +0 -2
  103. package/lib/builder/util/style.d.ts.map +0 -1
  104. package/lib/builder/util/style.js +0 -13
  105. package/lib/builder/util/weapp.d.ts +0 -2
  106. package/lib/builder/util/weapp.d.ts.map +0 -1
  107. package/lib/builder/util/weapp.js +0 -13
  108. package/lib/generator/config/common.d.ts +0 -6
  109. package/lib/generator/config/common.d.ts.map +0 -1
  110. package/lib/generator/config/common.js +0 -25
  111. package/lib/generator/config/index.d.ts +0 -18
  112. package/lib/generator/config/index.d.ts.map +0 -1
  113. package/lib/generator/config/index.js +0 -43
  114. package/lib/generator/config/mp.d.ts +0 -56
  115. package/lib/generator/config/mp.d.ts.map +0 -1
  116. package/lib/generator/config/mp.js +0 -104
  117. package/lib/generator/core/generate.d.ts +0 -59
  118. package/lib/generator/core/generate.d.ts.map +0 -1
  119. package/lib/generator/core/generate.js +0 -669
  120. package/lib/generator/core/index.d.ts +0 -25
  121. package/lib/generator/core/index.d.ts.map +0 -1
  122. package/lib/generator/core/index.js +0 -102
  123. package/lib/generator/core/material.d.ts +0 -14
  124. package/lib/generator/core/material.d.ts.map +0 -1
  125. package/lib/generator/core/material.js +0 -230
  126. package/lib/generator/template.d.ts +0 -3
  127. package/lib/generator/template.d.ts.map +0 -1
  128. package/lib/generator/template.js +0 -3
  129. package/lib/generator/types/common.d.ts +0 -69
  130. package/lib/generator/types/common.d.ts.map +0 -1
  131. package/lib/generator/types/common.js +0 -21
  132. package/lib/generator/util/common.d.ts +0 -36
  133. package/lib/generator/util/common.d.ts.map +0 -1
  134. package/lib/generator/util/common.js +0 -238
  135. package/lib/generator/util/console.d.ts +0 -3
  136. package/lib/generator/util/console.d.ts.map +0 -1
  137. package/lib/generator/util/console.js +0 -17
  138. package/lib/generator/util/index.d.ts +0 -2
  139. package/lib/generator/util/index.d.ts.map +0 -1
  140. package/lib/generator/util/index.js +0 -13
  141. package/lib/generator/util/name-mangler.d.ts +0 -17
  142. package/lib/generator/util/name-mangler.d.ts.map +0 -1
  143. package/lib/generator/util/name-mangler.js +0 -63
  144. package/lib/generator/util/postcss-rpx.d.ts +0 -11
  145. package/lib/generator/util/postcss-rpx.d.ts.map +0 -1
  146. package/lib/generator/util/postcss-rpx.js +0 -16
  147. package/lib/generator/util/style.d.ts +0 -6
  148. package/lib/generator/util/style.d.ts.map +0 -1
  149. package/lib/generator/util/style.js +0 -92
  150. package/lib/generator/util/weapp.d.ts +0 -5
  151. package/lib/generator/util/weapp.d.ts.map +0 -1
  152. package/lib/generator/util/weapp.js +0 -17
  153. package/lib/types.d.ts +0 -14
  154. package/lib/types.d.ts.map +0 -1
  155. package/lib/types.js +0 -19
  156. package/lib/weapps-core/config/index.d.ts +0 -2
  157. package/lib/weapps-core/config/index.d.ts.map +0 -1
  158. package/lib/weapps-core/config/index.js +0 -13
  159. package/lib/weapps-core/config/style.d.ts +0 -7
  160. package/lib/weapps-core/config/style.d.ts.map +0 -1
  161. package/lib/weapps-core/config/style.js +0 -70
  162. package/lib/weapps-core/index.d.ts +0 -6
  163. package/lib/weapps-core/index.d.ts.map +0 -1
  164. package/lib/weapps-core/index.js +0 -31
  165. package/lib/weapps-core/types/action.d.ts +0 -25
  166. package/lib/weapps-core/types/action.d.ts.map +0 -1
  167. package/lib/weapps-core/types/action.js +0 -28
  168. package/lib/weapps-core/types/app.d.ts +0 -141
  169. package/lib/weapps-core/types/app.d.ts.map +0 -1
  170. package/lib/weapps-core/types/app.js +0 -21
  171. package/lib/weapps-core/types/appbuild.d.ts +0 -63
  172. package/lib/weapps-core/types/appbuild.d.ts.map +0 -1
  173. package/lib/weapps-core/types/appbuild.js +0 -78
  174. package/lib/weapps-core/types/code_types.d.ts +0 -26
  175. package/lib/weapps-core/types/code_types.d.ts.map +0 -1
  176. package/lib/weapps-core/types/code_types.js +0 -2
  177. package/lib/weapps-core/types/git.d.ts +0 -7
  178. package/lib/weapps-core/types/git.d.ts.map +0 -1
  179. package/lib/weapps-core/types/git.js +0 -2
  180. package/lib/weapps-core/types/index.d.ts +0 -11
  181. package/lib/weapps-core/types/index.d.ts.map +0 -1
  182. package/lib/weapps-core/types/index.js +0 -22
  183. package/lib/weapps-core/types/lowcode.d.ts +0 -26
  184. package/lib/weapps-core/types/lowcode.d.ts.map +0 -1
  185. package/lib/weapps-core/types/lowcode.js +0 -25
  186. package/lib/weapps-core/types/material.d.ts +0 -90
  187. package/lib/weapps-core/types/material.d.ts.map +0 -1
  188. package/lib/weapps-core/types/material.js +0 -9
  189. package/lib/weapps-core/types/plugins.d.ts +0 -17
  190. package/lib/weapps-core/types/plugins.d.ts.map +0 -1
  191. package/lib/weapps-core/types/plugins.js +0 -2
  192. package/lib/weapps-core/types/style.d.ts +0 -93
  193. package/lib/weapps-core/types/style.d.ts.map +0 -1
  194. package/lib/weapps-core/types/style.js +0 -2
  195. package/lib/weapps-core/types/web.d.ts +0 -120
  196. package/lib/weapps-core/types/web.d.ts.map +0 -1
  197. package/lib/weapps-core/types/web.js +0 -2
  198. package/lib/weapps-core/utils/appbuild.d.ts +0 -6
  199. package/lib/weapps-core/utils/appbuild.d.ts.map +0 -1
  200. package/lib/weapps-core/utils/appbuild.js +0 -40
  201. package/lib/weapps-core/utils/common.d.ts +0 -16
  202. package/lib/weapps-core/utils/common.d.ts.map +0 -1
  203. package/lib/weapps-core/utils/common.js +0 -90
  204. package/lib/weapps-core/utils/file.d.ts +0 -12
  205. package/lib/weapps-core/utils/file.d.ts.map +0 -1
  206. package/lib/weapps-core/utils/file.js +0 -142
  207. package/lib/weapps-core/utils/formily.d.ts +0 -5
  208. package/lib/weapps-core/utils/formily.d.ts.map +0 -1
  209. package/lib/weapps-core/utils/formily.js +0 -407
  210. package/lib/weapps-core/utils/index.d.ts +0 -7
  211. package/lib/weapps-core/utils/index.d.ts.map +0 -1
  212. package/lib/weapps-core/utils/index.js +0 -18
  213. package/lib/weapps-core/utils/lowcdoe.d.ts +0 -4
  214. package/lib/weapps-core/utils/lowcdoe.d.ts.map +0 -1
  215. package/lib/weapps-core/utils/lowcdoe.js +0 -69
  216. package/lib/weapps-core/utils/style.d.ts +0 -17
  217. package/lib/weapps-core/utils/style.d.ts.map +0 -1
  218. package/lib/weapps-core/utils/style.js +0 -321
@@ -1,70 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.KEBAB_REGEX = exports.DISTANCE_KEY_LIST = exports.PERCENTAGE_KEY_LIST = exports.WRAPPER_REMOVE_STYLE_KEY_LIST = exports.SELF_REMOVE_WITH_PERCENTAGE_KEY_LIST = exports.SELF_REMOVE_STYLE_KEY_LIST = void 0;
4
- exports.SELF_REMOVE_STYLE_KEY_LIST = [
5
- 'margin',
6
- 'marginTop',
7
- 'marginRight',
8
- 'marginBottom',
9
- 'marginLeft',
10
- 'position',
11
- 'top',
12
- 'right',
13
- 'bottom',
14
- 'left',
15
- 'float',
16
- 'transform',
17
- 'animation',
18
- ];
19
- exports.SELF_REMOVE_WITH_PERCENTAGE_KEY_LIST = ['width', 'height'];
20
- exports.WRAPPER_REMOVE_STYLE_KEY_LIST = [
21
- 'justifyContent',
22
- 'alignItems',
23
- 'flexDirection',
24
- 'flexWrap',
25
- 'flexFlow',
26
- 'background',
27
- 'backgroundColor',
28
- 'backgroundImage',
29
- 'padding',
30
- 'paddingTop',
31
- 'paddingRight',
32
- 'paddingBottom',
33
- 'paddingLeft',
34
- 'border',
35
- 'borderStyle',
36
- 'borderWidth',
37
- 'borderColor',
38
- 'borderImage',
39
- 'borderRadius',
40
- 'borderTop',
41
- 'borderRight',
42
- 'borderBottom',
43
- 'borderLeft',
44
- 'outline',
45
- 'outlineColor',
46
- 'outlineOffset',
47
- 'outlineStyle',
48
- 'outlineWidth',
49
- 'boxShadow',
50
- 'columnCount',
51
- 'columnGap',
52
- 'columnRuleStyle',
53
- 'columnRuleWidth',
54
- 'columnRuleColor',
55
- 'columnRule',
56
- 'columnSpan',
57
- 'columnWidth',
58
- ];
59
- exports.PERCENTAGE_KEY_LIST = [
60
- 'opacity',
61
- 'order',
62
- 'flex',
63
- 'flexGrow',
64
- 'flexShrink',
65
- 'zIndex',
66
- 'fontWeight',
67
- 'borderImage',
68
- ];
69
- exports.DISTANCE_KEY_LIST = ['top', 'right', 'bottom', 'left'];
70
- exports.KEBAB_REGEX = /[A-Z]/g;
@@ -1,6 +0,0 @@
1
- export * from './types';
2
- export * from './utils';
3
- import * as formily from './utils/formily';
4
- import * as style from './utils/style';
5
- export { formily, style };
6
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/weapps-core/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA;AAEvB,OAAO,KAAK,OAAO,MAAM,iBAAiB,CAAA;AAC1C,OAAO,KAAK,KAAK,MAAM,eAAe,CAAA;AAEtC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAA"}
@@ -1,31 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
- }) : (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- o[k2] = m[k];
8
- }));
9
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
- Object.defineProperty(o, "default", { enumerable: true, value: v });
11
- }) : function(o, v) {
12
- o["default"] = v;
13
- });
14
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
16
- };
17
- var __importStar = (this && this.__importStar) || function (mod) {
18
- if (mod && mod.__esModule) return mod;
19
- var result = {};
20
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
21
- __setModuleDefault(result, mod);
22
- return result;
23
- };
24
- Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.style = exports.formily = void 0;
26
- __exportStar(require("./types"), exports);
27
- __exportStar(require("./utils"), exports);
28
- const formily = __importStar(require("./utils/formily"));
29
- exports.formily = formily;
30
- const style = __importStar(require("./utils/style"));
31
- exports.style = style;
@@ -1,25 +0,0 @@
1
- export declare enum BaseActionTrigger {
2
- INIT = "__weapps_action_trigger_init",
3
- CLICK = "__weapps_action_trigger_click",
4
- MOUSE_ENTER = "__weapps_action_trigger_mouseEnter",
5
- MOUSE_LEAVE = "__weapps_action_trigger_mouseLeave",
6
- DOUBLE_CLICK = "__weapps_action_trigger_double_click",
7
- LONG_PRESS = "__weapps_action_trigger_long_press",
8
- ENTER_VIEW = "__weapps_action_trigger_enter_view",
9
- LEAVE_VIEW = "__weapps_action_trigger_leave_view",
10
- UNMOUNT = "__weapps_action_trigger_unmount",
11
- FIELD_VALUE_CHANGE = "__weapps_action_trigger_field_value_change"
12
- }
13
- export declare type ActionTrigger = BaseActionTrigger | 'string';
14
- export declare enum ActionType {
15
- Rematch = "rematch",
16
- Material = "material",
17
- GeneralFunc = "general-func",
18
- LifeCycle = "lifecycle",
19
- PropEvent = "prop-event",
20
- HandlerFn = "handler-fn",
21
- Inline = "inline",
22
- Platform = "platform",
23
- DataSource = "dataSource"
24
- }
25
- //# sourceMappingURL=action.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"action.d.ts","sourceRoot":"","sources":["../../../src/weapps-core/types/action.ts"],"names":[],"mappings":"AAAA,oBAAY,iBAAiB;IAC3B,IAAI,iCAAiC;IACrC,KAAK,kCAAkC;IACvC,WAAW,uCAAuC;IAClD,WAAW,uCAAuC;IAClD,YAAY,yCAAyC;IACrD,UAAU,uCAAuC;IACjD,UAAU,uCAAuC;IACjD,UAAU,uCAAuC;IACjD,OAAO,oCAAoC;IAC3C,kBAAkB,+CAA+C;CAClE;AAED,oBAAY,aAAa,GAAG,iBAAiB,GAAG,QAAQ,CAAA;AAExD,oBAAY,UAAU;IACpB,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,WAAW,iBAAiB;IAC5B,SAAS,cAAc;IACvB,SAAS,eAAe;IACxB,SAAS,eAAe;IACxB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,UAAU,eAAe;CAC1B"}
@@ -1,28 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ActionType = exports.BaseActionTrigger = void 0;
4
- var BaseActionTrigger;
5
- (function (BaseActionTrigger) {
6
- BaseActionTrigger["INIT"] = "__weapps_action_trigger_init";
7
- BaseActionTrigger["CLICK"] = "__weapps_action_trigger_click";
8
- BaseActionTrigger["MOUSE_ENTER"] = "__weapps_action_trigger_mouseEnter";
9
- BaseActionTrigger["MOUSE_LEAVE"] = "__weapps_action_trigger_mouseLeave";
10
- BaseActionTrigger["DOUBLE_CLICK"] = "__weapps_action_trigger_double_click";
11
- BaseActionTrigger["LONG_PRESS"] = "__weapps_action_trigger_long_press";
12
- BaseActionTrigger["ENTER_VIEW"] = "__weapps_action_trigger_enter_view";
13
- BaseActionTrigger["LEAVE_VIEW"] = "__weapps_action_trigger_leave_view";
14
- BaseActionTrigger["UNMOUNT"] = "__weapps_action_trigger_unmount";
15
- BaseActionTrigger["FIELD_VALUE_CHANGE"] = "__weapps_action_trigger_field_value_change";
16
- })(BaseActionTrigger = exports.BaseActionTrigger || (exports.BaseActionTrigger = {}));
17
- var ActionType;
18
- (function (ActionType) {
19
- ActionType["Rematch"] = "rematch";
20
- ActionType["Material"] = "material";
21
- ActionType["GeneralFunc"] = "general-func";
22
- ActionType["LifeCycle"] = "lifecycle";
23
- ActionType["PropEvent"] = "prop-event";
24
- ActionType["HandlerFn"] = "handler-fn";
25
- ActionType["Inline"] = "inline";
26
- ActionType["Platform"] = "platform";
27
- ActionType["DataSource"] = "dataSource";
28
- })(ActionType = exports.ActionType || (exports.ActionType = {}));
@@ -1,141 +0,0 @@
1
- import { CSSProperties, ICommonStyle } from './style';
2
- import { ActionType } from './action';
3
- import { IWeAppCode } from './lowcode';
4
- import { IMiniprogramPlugin, IPlugin } from '../types/plugins';
5
- import { HISTORY_TYPE } from '../../types';
6
- export interface IAppAndPageVar {
7
- dataset?: {
8
- state?: {};
9
- param?: {};
10
- };
11
- vars: {
12
- data: any[];
13
- };
14
- }
15
- export interface IWeAppData {
16
- mpPkgUrl?: string;
17
- selectedPageId?: string;
18
- historyType?: HISTORY_TYPE;
19
- pageInstanceList: IWeAppPage[];
20
- lowCodes: IWeAppCode[];
21
- npmDependencies: {
22
- [packageName: string]: string;
23
- };
24
- plugins: IPlugin[];
25
- maxID?: number;
26
- rootPath?: string;
27
- themeVars?: {
28
- [key: string]: string;
29
- };
30
- presetColors?: string[];
31
- appConfig?: Record<string, any>;
32
- envId: string;
33
- datasources: any[];
34
- dataset?: IAppAndPageVar['dataset'];
35
- vars: IAppAndPageVar['vars'];
36
- miniprogramPlugins: IMiniprogramPlugin[];
37
- extra: {
38
- domain: string;
39
- clientId?: string;
40
- loginConfigVersion?: string;
41
- };
42
- }
43
- export interface IWeAppPage {
44
- id: string;
45
- isHome: boolean;
46
- data: {
47
- [prop: string]: IDynamicValue;
48
- };
49
- listeners: IEventListener[];
50
- componentInstances: {
51
- [key: string]: IWeAppComponentInstance;
52
- };
53
- pluginInstances: any[];
54
- commonStyle: ICommonStyle;
55
- styleBindPath: string;
56
- lowCodes?: IWeAppCode[];
57
- children?: IWeAppPage[];
58
- pageId?: string;
59
- codeType?: 'page' | 'global';
60
- code?: string;
61
- dataset?: IAppAndPageVar['dataset'];
62
- }
63
- export interface IWeAppComponentInstance {
64
- xComponent?: {
65
- moduleName: string;
66
- name: string;
67
- };
68
- xProps?: {
69
- data: {
70
- [prop: string]: IDynamicValue;
71
- };
72
- directives?: {
73
- waIf?: IDynamicValue;
74
- waFor?: IDynamicValue;
75
- };
76
- listeners?: IEventListener[];
77
- style: CSSProperties;
78
- styleBind: IDynamicValue;
79
- classList: string[];
80
- classListBind: IDynamicValue;
81
- commonStyle: ICommonStyle;
82
- styleBindPath?: string;
83
- customDataForm: Record<string, any>;
84
- staticResourceAttribute: string[];
85
- };
86
- xIndex?: number;
87
- properties?: {
88
- [key: string]: IWeAppComponentInstance;
89
- };
90
- genericComp?: {
91
- propName: string;
92
- title: string;
93
- description?: string;
94
- allowedCompType?: string;
95
- xIndex?: number;
96
- };
97
- }
98
- export interface IEventListener extends IEventModifiers {
99
- key?: string;
100
- trigger: string;
101
- type: ActionType;
102
- handler?: {
103
- moduleName: string;
104
- name: string;
105
- };
106
- jsCode?: string;
107
- data: {
108
- [prop: string]: IDynamicValue;
109
- };
110
- }
111
- export interface IEventModifiers {
112
- isCapturePhase?: boolean;
113
- noPropagation?: boolean;
114
- }
115
- export interface IDynamicValue {
116
- type?: 'static' | PropBindType;
117
- value: any | string;
118
- }
119
- export declare enum PropBindType {
120
- state = "rematch",
121
- computed = "computed",
122
- forItem = "for-item",
123
- expression = "expression",
124
- prop = "prop",
125
- slot = "slot",
126
- dataVar = "dataVar",
127
- stateData = "state",
128
- paramData = "params",
129
- scope = "scope"
130
- }
131
- export declare enum BindPropertyPath {
132
- style = "style",
133
- classNameList = "classNameList"
134
- }
135
- export interface ILockedPage {
136
- id: string;
137
- username: string;
138
- socketId: string;
139
- }
140
- export declare type IBuildType = 'web' | 'mp' | 'app' | 'qywxH5' | 'wxH5';
141
- //# sourceMappingURL=app.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../../src/weapps-core/types/app.ts"],"names":[],"mappings":"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"}
@@ -1,21 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BindPropertyPath = exports.PropBindType = void 0;
4
- var PropBindType;
5
- (function (PropBindType) {
6
- PropBindType["state"] = "rematch";
7
- PropBindType["computed"] = "computed";
8
- PropBindType["forItem"] = "for-item";
9
- PropBindType["expression"] = "expression";
10
- PropBindType["prop"] = "prop";
11
- PropBindType["slot"] = "slot";
12
- PropBindType["dataVar"] = "dataVar";
13
- PropBindType["stateData"] = "state";
14
- PropBindType["paramData"] = "params";
15
- PropBindType["scope"] = "scope";
16
- })(PropBindType = exports.PropBindType || (exports.PropBindType = {}));
17
- var BindPropertyPath;
18
- (function (BindPropertyPath) {
19
- BindPropertyPath["style"] = "style";
20
- BindPropertyPath["classNameList"] = "classNameList";
21
- })(BindPropertyPath = exports.BindPropertyPath || (exports.BindPropertyPath = {}));
@@ -1,63 +0,0 @@
1
- export declare enum APPbuildTypes {
2
- Android = 1,
3
- iOS = 2,
4
- web = 3,
5
- app = 4,
6
- qywxH5 = 5,
7
- wxH5 = 6
8
- }
9
- export declare enum APPbuildModes {
10
- 'Production' = 1,
11
- 'Debugger' = 2
12
- }
13
- export declare enum APPbuildStatus {
14
- 'INITIALIZING' = 0,
15
- 'RUNNING' = 1,
16
- 'SUCCEED' = 2,
17
- 'FAILED' = 3
18
- }
19
- export interface IAppBuildContent {
20
- url?: string;
21
- h5AppBuildId?: number;
22
- h5Version?: string;
23
- h5log?: string;
24
- FileName?: string;
25
- }
26
- export declare const ChannelTypes: string[];
27
- export declare const H5BuildTypes: {
28
- value: string;
29
- label: string;
30
- }[];
31
- export declare enum CodingPublishType {
32
- Android = "android",
33
- iOS = "ios",
34
- H5 = "h5"
35
- }
36
- export interface ICtnProps {
37
- name: string;
38
- createTime: number;
39
- uri: string;
40
- }
41
- export interface IOutputs {
42
- h5JobId?: string;
43
- androidJobId?: string;
44
- iOSJobId?: string;
45
- logo: string;
46
- name: string;
47
- appid?: string;
48
- iOSappId?: string;
49
- androidCtn: ICtnProps;
50
- iOSCtn: ICtnProps;
51
- }
52
- export declare enum IOSChannelTypes {
53
- development = "development",
54
- adhoc = "ad-hoc",
55
- appStore = "app-store",
56
- enterprise = "enterprise"
57
- }
58
- export declare const IOSChannels: {
59
- value: IOSChannelTypes;
60
- title: string;
61
- label: string;
62
- }[];
63
- //# sourceMappingURL=appbuild.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"appbuild.d.ts","sourceRoot":"","sources":["../../../src/weapps-core/types/appbuild.ts"],"names":[],"mappings":"AAAA,oBAAY,aAAa;IACvB,OAAO,IAAI;IACX,GAAG,IAAA;IACH,GAAG,IAAA;IACH,GAAG,IAAA;IACH,MAAM,IAAA;IACN,IAAI,IAAA;CACL;AACD,oBAAY,aAAa;IACvB,YAAY,IAAI;IAChB,UAAU,IAAA;CACX;AAED,oBAAY,cAAc;IACxB,cAAc,IAAA;IACd,SAAS,IAAA;IACT,SAAS,IAAA;IACT,QAAQ,IAAA;CACT;AAED,MAAM,WAAW,gBAAgB;IAC/B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,YAAY,UAAmC,CAAC;AAE7D,eAAO,MAAM,YAAY;;;GAiBxB,CAAC;AAEF,oBAAY,iBAAiB;IAC3B,OAAO,YAAY;IACnB,GAAG,QAAQ;IACX,EAAE,OAAO;CACV;AAED,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,QAAQ;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,SAAS,CAAC;IACtB,MAAM,EAAE,SAAS,CAAC;CACnB;AAGD,oBAAY,eAAe;IACzB,WAAW,gBAAgB;IAC3B,KAAK,WAAW;IAChB,QAAQ,cAAc;IACtB,UAAU,eAAe;CAC1B;AAGD,eAAO,MAAM,WAAW;;;;GAwBvB,CAAC"}
@@ -1,78 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IOSChannels = exports.IOSChannelTypes = exports.CodingPublishType = exports.H5BuildTypes = exports.ChannelTypes = exports.APPbuildStatus = exports.APPbuildModes = exports.APPbuildTypes = void 0;
4
- var APPbuildTypes;
5
- (function (APPbuildTypes) {
6
- APPbuildTypes[APPbuildTypes["Android"] = 1] = "Android";
7
- APPbuildTypes[APPbuildTypes["iOS"] = 2] = "iOS";
8
- APPbuildTypes[APPbuildTypes["web"] = 3] = "web";
9
- APPbuildTypes[APPbuildTypes["app"] = 4] = "app";
10
- APPbuildTypes[APPbuildTypes["qywxH5"] = 5] = "qywxH5";
11
- APPbuildTypes[APPbuildTypes["wxH5"] = 6] = "wxH5";
12
- })(APPbuildTypes = exports.APPbuildTypes || (exports.APPbuildTypes = {}));
13
- var APPbuildModes;
14
- (function (APPbuildModes) {
15
- APPbuildModes[APPbuildModes["Production"] = 1] = "Production";
16
- APPbuildModes[APPbuildModes["Debugger"] = 2] = "Debugger";
17
- })(APPbuildModes = exports.APPbuildModes || (exports.APPbuildModes = {}));
18
- var APPbuildStatus;
19
- (function (APPbuildStatus) {
20
- APPbuildStatus[APPbuildStatus["INITIALIZING"] = 0] = "INITIALIZING";
21
- APPbuildStatus[APPbuildStatus["RUNNING"] = 1] = "RUNNING";
22
- APPbuildStatus[APPbuildStatus["SUCCEED"] = 2] = "SUCCEED";
23
- APPbuildStatus[APPbuildStatus["FAILED"] = 3] = "FAILED";
24
- })(APPbuildStatus = exports.APPbuildStatus || (exports.APPbuildStatus = {}));
25
- exports.ChannelTypes = ['androidChannel', 'iOSChannel'];
26
- exports.H5BuildTypes = [
27
- {
28
- value: 'web',
29
- label: "普通Web应用 (process.env.buildType = 'web')",
30
- },
31
- {
32
- value: 'app',
33
- label: "Hybrid App内嵌h5 (process.env.buildType = 'app')",
34
- },
35
- {
36
- value: 'qywxH5',
37
- label: "企业微信(政务微信)h5 (process.env.buildType = 'qywxH5')",
38
- },
39
- {
40
- value: 'wxH5',
41
- label: "微信网页h5 (process.env.buildType = 'wxH5')",
42
- },
43
- ];
44
- var CodingPublishType;
45
- (function (CodingPublishType) {
46
- CodingPublishType["Android"] = "android";
47
- CodingPublishType["iOS"] = "ios";
48
- CodingPublishType["H5"] = "h5";
49
- })(CodingPublishType = exports.CodingPublishType || (exports.CodingPublishType = {}));
50
- var IOSChannelTypes;
51
- (function (IOSChannelTypes) {
52
- IOSChannelTypes["development"] = "development";
53
- IOSChannelTypes["adhoc"] = "ad-hoc";
54
- IOSChannelTypes["appStore"] = "app-store";
55
- IOSChannelTypes["enterprise"] = "enterprise";
56
- })(IOSChannelTypes = exports.IOSChannelTypes || (exports.IOSChannelTypes = {}));
57
- exports.IOSChannels = [
58
- {
59
- value: IOSChannelTypes.development,
60
- title: 'development测试分发',
61
- label: '用于给我们内部人员测试使用的,指定的授权用户设备才可以安装,可部署到服务器下载安装,需要开发证书打包',
62
- },
63
- {
64
- value: IOSChannelTypes.adhoc,
65
- title: 'ad-hoc测试分发',
66
- label: '用于给我们内部人员测试使用的,指定的授权用户设备才可以安装,可部署到服务器下载安装,需要发布证书打',
67
- },
68
- {
69
- value: IOSChannelTypes.appStore,
70
- title: 'app-store商店分发 ',
71
- label: '用于提交到商店审核,用户设备只能通过在App Store下载安装',
72
- },
73
- {
74
- value: IOSChannelTypes.enterprise,
75
- title: 'enterprise企业分发',
76
- label: '布署到服务器,所有用户设备都可通过扫描二维码或使用浏览器点击链接下载安装',
77
- },
78
- ];
@@ -1,26 +0,0 @@
1
- export declare type CodeType = 'rematch' | 'rematch-action' | 'computed' | 'general-func' | 'general' | 'lifecycle' | 'config' | 'state' | 'handler-fn' | 'normal-module' | 'app-style' | 'style' | 'theme' | 'lib' | 'index' | 'renderer' | 'json' | 'app-config' | 'page-config' | 'page';
2
- export declare type RematchModule<State> = (args: {
3
- sdk: any;
4
- history: any;
5
- }) => {
6
- state: State;
7
- reducers: {
8
- [funcName: string]: (state: State, payload: any) => State;
9
- };
10
- effects: (dispatch: any) => {
11
- [funcName: string]: RematchActionFunc;
12
- };
13
- computed?: {
14
- [funcName: string]: (state: State) => any;
15
- };
16
- };
17
- export declare type RematchAction = (dispatch: any) => RematchActionFunc;
18
- export declare type GeneralFunction = (userParams: any) => any;
19
- export declare type GeneralModule = any;
20
- export declare type RematchActionFunc = (args: {
21
- data: any;
22
- customEventData: any;
23
- history: any;
24
- FormActions: any;
25
- }) => Promise<any> | any;
26
- //# sourceMappingURL=code_types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"code_types.d.ts","sourceRoot":"","sources":["../../../src/weapps-core/types/code_types.ts"],"names":[],"mappings":"AAEA,oBAAY,QAAQ,GAChB,SAAS,GACT,gBAAgB,GAChB,UAAU,GACV,cAAc,GACd,SAAS,GACT,WAAW,GACX,QAAQ,GACR,OAAO,GACP,YAAY,GACZ,eAAe,GACf,WAAW,GACX,OAAO,GACP,OAAO,GACP,KAAK,GACL,OAAO,GACP,UAAU,GAGV,MAAM,GACN,YAAY,GACZ,aAAa,GACb,MAAM,CAAC;AAEX,oBAAY,aAAa,CAAC,KAAK,IAAI,CAAC,IAAI,EAAE;IACxC,GAAG,MAAC;IACJ,OAAO,MAAC;CACT,KAAK;IACJ,KAAK,EAAE,KAAK,CAAC;IACb,QAAQ,EAAE;QAAE,CAAC,QAAQ,EAAE,MAAM,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,KAAA,KAAK,KAAK,CAAA;KAAE,CAAC;IACnE,OAAO,EAAE,CAAC,QAAQ,KAAA,KAAK;QAAE,CAAC,QAAQ,EAAE,MAAM,GAAG,iBAAiB,CAAA;KAAE,CAAC;IACjE,QAAQ,CAAC,EAAE;QAAE,CAAC,QAAQ,EAAE,MAAM,GAAG,CAAC,KAAK,EAAE,KAAK,KAAK,GAAG,CAAA;KAAE,CAAC;CAC1D,CAAC;AAEF,oBAAY,aAAa,GAAG,CAAC,QAAQ,KAAA,KAAK,iBAAiB,CAAC;AAE5D,oBAAY,eAAe,GAAG,CAAC,UAAU,EAAE,GAAG,KAAK,GAAG,CAAC;AAEvD,oBAAY,aAAa,GAAG,GAAG,CAAC;AAEhC,oBAAY,iBAAiB,GAAG,CAAC,IAAI,EAAE;IACrC,IAAI,MAAC;IACL,eAAe,MAAC;IAChB,OAAO,MAAC;IACR,WAAW,MAAC;CACb,KAAK,OAAO,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC"}
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +0,0 @@
1
- import { IWeAppData } from './app';
2
- export interface IWatcherInitData {
3
- appId: string;
4
- repo: string;
5
- data: IWeAppData;
6
- }
7
- //# sourceMappingURL=git.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"git.d.ts","sourceRoot":"","sources":["../../../src/weapps-core/types/git.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAClC,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,UAAU,CAAA;CACjB"}
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,11 +0,0 @@
1
- export * from './material';
2
- export * from './action';
3
- export * from './app';
4
- export * from './lowcode';
5
- export * from './code_types';
6
- export * from './style';
7
- export * from './web';
8
- export * from './plugins';
9
- export * from './git';
10
- export * from './appbuild';
11
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/weapps-core/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,OAAO,CAAC;AACtB,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,OAAO,CAAC;AACtB,cAAc,WAAW,CAAC;AAC1B,cAAc,OAAO,CAAC;AACtB,cAAc,YAAY,CAAC"}
@@ -1,22 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
- }) : (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- o[k2] = m[k];
8
- }));
9
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
- };
12
- Object.defineProperty(exports, "__esModule", { value: true });
13
- __exportStar(require("./material"), exports);
14
- __exportStar(require("./action"), exports);
15
- __exportStar(require("./app"), exports);
16
- __exportStar(require("./lowcode"), exports);
17
- __exportStar(require("./code_types"), exports);
18
- __exportStar(require("./style"), exports);
19
- __exportStar(require("./web"), exports);
20
- __exportStar(require("./plugins"), exports);
21
- __exportStar(require("./git"), exports);
22
- __exportStar(require("./appbuild"), exports);
@@ -1,26 +0,0 @@
1
- import { CodeType } from './code_types';
2
- export interface IWeAppCode {
3
- id?: string;
4
- path: string;
5
- system?: boolean;
6
- type: CodeType;
7
- name: string;
8
- code: string;
9
- desc?: string;
10
- pageId?: string;
11
- title?: string;
12
- }
13
- export interface ILowCodesModifyStatus {
14
- type: 'del' | 'add' | 'mod';
15
- path: string;
16
- }
17
- export interface IWeAppFile {
18
- pageId: string;
19
- name: string;
20
- code: string;
21
- type: CodeType;
22
- path: string;
23
- }
24
- export declare function isStyleFile(mod: any): boolean;
25
- export declare function getCodeModuleFilePath(pageId: string, mod: IWeAppCode, exts?: any): string;
26
- //# sourceMappingURL=lowcode.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"lowcode.d.ts","sourceRoot":"","sources":["../../../src/weapps-core/types/lowcode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,MAAM,WAAW,UAAU;IACzB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AACD,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;IAC5B,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,UAAU;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd;AAOD,wBAAgB,WAAW,CAAC,GAAG,KAAA,WAE9B;AACD,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,UAAU,EACf,IAAI,GAAE,GAAQ,UAcf"}
@@ -1,25 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getCodeModuleFilePath = exports.isStyleFile = void 0;
4
- function isStyleFile(mod) {
5
- return mod.type === 'style' || mod.type === 'theme';
6
- }
7
- exports.isStyleFile = isStyleFile;
8
- function getCodeModuleFilePath(pageId, mod, exts = {}) {
9
- var _a, _b, _c, _d;
10
- let file = ``;
11
- if ((_a = mod === null || mod === void 0 ? void 0 : mod.path) === null || _a === void 0 ? void 0 : _a.startsWith('comp-')) {
12
- file = `/${mod.path.replace(/comp-\w+/, '')}`;
13
- }
14
- else if ((_b = mod === null || mod === void 0 ? void 0 : mod.path) === null || _b === void 0 ? void 0 : _b.startsWith('$comp')) {
15
- file = `/${mod.path.replace(/\$comp_\d+/, '')}`;
16
- }
17
- else if (pageId === 'global') {
18
- file = `/${(_c = mod === null || mod === void 0 ? void 0 : mod.path) === null || _c === void 0 ? void 0 : _c.replace(/^global/, '')}`;
19
- }
20
- else {
21
- file = `/${(_d = mod === null || mod === void 0 ? void 0 : mod.path) === null || _d === void 0 ? void 0 : _d.replace(/.*?\//, `${pageId}/`)}`;
22
- }
23
- return file + (isStyleFile(mod) ? exts.style || '.less' : '.js');
24
- }
25
- exports.getCodeModuleFilePath = getCodeModuleFilePath;