@lcap/nasl 2.22.0-beta.5 → 3.0.0-beta.1

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 (304) hide show
  1. package/README.md +13 -0
  2. package/docs/classes/Module.html +15 -15
  3. package/docs/classes/Namespace.html +15 -15
  4. package/docs/classes/ViewComponent.html +19 -19
  5. package/out/automate/engine/utils.js +4 -0
  6. package/out/automate/engine/utils.js.map +1 -1
  7. package/out/breakpoint/generator/AfterStartNode.d.ts +7 -0
  8. package/out/breakpoint/generator/AfterStartNode.js +27 -0
  9. package/out/breakpoint/generator/AfterStartNode.js.map +1 -0
  10. package/out/breakpoint/generator/BeforeEndNode.d.ts +7 -0
  11. package/out/breakpoint/generator/BeforeEndNode.js +27 -0
  12. package/out/breakpoint/generator/BeforeEndNode.js.map +1 -0
  13. package/out/breakpoint/generator/BreakpointNode.d.ts +14 -0
  14. package/out/breakpoint/generator/BreakpointNode.js +166 -0
  15. package/out/breakpoint/generator/BreakpointNode.js.map +1 -0
  16. package/out/breakpoint/generator/index.d.ts +4 -0
  17. package/out/breakpoint/generator/index.js +98 -0
  18. package/out/breakpoint/generator/index.js.map +1 -0
  19. package/out/breakpoint/index.d.ts +3 -0
  20. package/out/breakpoint/index.js +20 -0
  21. package/out/breakpoint/index.js.map +1 -0
  22. package/out/breakpoint/shared/constants.d.ts +30 -0
  23. package/out/breakpoint/shared/constants.js +87 -0
  24. package/out/breakpoint/shared/constants.js.map +1 -0
  25. package/out/breakpoint/shared/index.d.ts +3 -0
  26. package/out/breakpoint/shared/index.js +33 -0
  27. package/out/breakpoint/shared/index.js.map +1 -0
  28. package/out/breakpoint/shared/operations.d.ts +10 -0
  29. package/out/breakpoint/shared/operations.js +25 -0
  30. package/out/breakpoint/shared/operations.js.map +1 -0
  31. package/out/breakpoint/shared/socket.d.ts +47 -0
  32. package/out/breakpoint/shared/socket.js +210 -0
  33. package/out/breakpoint/shared/socket.js.map +1 -0
  34. package/out/breakpoint/shared/utils.d.ts +20 -0
  35. package/out/breakpoint/shared/utils.js +133 -0
  36. package/out/breakpoint/shared/utils.js.map +1 -0
  37. package/out/breakpoint/store/core.d.ts +30 -0
  38. package/out/breakpoint/store/core.js +341 -0
  39. package/out/breakpoint/store/core.js.map +1 -0
  40. package/out/breakpoint/store/dock.d.ts +1 -0
  41. package/out/breakpoint/store/dock.js +127 -0
  42. package/out/breakpoint/store/dock.js.map +1 -0
  43. package/out/breakpoint/store/index.d.ts +2 -0
  44. package/out/breakpoint/store/index.js +19 -0
  45. package/out/breakpoint/store/index.js.map +1 -0
  46. package/out/common/BaseNode.d.ts +8 -0
  47. package/out/common/BaseNode.js +19 -0
  48. package/out/common/BaseNode.js.map +1 -1
  49. package/out/concepts/App__.d.ts +365 -16
  50. package/out/concepts/App__.js +431 -10
  51. package/out/concepts/App__.js.map +1 -1
  52. package/out/concepts/Assignment__.js +1 -1
  53. package/out/concepts/Assignment__.js.map +1 -1
  54. package/out/concepts/AuthInterface__.d.ts +37 -0
  55. package/out/concepts/AuthInterface__.js +141 -0
  56. package/out/concepts/AuthInterface__.js.map +1 -0
  57. package/out/concepts/AuthLogicForCallInterface__.d.ts +138 -0
  58. package/out/concepts/AuthLogicForCallInterface__.js +493 -0
  59. package/out/concepts/AuthLogicForCallInterface__.js.map +1 -0
  60. package/out/concepts/AuthLogic__.d.ts +66 -0
  61. package/out/concepts/AuthLogic__.js +206 -0
  62. package/out/concepts/AuthLogic__.js.map +1 -0
  63. package/out/concepts/BackendVariable__.d.ts +137 -0
  64. package/out/concepts/BackendVariable__.js +422 -0
  65. package/out/concepts/BackendVariable__.js.map +1 -0
  66. package/out/concepts/Backend__.d.ts +134 -0
  67. package/out/concepts/Backend__.js +274 -0
  68. package/out/concepts/Backend__.js.map +1 -0
  69. package/out/concepts/BindAttribute__.d.ts +1 -1
  70. package/out/concepts/BindAttribute__.js +3 -1
  71. package/out/concepts/BindAttribute__.js.map +1 -1
  72. package/out/concepts/BindEvent__.d.ts +12 -0
  73. package/out/concepts/BindEvent__.js +68 -0
  74. package/out/concepts/BindEvent__.js.map +1 -1
  75. package/out/concepts/CallAuthInterface__.d.ts +126 -0
  76. package/out/concepts/CallAuthInterface__.js +408 -0
  77. package/out/concepts/CallAuthInterface__.js.map +1 -0
  78. package/out/concepts/CallInterface__.d.ts +6 -1
  79. package/out/concepts/CallInterface__.js +9 -1
  80. package/out/concepts/CallInterface__.js.map +1 -1
  81. package/out/concepts/CallLogic__.js +3 -1
  82. package/out/concepts/CallLogic__.js.map +1 -1
  83. package/out/concepts/CallQueryComponent__.js +9 -7
  84. package/out/concepts/CallQueryComponent__.js.map +1 -1
  85. package/out/concepts/Destination__.js +1 -1
  86. package/out/concepts/Destination__.js.map +1 -1
  87. package/out/concepts/End__.js +29 -2
  88. package/out/concepts/End__.js.map +1 -1
  89. package/out/concepts/EntityProperty__.js.map +1 -1
  90. package/out/concepts/Entity__.d.ts +1 -2
  91. package/out/concepts/Entity__.js +1 -31
  92. package/out/concepts/Entity__.js.map +1 -1
  93. package/out/concepts/ForEachStatement__.js +9 -4
  94. package/out/concepts/ForEachStatement__.js.map +1 -1
  95. package/out/concepts/FrontendLibrary__.d.ts +29 -29
  96. package/out/concepts/FrontendLibrary__.js +2 -2
  97. package/out/concepts/FrontendVariable__.d.ts +21 -0
  98. package/out/concepts/FrontendVariable__.js +64 -0
  99. package/out/concepts/FrontendVariable__.js.map +1 -0
  100. package/out/concepts/Frontend__.d.ts +151 -47
  101. package/out/concepts/Frontend__.js +188 -32
  102. package/out/concepts/Frontend__.js.map +1 -1
  103. package/out/concepts/Function__.js +1 -1
  104. package/out/concepts/Function__.js.map +1 -1
  105. package/out/concepts/Identifier__.js +1 -1
  106. package/out/concepts/Identifier__.js.map +1 -1
  107. package/out/concepts/Interface__.d.ts +1 -1
  108. package/out/concepts/Interface__.js.map +1 -1
  109. package/out/concepts/LogicItem__.d.ts +18 -3
  110. package/out/concepts/LogicItem__.js +22 -4
  111. package/out/concepts/LogicItem__.js.map +1 -1
  112. package/out/concepts/Logic__.d.ts +14 -9
  113. package/out/concepts/Logic__.js +43 -5
  114. package/out/concepts/Logic__.js.map +1 -1
  115. package/out/concepts/Module__.js.map +1 -1
  116. package/out/concepts/Namespace__.d.ts +29 -29
  117. package/out/concepts/Namespace__.js +2 -2
  118. package/out/concepts/NewComposite__.js +2 -2
  119. package/out/concepts/NewComposite__.js.map +1 -1
  120. package/out/concepts/OverriddenLogic__.d.ts +643 -0
  121. package/out/concepts/OverriddenLogic__.js +1602 -0
  122. package/out/concepts/OverriddenLogic__.js.map +1 -0
  123. package/out/concepts/Param__.d.ts +6 -0
  124. package/out/concepts/Param__.js +10 -0
  125. package/out/concepts/Param__.js.map +1 -1
  126. package/out/concepts/QueryFieldExpression__.d.ts +2 -0
  127. package/out/concepts/QueryFieldExpression__.js +9 -0
  128. package/out/concepts/QueryFieldExpression__.js.map +1 -1
  129. package/out/concepts/QuerySelectExpression__.d.ts +2 -2
  130. package/out/concepts/QuerySelectExpression__.js +2 -2
  131. package/out/concepts/QuerySelectExpression__.js.map +1 -1
  132. package/out/concepts/TypeAnnotation__.js +6 -6
  133. package/out/concepts/TypeAnnotation__.js.map +1 -1
  134. package/out/concepts/Variable__.d.ts +10 -0
  135. package/out/concepts/Variable__.js +12 -0
  136. package/out/concepts/Variable__.js.map +1 -1
  137. package/out/concepts/ViewComponent__.d.ts +33 -33
  138. package/out/concepts/ViewComponent__.js +7 -7
  139. package/out/concepts/ViewElement__.d.ts +6 -0
  140. package/out/concepts/ViewElement__.js +104 -1
  141. package/out/concepts/ViewElement__.js.map +1 -1
  142. package/out/concepts/View__.js +2 -2
  143. package/out/concepts/View__.js.map +1 -1
  144. package/out/concepts/basics/stdlib/index.js +2 -1
  145. package/out/concepts/basics/stdlib/index.js.map +1 -1
  146. package/out/concepts/basics/stdlib/nasl.auth.js +24 -0
  147. package/out/concepts/basics/stdlib/nasl.auth.js.map +1 -1
  148. package/out/concepts/basics/stdlib/nasl.http.d.ts +7 -0
  149. package/out/concepts/basics/stdlib/nasl.http.js +167 -0
  150. package/out/concepts/basics/stdlib/nasl.http.js.map +1 -0
  151. package/out/concepts/basics/stdlib/nasl.process.js +68 -0
  152. package/out/concepts/basics/stdlib/nasl.process.js.map +1 -1
  153. package/out/concepts/basics/stdlib/nasl.ui.js +4 -19
  154. package/out/concepts/basics/stdlib/nasl.ui.js.map +1 -1
  155. package/out/concepts/basics/stdlib/nasl.util.js +83 -17
  156. package/out/concepts/basics/stdlib/nasl.util.js.map +1 -1
  157. package/out/concepts/basics/types/index.d.ts +1 -0
  158. package/out/concepts/basics/types/index.js +4 -1
  159. package/out/concepts/basics/types/index.js.map +1 -1
  160. package/out/concepts/index__.d.ts +8 -0
  161. package/out/concepts/index__.js +8 -0
  162. package/out/concepts/index__.js.map +1 -1
  163. package/out/enums/KEYWORDS.js +0 -1
  164. package/out/enums/KEYWORDS.js.map +1 -1
  165. package/out/generator/genBundleFiles.d.ts +1 -0
  166. package/out/generator/genBundleFiles.js +27 -0
  167. package/out/generator/genBundleFiles.js.map +1 -1
  168. package/out/generator/genMetaData.d.ts +4 -1
  169. package/out/generator/genMetaData.js +14 -0
  170. package/out/generator/genMetaData.js.map +1 -1
  171. package/out/generator/genReleaseBody.d.ts +2 -1
  172. package/out/generator/genReleaseBody.js +2 -1
  173. package/out/generator/genReleaseBody.js.map +1 -1
  174. package/out/index.d.ts +2 -1
  175. package/out/index.js +3 -1
  176. package/out/index.js.map +1 -1
  177. package/out/server/extendBaseNode.js +16 -4
  178. package/out/server/extendBaseNode.js.map +1 -1
  179. package/out/server/formatTsUtils.d.ts +2 -1
  180. package/out/server/formatTsUtils.js +39 -4
  181. package/out/server/formatTsUtils.js.map +1 -1
  182. package/out/server/getExtensionModules.d.ts +2 -2
  183. package/out/server/getExtensionModules.js +16 -2
  184. package/out/server/getExtensionModules.js.map +1 -1
  185. package/out/server/getLogics.js +5 -5
  186. package/out/server/getLogics.js.map +1 -1
  187. package/out/server/getMemberIdentifier.d.ts +1 -0
  188. package/out/server/getMemberIdentifier.js +34 -7
  189. package/out/server/getMemberIdentifier.js.map +1 -1
  190. package/out/server/naslServer.d.ts +64 -64
  191. package/out/server/naslServer.js +249 -121
  192. package/out/server/naslServer.js.map +1 -1
  193. package/out/server/naslStdlibMap.js +2 -0
  194. package/out/server/naslStdlibMap.js.map +1 -1
  195. package/out/server/translator.d.ts +1 -0
  196. package/out/server/translator.js +67 -2
  197. package/out/server/translator.js.map +1 -1
  198. package/out/service/defaultErrorMessage.json +1 -0
  199. package/out/service/storage/api.d.ts +10 -1
  200. package/out/service/storage/api.js +6 -0
  201. package/out/service/storage/api.js.map +1 -1
  202. package/out/service/storage/init.d.ts +4 -0
  203. package/out/service/storage/init.js +55 -35
  204. package/out/service/storage/init.js.map +1 -1
  205. package/out/service/storage/service.d.ts +3 -0
  206. package/out/service/storage/service.js +14 -0
  207. package/out/service/storage/service.js.map +1 -1
  208. package/out/utils/sortTsString.d.ts +1 -0
  209. package/out/utils/sortTsString.js +36 -0
  210. package/out/utils/sortTsString.js.map +1 -0
  211. package/out/utils/traverse.js +2 -2
  212. package/out/utils/traverse.js.map +1 -1
  213. package/package.json +7 -2
  214. package/sandbox/stdlib/nasl.auth.ts +8 -4
  215. package/sandbox/stdlib/nasl.core.d.ts +206 -0
  216. package/sandbox/stdlib/nasl.core.js +1 -0
  217. package/sandbox/stdlib/nasl.core.js.map +1 -0
  218. package/sandbox/stdlib/nasl.http.ts +35 -0
  219. package/sandbox/stdlib/nasl.process.ts +13 -0
  220. package/sandbox/stdlib/nasl.ui.ts +0 -5
  221. package/src/automate/engine/utils.js +4 -1
  222. package/src/breakpoint/generator/AfterStartNode.ts +27 -0
  223. package/src/breakpoint/generator/BeforeEndNode.ts +27 -0
  224. package/src/breakpoint/generator/BreakpointNode.ts +228 -0
  225. package/src/breakpoint/generator/index.ts +114 -0
  226. package/src/breakpoint/index.ts +3 -0
  227. package/src/breakpoint/shared/constants.ts +95 -0
  228. package/src/breakpoint/shared/index.ts +3 -0
  229. package/src/breakpoint/shared/operations.ts +25 -0
  230. package/src/breakpoint/shared/socket.ts +326 -0
  231. package/src/breakpoint/shared/utils.ts +195 -0
  232. package/src/breakpoint/store/core.ts +411 -0
  233. package/src/breakpoint/store/dock.ts +166 -0
  234. package/src/breakpoint/store/index.ts +2 -0
  235. package/src/breakpoint/types/index.d.ts +19 -0
  236. package/src/common/BaseNode.ts +19 -1
  237. package/src/concepts/App__.ts +828 -26
  238. package/src/concepts/Assignment__.ts +1 -1
  239. package/src/concepts/AuthInterface__.ts +148 -0
  240. package/src/concepts/AuthLogicForCallInterface__.ts +573 -0
  241. package/src/concepts/AuthLogic__.ts +225 -0
  242. package/src/concepts/BackendVariable__.ts +466 -0
  243. package/src/concepts/Backend__.ts +347 -0
  244. package/src/concepts/BindAttribute__.ts +4 -3
  245. package/src/concepts/BindEvent__.ts +71 -2
  246. package/src/concepts/CallAuthInterface__.ts +490 -0
  247. package/src/concepts/CallInterface__.ts +10 -2
  248. package/src/concepts/CallLogic__.ts +3 -1
  249. package/src/concepts/CallQueryComponent__.ts +67 -7
  250. package/src/concepts/Destination__.ts +19 -1
  251. package/src/concepts/End__.ts +31 -3
  252. package/src/concepts/EntityProperty__.ts +6 -0
  253. package/src/concepts/Entity__.ts +8 -31
  254. package/src/concepts/ForEachStatement__.ts +9 -4
  255. package/src/concepts/FrontendLibrary__.ts +30 -30
  256. package/src/concepts/FrontendVariable__.ts +76 -0
  257. package/src/concepts/Frontend__.ts +352 -89
  258. package/src/concepts/Function__.ts +1 -1
  259. package/src/concepts/Identifier__.ts +5 -5
  260. package/src/concepts/Interface__.ts +1 -1
  261. package/src/concepts/LogicItem__.ts +26 -6
  262. package/src/concepts/Logic__.ts +86 -8
  263. package/src/concepts/Module__.ts +32 -2
  264. package/src/concepts/Namespace__.ts +30 -30
  265. package/src/concepts/NewComposite__.ts +2 -3
  266. package/src/concepts/OverriddenLogic__.ts +2165 -0
  267. package/src/concepts/Param__.ts +13 -3
  268. package/src/concepts/QueryFieldExpression__.ts +18 -0
  269. package/src/concepts/QuerySelectExpression__.ts +11 -3
  270. package/src/concepts/TypeAnnotation__.ts +45 -6
  271. package/src/concepts/Variable__.ts +14 -0
  272. package/src/concepts/ViewComponent__.ts +35 -35
  273. package/src/concepts/ViewElement__.ts +104 -1
  274. package/src/concepts/View__.ts +24 -2
  275. package/src/concepts/basics/stdlib/index.ts +2 -1
  276. package/src/concepts/basics/stdlib/nasl.auth.ts +24 -0
  277. package/src/concepts/basics/stdlib/nasl.http.ts +166 -0
  278. package/src/concepts/basics/stdlib/nasl.process.ts +68 -0
  279. package/src/concepts/basics/stdlib/nasl.ui.ts +4 -19
  280. package/src/concepts/basics/stdlib/nasl.util.ts +83 -17
  281. package/src/concepts/basics/types/index.ts +5 -4
  282. package/src/concepts/index__.ts +8 -0
  283. package/src/enums/KEYWORDS.ts +0 -1
  284. package/src/generator/genBundleFiles.ts +36 -2
  285. package/src/generator/genMetaData.ts +16 -1
  286. package/src/generator/genReleaseBody.ts +4 -1
  287. package/src/index.ts +2 -1
  288. package/src/server/extendBaseNode.ts +18 -7
  289. package/src/server/formatTsUtils.ts +37 -5
  290. package/src/server/getExtensionModules.ts +18 -3
  291. package/src/server/getLogics.ts +6 -6
  292. package/src/server/getMemberIdentifier.ts +35 -9
  293. package/src/server/naslServer.ts +250 -124
  294. package/src/server/naslStdlibMap.ts +2 -0
  295. package/src/server/translator.ts +67 -1
  296. package/src/service/defaultErrorMessage.json +1 -0
  297. package/src/service/storage/api.js +7 -1
  298. package/src/service/storage/init.ts +66 -35
  299. package/src/service/storage/service.ts +18 -2
  300. package/src/utils/sortTsString.ts +32 -0
  301. package/src/utils/traverse.ts +2 -2
  302. package/test/examples/app-simple.json +73635 -0
  303. package/ts-worker/lib/tsserver.js +3 -3
  304. package/ts-worker/package.json +1 -1
@@ -14,7 +14,10 @@ import * as utils from '../utils';
14
14
  import { v4 as uuidv4 } from 'uuid';
15
15
  import BaseNode from '../common/BaseNode';
16
16
  import classMap from '../common/classMap';
17
+ import OverriddenLogic from './OverriddenLogic__';
17
18
  import Logic from './Logic__';
19
+ import AuthLogic from './AuthLogic__';
20
+ import AuthLogicForCallInterface from './AuthLogicForCallInterface__';
18
21
  import Module from './Module__';
19
22
  import App from './App__';
20
23
  import View from './View__';
@@ -31,7 +34,7 @@ export class LogicItem extends BaseNode {
31
34
  * 产品概念
32
35
  */
33
36
  @property()
34
- concept: 'LogicItem' | 'Abort' | 'Start' | 'End' | 'IfStatement' | 'SwitchStatement' | 'SwitchCase' | 'ForEachStatement' | 'WhileStatement' | 'Assignment' | 'BatchAssignment' | 'Comment' | 'CallLogic' | 'CallFunction' | 'CallInterface' | 'Destination' | 'ExternalDestination' | 'ValidationRule' | 'Argument' | 'Anchor' | 'JSBlock' | 'JavaLogic' | 'Identifier' | 'NullLiteral' | 'BooleanLiteral' | 'StringLiteral' | 'StringInterpolation' | 'NumericLiteral' | 'BinaryExpression' | 'MatchCase' | 'Match' | 'UnaryExpression' | 'MemberExpression' | 'Unparsed' | 'New' | 'NewComposite' | 'NewList' | 'NewMap' | 'CallQueryComponent' | 'QueryFromExpression' | 'QueryJoinExpression' | 'QueryFieldExpression' | 'QueryAggregateExpression' | 'QueryOrderByExpression' | 'QueryGroupByExpression' | 'QuerySelectExpression' | 'QueryLimitExpression' | 'SqlQueryComponent' | 'OqlQueryComponent' | 'ProcessOutcome' | 'Assignee' | 'ProcessOutcomes' = 'LogicItem';
37
+ concept: 'LogicItem' | 'Abort' | 'Start' | 'End' | 'IfStatement' | 'SwitchStatement' | 'SwitchCase' | 'ForEachStatement' | 'WhileStatement' | 'Assignment' | 'BatchAssignment' | 'Comment' | 'CallLogic' | 'CallFunction' | 'CallInterface' | 'CallAuthInterface' | 'Destination' | 'ExternalDestination' | 'ValidationRule' | 'Argument' | 'Anchor' | 'JSBlock' | 'JavaLogic' | 'Identifier' | 'NullLiteral' | 'BooleanLiteral' | 'StringLiteral' | 'StringInterpolation' | 'NumericLiteral' | 'BinaryExpression' | 'MatchCase' | 'Match' | 'UnaryExpression' | 'MemberExpression' | 'Unparsed' | 'New' | 'NewComposite' | 'NewList' | 'NewMap' | 'CallQueryComponent' | 'QueryFromExpression' | 'QueryJoinExpression' | 'QueryFieldExpression' | 'QueryAggregateExpression' | 'QueryOrderByExpression' | 'QueryGroupByExpression' | 'QuerySelectExpression' | 'QueryLimitExpression' | 'SqlQueryComponent' | 'OqlQueryComponent' | 'ProcessOutcome' | 'Assignee' | 'ProcessOutcomes' = 'LogicItem';
35
38
 
36
39
  /**
37
40
  * 逻辑项标题
@@ -64,10 +67,10 @@ export class LogicItem extends BaseNode {
64
67
  offsetY: number = undefined;
65
68
 
66
69
  /**
67
- * 祖先 Logic
70
+ * 祖先 OverriddenLogic
68
71
  */
69
- get logic() {
70
- return this.getAncestor('Logic') as Logic;
72
+ get OverriddenLogic() {
73
+ return this.getAncestor('OverriddenLogic') as OverriddenLogic;
71
74
  }
72
75
  /**
73
76
  * 祖先 Module
@@ -105,6 +108,24 @@ export class LogicItem extends BaseNode {
105
108
  get process() {
106
109
  return this.getAncestor('Process') as Process;
107
110
  }
111
+ /**
112
+ * 祖先 Logic
113
+ */
114
+ get logic() {
115
+ return this.getAncestor('Logic') as Logic;
116
+ }
117
+ /**
118
+ * 祖先 AuthLogic
119
+ */
120
+ get AuthLogic() {
121
+ return this.getAncestor('AuthLogic') as AuthLogic;
122
+ }
123
+ /**
124
+ * 祖先 AuthLogicForCallInterface
125
+ */
126
+ get AuthLogicForCallInterface() {
127
+ return this.getAncestor('AuthLogicForCallInterface') as AuthLogicForCallInterface;
128
+ }
108
129
 
109
130
  /**
110
131
  * @param source 需要合并的部分参数
@@ -177,7 +198,6 @@ export class LogicItem extends BaseNode {
177
198
  // ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
178
199
  // 自动生成的代码已结束。下面可以手动编写。
179
200
  //================================================================================
180
-
181
201
  get completeName() {
182
202
  return this.name;
183
203
  }
@@ -254,7 +274,7 @@ export class LogicItem extends BaseNode {
254
274
  this.traverseChildren((el) => {
255
275
  if (el?.concept === 'CallQueryComponent')
256
276
  (el as CallQueryComponent).removeStructure();
257
- else if (el?.concept === 'CallInterface')
277
+ else if (['CallInterface', 'CallAuthInterface'].includes(el?.concept))
258
278
  (el as CallInterface).deleteCallNode();
259
279
  });
260
280
  this.app?.emit('collect:end');
@@ -47,7 +47,7 @@ export class Logic extends BaseNode {
47
47
  * 产品概念
48
48
  */
49
49
  @property()
50
- concept: 'Logic' = 'Logic';
50
+ concept: 'Logic' | 'AuthLogic' | 'AuthLogicForCallInterface' = 'Logic';
51
51
 
52
52
  /**
53
53
  * 逻辑名称
@@ -73,6 +73,12 @@ export class Logic extends BaseNode {
73
73
  @property()
74
74
  cron: string = undefined;
75
75
 
76
+ /**
77
+ * overridable
78
+ */
79
+ @property()
80
+ overridable: boolean = undefined;
81
+
76
82
  /**
77
83
  * 事务
78
84
  */
@@ -234,6 +240,18 @@ export class Logic extends BaseNode {
234
240
  });
235
241
  }
236
242
 
243
+ /**
244
+ * 设置overridable
245
+ */
246
+ setOverridable(overridable: boolean) {
247
+ const object = {
248
+ overridable,
249
+ };
250
+ this.update({
251
+ ...object,
252
+ });
253
+ }
254
+
237
255
  /**
238
256
  * 设置事务
239
257
  */
@@ -249,7 +267,7 @@ export class Logic extends BaseNode {
249
267
  });
250
268
  }
251
269
 
252
- getTypeParamExistingNames(excludedList: Array<TypeParam> = []) {
270
+ getTypeParamExistingNames(excludedList: Array<TypeParam> = []) {
253
271
  const excludedSet = new Set(excludedList);
254
272
  return ((this.typeParams as TypeParam[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
255
273
  }
@@ -390,6 +408,7 @@ export class Logic extends BaseNode {
390
408
  return node;
391
409
  }
392
410
 
411
+
393
412
  getParamUniqueName(name = 'param1') {
394
413
  return utils.unique(name, this.getVarExistingNames(), undefined, false);
395
414
  }
@@ -527,6 +546,7 @@ export class Logic extends BaseNode {
527
546
  return node;
528
547
  }
529
548
 
549
+
530
550
  getReturnUniqueName(name = 'result') {
531
551
  return utils.unique(name, this.getVarExistingNames(), undefined, false);
532
552
  }
@@ -664,6 +684,7 @@ export class Logic extends BaseNode {
664
684
  return node;
665
685
  }
666
686
 
687
+
667
688
  getVariableUniqueName(name = 'variable1') {
668
689
  return utils.unique(name, this.getVarExistingNames(), undefined, false);
669
690
  }
@@ -801,6 +822,11 @@ export class Logic extends BaseNode {
801
822
  return node;
802
823
  }
803
824
 
825
+
826
+
827
+
828
+
829
+
804
830
  /**
805
831
  * 插入逻辑项
806
832
  * @internal
@@ -833,6 +859,8 @@ export class Logic extends BaseNode {
833
859
  return logicItem;
834
860
  }
835
861
 
862
+
863
+
836
864
  /**
837
865
  * 插入逻辑项
838
866
  * @param logicItemOptions 逻辑项参数
@@ -855,6 +883,8 @@ export class Logic extends BaseNode {
855
883
  return node;
856
884
  }
857
885
 
886
+
887
+
858
888
  /**
859
889
  * 添加逻辑项
860
890
  * @internal
@@ -874,6 +904,8 @@ export class Logic extends BaseNode {
874
904
  return this._insertItemInBodyAt(options as any, index);
875
905
  }
876
906
 
907
+
908
+
877
909
  /**
878
910
  * 添加逻辑项
879
911
  * @param logicItemOptions 逻辑项参数
@@ -897,6 +929,8 @@ export class Logic extends BaseNode {
897
929
  return node;
898
930
  }
899
931
 
932
+
933
+
900
934
  /**
901
935
  * 插入逻辑项
902
936
  * @internal
@@ -929,6 +963,8 @@ export class Logic extends BaseNode {
929
963
  return logicItem;
930
964
  }
931
965
 
966
+
967
+
932
968
  /**
933
969
  * 插入逻辑项
934
970
  * @param logicItemOptions 逻辑项参数
@@ -951,6 +987,8 @@ export class Logic extends BaseNode {
951
987
  return node;
952
988
  }
953
989
 
990
+
991
+
954
992
  /**
955
993
  * 添加逻辑项
956
994
  * @internal
@@ -970,6 +1008,8 @@ export class Logic extends BaseNode {
970
1008
  return this._insertItemInPlaygroundAt(options as any, index);
971
1009
  }
972
1010
 
1011
+
1012
+
973
1013
  /**
974
1014
  * 添加逻辑项
975
1015
  * @param logicItemOptions 逻辑项参数
@@ -993,6 +1033,9 @@ export class Logic extends BaseNode {
993
1033
  return node;
994
1034
  }
995
1035
 
1036
+
1037
+
1038
+
996
1039
  /**
997
1040
  * 删除事务
998
1041
  * @param name 事务名称
@@ -1041,6 +1084,8 @@ export class Logic extends BaseNode {
1041
1084
  return params;
1042
1085
  }
1043
1086
 
1087
+
1088
+
1044
1089
  /**
1045
1090
  * 删除类型参数
1046
1091
  * @param name 类型参数名称
@@ -1089,6 +1134,8 @@ export class Logic extends BaseNode {
1089
1134
  return params;
1090
1135
  }
1091
1136
 
1137
+
1138
+
1092
1139
  /**
1093
1140
  * 删除输入参数
1094
1141
  * @param name 输入参数名称
@@ -1137,6 +1184,8 @@ export class Logic extends BaseNode {
1137
1184
  return params;
1138
1185
  }
1139
1186
 
1187
+
1188
+
1140
1189
  /**
1141
1190
  * 删除输出参数
1142
1191
  * @param name 输出参数名称
@@ -1185,6 +1234,8 @@ export class Logic extends BaseNode {
1185
1234
  return params;
1186
1235
  }
1187
1236
 
1237
+
1238
+
1188
1239
  /**
1189
1240
  * 删除变量
1190
1241
  * @param name 变量名称
@@ -1233,6 +1284,8 @@ export class Logic extends BaseNode {
1233
1284
  return params;
1234
1285
  }
1235
1286
 
1287
+
1288
+
1236
1289
  /**
1237
1290
  * 删除逻辑项
1238
1291
  * @param logicItem 已有的逻辑项实例
@@ -1240,10 +1293,12 @@ export class Logic extends BaseNode {
1240
1293
  removeItemInBody(logicItem: LogicItem): void;
1241
1294
 
1242
1295
  removeItemInBody(options: LogicItem) {
1243
- const logicItem: LogicItem = options;
1296
+ let logicItem: LogicItem = options;
1244
1297
  return logicItem.delete();
1245
1298
  }
1246
1299
 
1300
+
1301
+
1247
1302
  /**
1248
1303
  * 删除逻辑项
1249
1304
  * @param logicItem 已有的逻辑项实例
@@ -1251,7 +1306,7 @@ export class Logic extends BaseNode {
1251
1306
  removeItemInPlayground(logicItem: LogicItem): void;
1252
1307
 
1253
1308
  removeItemInPlayground(options: LogicItem) {
1254
- const logicItem: LogicItem = options;
1309
+ let logicItem: LogicItem = options;
1255
1310
  return logicItem.delete();
1256
1311
  }
1257
1312
 
@@ -1784,7 +1839,7 @@ export class Logic extends BaseNode {
1784
1839
  return _interface ? `${rightNode.tsCalleeKey}(${_interface.params.map(() => 'null').join(',')})` : null;
1785
1840
  }
1786
1841
 
1787
- // 调用全局逻辑,参数替换成 null
1842
+ // 调用服务端逻辑,参数替换成 null
1788
1843
  if (rightNode instanceof CallLogic && rightNode.calleeNamespace === 'app.logics') {
1789
1844
  const calleeName = rightNode?.calleeName;
1790
1845
  const calleeLogic = this.app.logics.find((l) => l.name === calleeName);
@@ -1922,6 +1977,8 @@ export class Logic extends BaseNode {
1922
1977
  let _path = this.module ? `/${this.module.parentKey}/${this.module.name}` : '';
1923
1978
  if (this.parentNode instanceof FrontendLibrary) {
1924
1979
  _path += `/frontends/${this.parentNode.type}`;
1980
+ } else if (this.parentNode.concept === 'BindEvent' && this.parentNode?.parentNode.concept === 'Frontend') {
1981
+ _path += `/frontends/${this.parentNode.parentNode.name}/bindEvents/${name}.ts`;
1925
1982
  }
1926
1983
  return `/embedded/${this.app.name}${_path}/logics/${name}.ts`;
1927
1984
  }
@@ -1933,7 +1990,7 @@ export class Logic extends BaseNode {
1933
1990
  try {
1934
1991
  code += this.toEmbeddedTS(state);
1935
1992
  } catch (err) {
1936
- console.log(err, '有问题翻译失败');
1993
+ console.log(err, `有问题翻译失败:${this.getTsNamespace()}.${this.name}`);
1937
1994
  code += '';
1938
1995
  console.log(err);
1939
1996
  }
@@ -1945,7 +2002,11 @@ export class Logic extends BaseNode {
1945
2002
  };
1946
2003
  }
1947
2004
 
1948
- public static getDefaultOptions() {
2005
+ public static getDefaultOptions(): Partial<{
2006
+ body: Array<any>,
2007
+ params: Array<any>,
2008
+ returns: Array<any>,
2009
+ }> {
1949
2010
  return {
1950
2011
  body: [
1951
2012
  {
@@ -2015,7 +2076,24 @@ export class Logic extends BaseNode {
2015
2076
  get pathName() {
2016
2077
  if (this.view) {
2017
2078
  return this.getEventLogicName('chinese');
2079
+ } else if (this.parentNode.concept === 'BindEvent' && this.parentNode.parentNode.concept === 'Frontend') {
2080
+ const frontEndEventNameMap = {
2081
+ rendered: '应用进入后',
2082
+ preRequest: '调用服务端逻辑前',
2083
+ postRequest: '调用服务端逻辑后',
2084
+ beforeRouter: '页面切换前',
2085
+ afterRouter: '页面切换后',
2086
+ };
2087
+ const pathName = [this.name];
2088
+ let parentNode = this.parentNode;
2089
+ while (parentNode && parentNode.concept !== 'Frontend') {
2090
+ const name = (frontEndEventNameMap as any)[parentNode.name] || parentNode.name;
2091
+ pathName.unshift(name);
2092
+ parentNode = parentNode.parentNode;
2093
+ }
2094
+ return pathName.join('-');
2018
2095
  }
2096
+
2019
2097
  const nameMap = {
2020
2098
  OnProcessStart: '流程开始时',
2021
2099
  OnTasksCreate: '任务创建时',
@@ -2040,7 +2118,7 @@ export class Logic extends BaseNode {
2040
2118
  if (type === 'chinese') {
2041
2119
  const bindEvent = this.parentNode;
2042
2120
  const bindChineseName = bindEvent.getPageViewEventChineseName();
2043
- return `${bindChineseName}-${this.name}`;
2121
+ return `${bindChineseName} -${this.name} `;
2044
2122
  }
2045
2123
  }
2046
2124
  return this.name;
@@ -86,7 +86,7 @@ export class Module extends BaseNode {
86
86
  * 外部语言依赖
87
87
  */
88
88
  @property()
89
- compilerInfoMap: { java?: Array<{ packageName: string, className:string, naslName: string, type: string, javaTypes:any }> } = undefined;
89
+ compilerInfoMap: { java?: Array<{ packageName: string,className:string,naslName: string, type: string,javaTypes:any }> } = undefined;
90
90
 
91
91
  /**
92
92
  * 数据源列表
@@ -182,8 +182,9 @@ export class Module extends BaseNode {
182
182
  }
183
183
  return params;
184
184
  }
185
+
185
186
 
186
- getDataSourceExistingNames(excludedList: Array<DataSource> = []) {
187
+ getDataSourceExistingNames(excludedList: Array<DataSource> = []) {
187
188
  const excludedSet = new Set(excludedList);
188
189
  return ((this.dataSources as DataSource[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
189
190
  }
@@ -324,6 +325,7 @@ export class Module extends BaseNode {
324
325
  return node;
325
326
  }
326
327
 
328
+
327
329
  getStructureExistingNames(excludedList: Array<Structure> = []) {
328
330
  const excludedSet = new Set(excludedList);
329
331
  return ((this.structures as Structure[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
@@ -465,6 +467,7 @@ export class Module extends BaseNode {
465
467
  return node;
466
468
  }
467
469
 
470
+
468
471
  getEnumExistingNames(excludedList: Array<Enum> = []) {
469
472
  const excludedSet = new Set(excludedList);
470
473
  return ((this.enums as Enum[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
@@ -606,6 +609,7 @@ export class Module extends BaseNode {
606
609
  return node;
607
610
  }
608
611
 
612
+
609
613
  getLogicExistingNames(excludedList: Array<Logic> = []) {
610
614
  const excludedSet = new Set(excludedList);
611
615
  return ((this.logics as Logic[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
@@ -747,6 +751,7 @@ export class Module extends BaseNode {
747
751
  return node;
748
752
  }
749
753
 
754
+
750
755
  getInterfaceExistingNames(excludedList: Array<Interface> = []) {
751
756
  const excludedSet = new Set(excludedList);
752
757
  return ((this.interfaces as Interface[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
@@ -888,6 +893,7 @@ export class Module extends BaseNode {
888
893
  return node;
889
894
  }
890
895
 
896
+
891
897
  getViewExistingNames(excludedList: Array<View> = []) {
892
898
  const excludedSet = new Set(excludedList);
893
899
  return ((this.views as View[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
@@ -1029,6 +1035,7 @@ export class Module extends BaseNode {
1029
1035
  return node;
1030
1036
  }
1031
1037
 
1038
+
1032
1039
  getVarExistingNames(excludedList: Array<Variable> = []) {
1033
1040
  const excludedSet = new Set(excludedList);
1034
1041
  return ((this.frontendVariables as Variable[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
@@ -1170,6 +1177,7 @@ export class Module extends BaseNode {
1170
1177
  return node;
1171
1178
  }
1172
1179
 
1180
+
1173
1181
  getProcessExistingNames(excludedList: Array<Process> = []) {
1174
1182
  const excludedSet = new Set(excludedList);
1175
1183
  return ((this.processes as Process[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
@@ -1311,6 +1319,7 @@ export class Module extends BaseNode {
1311
1319
  return node;
1312
1320
  }
1313
1321
 
1322
+
1314
1323
  getFrontendLibraryExistingNames(excludedList: Array<FrontendLibrary> = []) {
1315
1324
  const excludedSet = new Set(excludedList);
1316
1325
  return ((this.frontends as FrontendLibrary[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
@@ -1452,6 +1461,9 @@ export class Module extends BaseNode {
1452
1461
  return node;
1453
1462
  }
1454
1463
 
1464
+
1465
+
1466
+
1455
1467
  /**
1456
1468
  * 删除数据源
1457
1469
  * @param name 数据源名称
@@ -1500,6 +1512,8 @@ export class Module extends BaseNode {
1500
1512
  return params;
1501
1513
  }
1502
1514
 
1515
+
1516
+
1503
1517
  /**
1504
1518
  * 删除数据结构
1505
1519
  * @param name 数据结构名称
@@ -1548,6 +1562,8 @@ export class Module extends BaseNode {
1548
1562
  return params;
1549
1563
  }
1550
1564
 
1565
+
1566
+
1551
1567
  /**
1552
1568
  * 删除枚举
1553
1569
  * @param name 枚举名称
@@ -1596,6 +1612,8 @@ export class Module extends BaseNode {
1596
1612
  return params;
1597
1613
  }
1598
1614
 
1615
+
1616
+
1599
1617
  /**
1600
1618
  * 删除逻辑
1601
1619
  * @param name 逻辑名称
@@ -1644,6 +1662,8 @@ export class Module extends BaseNode {
1644
1662
  return params;
1645
1663
  }
1646
1664
 
1665
+
1666
+
1647
1667
  /**
1648
1668
  * 删除接口
1649
1669
  * @param name 接口名称
@@ -1692,6 +1712,8 @@ export class Module extends BaseNode {
1692
1712
  return params;
1693
1713
  }
1694
1714
 
1715
+
1716
+
1695
1717
  /**
1696
1718
  * 删除页面
1697
1719
  * @param name 页面名称
@@ -1740,6 +1762,8 @@ export class Module extends BaseNode {
1740
1762
  return params;
1741
1763
  }
1742
1764
 
1765
+
1766
+
1743
1767
  /**
1744
1768
  * 删除变量
1745
1769
  * @param name 变量名称
@@ -1788,6 +1812,8 @@ export class Module extends BaseNode {
1788
1812
  return params;
1789
1813
  }
1790
1814
 
1815
+
1816
+
1791
1817
  /**
1792
1818
  * 删除流程
1793
1819
  * @param name 流程名称
@@ -1836,6 +1862,8 @@ export class Module extends BaseNode {
1836
1862
  return params;
1837
1863
  }
1838
1864
 
1865
+
1866
+
1839
1867
  /**
1840
1868
  * 删除端包
1841
1869
  * @param name 端包名称
@@ -1884,6 +1912,8 @@ export class Module extends BaseNode {
1884
1912
  return params;
1885
1913
  }
1886
1914
 
1915
+
1916
+
1887
1917
  /**
1888
1918
  * 删除配置管理
1889
1919
  * @param name 配置管理名称
@@ -116,7 +116,7 @@ export class Namespace extends BaseNode {
116
116
  variables: Array<Variable> = [];
117
117
 
118
118
  /**
119
- * 页面组件列表
119
+ * 平台类型列表
120
120
  */
121
121
  @property('ViewComponent')
122
122
  viewComponents: Array<ViewComponent> = [];
@@ -1578,23 +1578,23 @@ export class Namespace extends BaseNode {
1578
1578
  }
1579
1579
 
1580
1580
  /**
1581
- * 插入页面组件
1581
+ * 插入平台类型
1582
1582
  * @internal
1583
- * @param name 页面组件名称,如果不填会自动生成一个唯一名称
1583
+ * @param name 平台类型名称,如果不填会自动生成一个唯一名称
1584
1584
  */
1585
1585
  _insertViewComponentAt(name: string, index: number): ViewComponent;
1586
1586
 
1587
1587
  /**
1588
- * 插入页面组件
1588
+ * 插入平台类型
1589
1589
  * @internal
1590
- * @param viewComponentOptions 页面组件参数
1590
+ * @param viewComponentOptions 平台类型参数
1591
1591
  */
1592
1592
  _insertViewComponentAt(viewComponentOptions: Partial<ViewComponent>, index: number): ViewComponent;
1593
1593
 
1594
1594
  /**
1595
- * 插入页面组件
1595
+ * 插入平台类型
1596
1596
  * @internal
1597
- * @param viewComponent 已有的页面组件实例
1597
+ * @param viewComponent 已有的平台类型实例
1598
1598
  */
1599
1599
  _insertViewComponentAt(viewComponent: ViewComponent, index: number): ViewComponent;
1600
1600
 
@@ -1627,20 +1627,20 @@ export class Namespace extends BaseNode {
1627
1627
  }
1628
1628
 
1629
1629
  /**
1630
- * 插入页面组件
1631
- * @param name 页面组件名称,如果不填会自动生成一个唯一名称
1630
+ * 插入平台类型
1631
+ * @param name 平台类型名称,如果不填会自动生成一个唯一名称
1632
1632
  */
1633
1633
  insertViewComponentAt(name: string, index: number): ViewComponent;
1634
1634
 
1635
1635
  /**
1636
- * 插入页面组件
1637
- * @param viewComponentOptions 页面组件参数
1636
+ * 插入平台类型
1637
+ * @param viewComponentOptions 平台类型参数
1638
1638
  */
1639
1639
  insertViewComponentAt(viewComponentOptions: Partial<ViewComponent>, index: number): ViewComponent;
1640
1640
 
1641
1641
  /**
1642
- * 插入页面组件
1643
- * @param viewComponent 已有的页面组件实例
1642
+ * 插入平台类型
1643
+ * @param viewComponent 已有的平台类型实例
1644
1644
  */
1645
1645
  insertViewComponentAt(viewComponent: ViewComponent, index: number): ViewComponent;
1646
1646
 
@@ -1655,23 +1655,23 @@ export class Namespace extends BaseNode {
1655
1655
  }
1656
1656
 
1657
1657
  /**
1658
- * 添加页面组件
1658
+ * 添加平台类型
1659
1659
  * @internal
1660
- * @param name 页面组件名称,如果不填会自动生成一个唯一名称
1660
+ * @param name 平台类型名称,如果不填会自动生成一个唯一名称
1661
1661
  */
1662
1662
  _addViewComponent(name?: string): ViewComponent;
1663
1663
 
1664
1664
  /**
1665
- * 添加页面组件
1665
+ * 添加平台类型
1666
1666
  * @internal
1667
- * @param viewComponentOptions 页面组件参数
1667
+ * @param viewComponentOptions 平台类型参数
1668
1668
  */
1669
1669
  _addViewComponent(viewComponentOptions: Partial<ViewComponent>): ViewComponent;
1670
1670
 
1671
1671
  /**
1672
- * 添加页面组件
1672
+ * 添加平台类型
1673
1673
  * @internal
1674
- * @param viewComponent 已有的页面组件实例
1674
+ * @param viewComponent 已有的平台类型实例
1675
1675
  */
1676
1676
  _addViewComponent(viewComponent: ViewComponent): ViewComponent;
1677
1677
 
@@ -1681,21 +1681,21 @@ export class Namespace extends BaseNode {
1681
1681
  }
1682
1682
 
1683
1683
  /**
1684
- * 添加页面组件
1684
+ * 添加平台类型
1685
1685
  * @internal
1686
- * @param name 页面组件名称,如果不填会自动生成一个唯一名称
1686
+ * @param name 平台类型名称,如果不填会自动生成一个唯一名称
1687
1687
  */
1688
1688
  addViewComponent(name?: string): ViewComponent;
1689
1689
 
1690
1690
  /**
1691
- * 添加页面组件
1692
- * @param viewComponentOptions 页面组件参数
1691
+ * 添加平台类型
1692
+ * @param viewComponentOptions 平台类型参数
1693
1693
  */
1694
1694
  addViewComponent(viewComponentOptions: Partial<ViewComponent>): ViewComponent;
1695
1695
 
1696
1696
  /**
1697
- * 添加页面组件
1698
- * @param viewComponent 已有的页面组件实例
1697
+ * 添加平台类型
1698
+ * @param viewComponent 已有的平台类型实例
1699
1699
  */
1700
1700
  addViewComponent(viewComponent: ViewComponent): ViewComponent;
1701
1701
 
@@ -2333,14 +2333,14 @@ export class Namespace extends BaseNode {
2333
2333
 
2334
2334
 
2335
2335
  /**
2336
- * 删除页面组件
2337
- * @param name 页面组件名称
2336
+ * 删除平台类型
2337
+ * @param name 平台类型名称
2338
2338
  */
2339
2339
  removeViewComponent(name: string): void;
2340
2340
 
2341
2341
  /**
2342
- * 删除页面组件
2343
- * @param viewComponent 已有的页面组件实例
2342
+ * 删除平台类型
2343
+ * @param viewComponent 已有的平台类型实例
2344
2344
  */
2345
2345
  removeViewComponent(viewComponent: ViewComponent): void;
2346
2346
 
@@ -2349,7 +2349,7 @@ export class Namespace extends BaseNode {
2349
2349
  if (typeof options === 'string') {
2350
2350
  viewComponent = (this.viewComponents as ViewComponent[]).find((item) => item.name === options);
2351
2351
  if (!viewComponent) {
2352
- throw new Error('找不到页面组件 ' + options);
2352
+ throw new Error('找不到平台类型 ' + options);
2353
2353
  }
2354
2354
  } else {
2355
2355
  viewComponent = options;