@lcap/nasl 3.7.3-beta.1 → 3.8.0-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 (370) hide show
  1. package/.mocharc.js +0 -1
  2. package/out/automate/engine/utils.js +6 -1
  3. package/out/automate/engine/utils.js.map +1 -1
  4. package/out/bak/translator.js +37 -0
  5. package/out/bak/translator.js.map +1 -1
  6. package/out/breakpoint/shared/utils.d.ts +1 -0
  7. package/out/breakpoint/shared/utils.js +1 -1
  8. package/out/breakpoint/shared/utils.js.map +1 -1
  9. package/out/common/BaseNode.d.ts +11 -0
  10. package/out/common/BaseNode.js +101 -5
  11. package/out/common/BaseNode.js.map +1 -1
  12. package/out/concepts/Annotatable__.d.ts +109 -0
  13. package/out/concepts/Annotatable__.js +161 -0
  14. package/out/concepts/Annotatable__.js.map +1 -0
  15. package/out/concepts/AnnotationProperty__.d.ts +48 -0
  16. package/out/concepts/AnnotationProperty__.js +74 -0
  17. package/out/concepts/AnnotationProperty__.js.map +1 -0
  18. package/out/concepts/Annotation__.d.ts +128 -0
  19. package/out/concepts/Annotation__.js +248 -0
  20. package/out/concepts/Annotation__.js.map +1 -0
  21. package/out/concepts/App__.d.ts +14 -26
  22. package/out/concepts/App__.js +50 -20
  23. package/out/concepts/App__.js.map +1 -1
  24. package/out/concepts/ApplyAnnotation__.d.ts +87 -0
  25. package/out/concepts/ApplyAnnotation__.js +140 -0
  26. package/out/concepts/ApplyAnnotation__.js.map +1 -0
  27. package/out/concepts/Argument__.d.ts +19 -0
  28. package/out/concepts/Argument__.js +126 -0
  29. package/out/concepts/Argument__.js.map +1 -1
  30. package/out/concepts/AssigneeV2__.d.ts +169 -0
  31. package/out/concepts/AssigneeV2__.js +176 -1
  32. package/out/concepts/AssigneeV2__.js.map +1 -1
  33. package/out/concepts/AuthLogicForCallInterface__.js +1 -1
  34. package/out/concepts/AuthLogicForCallInterface__.js.map +1 -1
  35. package/out/concepts/AuthLogic__.js +1 -1
  36. package/out/concepts/AuthLogic__.js.map +1 -1
  37. package/out/concepts/BooleanLiteral__.d.ts +1 -0
  38. package/out/concepts/BooleanLiteral__.js +9 -0
  39. package/out/concepts/BooleanLiteral__.js.map +1 -1
  40. package/out/concepts/BusinessLogic__.js +1 -1
  41. package/out/concepts/BusinessLogic__.js.map +1 -1
  42. package/out/concepts/CallFunction__.js +1 -1
  43. package/out/concepts/CallFunction__.js.map +1 -1
  44. package/out/concepts/CallLogic__.d.ts +15 -0
  45. package/out/concepts/CallLogic__.js +149 -17
  46. package/out/concepts/CallLogic__.js.map +1 -1
  47. package/out/concepts/ConnectorLogic__.js +1 -1
  48. package/out/concepts/ConnectorLogic__.js.map +1 -1
  49. package/out/concepts/DatabaseTypeAnnotation__.d.ts +0 -2
  50. package/out/concepts/DatabaseTypeAnnotation__.js +0 -20
  51. package/out/concepts/DatabaseTypeAnnotation__.js.map +1 -1
  52. package/out/concepts/DepartmentManagerV2__.d.ts +29 -0
  53. package/out/concepts/DepartmentManagerV2__.js +56 -0
  54. package/out/concepts/DepartmentManagerV2__.js.map +1 -0
  55. package/out/concepts/DepartmentV2__.d.ts +33 -0
  56. package/out/concepts/DepartmentV2__.js +63 -0
  57. package/out/concepts/DepartmentV2__.js.map +1 -0
  58. package/out/concepts/DirectManagerV2__.d.ts +25 -0
  59. package/out/concepts/DirectManagerV2__.js +53 -0
  60. package/out/concepts/DirectManagerV2__.js.map +1 -0
  61. package/out/concepts/End__.js +9 -1
  62. package/out/concepts/End__.js.map +1 -1
  63. package/out/concepts/EntityProperty__.js +0 -2
  64. package/out/concepts/EntityProperty__.js.map +1 -1
  65. package/out/concepts/Entity__.d.ts +2 -2
  66. package/out/concepts/Entity__.js +4 -7
  67. package/out/concepts/Entity__.js.map +1 -1
  68. package/out/concepts/EnumItem__.d.ts +1 -12
  69. package/out/concepts/EnumItem__.js +17 -49
  70. package/out/concepts/EnumItem__.js.map +1 -1
  71. package/out/concepts/EnumSelectSetter__.d.ts +4 -0
  72. package/out/concepts/EnumSelectSetter__.js +7 -0
  73. package/out/concepts/EnumSelectSetter__.js.map +1 -1
  74. package/out/concepts/Enum__.js +1 -4
  75. package/out/concepts/Enum__.js.map +1 -1
  76. package/out/concepts/ForEachStatement__.js +1 -1
  77. package/out/concepts/ForEachStatement__.js.map +1 -1
  78. package/out/concepts/FrontendLibrary__.d.ts +52 -48
  79. package/out/concepts/FrontendLibrary__.js +45 -36
  80. package/out/concepts/FrontendLibrary__.js.map +1 -1
  81. package/out/concepts/FrontendType__.d.ts +4 -0
  82. package/out/concepts/FrontendType__.js +7 -0
  83. package/out/concepts/FrontendType__.js.map +1 -1
  84. package/out/concepts/Frontend__.d.ts +2 -0
  85. package/out/concepts/Frontend__.js +21 -2
  86. package/out/concepts/Frontend__.js.map +1 -1
  87. package/out/concepts/HistoryProcessV2__.js +4 -1
  88. package/out/concepts/HistoryProcessV2__.js.map +1 -1
  89. package/out/concepts/I18nInfo__.d.ts +0 -1
  90. package/out/concepts/I18nInfo__.js +0 -7
  91. package/out/concepts/I18nInfo__.js.map +1 -1
  92. package/out/concepts/Identifier__.d.ts +2 -0
  93. package/out/concepts/Identifier__.js +31 -0
  94. package/out/concepts/Identifier__.js.map +1 -1
  95. package/out/concepts/IfStatement__.js +2 -2
  96. package/out/concepts/IfStatement__.js.map +1 -1
  97. package/out/concepts/Interface__.js +1 -4
  98. package/out/concepts/Interface__.js.map +1 -1
  99. package/out/concepts/LogicItem__.d.ts +1 -1
  100. package/out/concepts/LogicItem__.js.map +1 -1
  101. package/out/concepts/Logic__.d.ts +16 -1
  102. package/out/concepts/Logic__.js +133 -15
  103. package/out/concepts/Logic__.js.map +1 -1
  104. package/out/concepts/ManagerV2__.d.ts +34 -0
  105. package/out/concepts/ManagerV2__.js +61 -0
  106. package/out/concepts/ManagerV2__.js.map +1 -0
  107. package/out/concepts/MatchCase__.d.ts +2 -2
  108. package/out/concepts/MatchCase__.js +7 -7
  109. package/out/concepts/MatchCase__.js.map +1 -1
  110. package/out/concepts/MemberExpression__.js +1 -0
  111. package/out/concepts/MemberExpression__.js.map +1 -1
  112. package/out/concepts/Module__.d.ts +88 -0
  113. package/out/concepts/Module__.js +85 -0
  114. package/out/concepts/Module__.js.map +1 -1
  115. package/out/concepts/OperatePermissionV2__.d.ts +1 -1
  116. package/out/concepts/OperatePermissionV2__.js.map +1 -1
  117. package/out/concepts/Param__.d.ts +4 -0
  118. package/out/concepts/Param__.js +13 -21
  119. package/out/concepts/Param__.js.map +1 -1
  120. package/out/concepts/ProcessElementV2__.d.ts +6 -1
  121. package/out/concepts/ProcessElementV2__.js +20 -0
  122. package/out/concepts/ProcessElementV2__.js.map +1 -1
  123. package/out/concepts/ProcessElement__.d.ts +7 -0
  124. package/out/concepts/ProcessElement__.js +47 -0
  125. package/out/concepts/ProcessElement__.js.map +1 -1
  126. package/out/concepts/ProcessV2__.d.ts +1 -34
  127. package/out/concepts/ProcessV2__.js +3 -70
  128. package/out/concepts/ProcessV2__.js.map +1 -1
  129. package/out/concepts/QueryFromExpression__.js +2 -2
  130. package/out/concepts/QueryFromExpression__.js.map +1 -1
  131. package/out/concepts/QueryJoinExpression__.js +2 -2
  132. package/out/concepts/QueryJoinExpression__.js.map +1 -1
  133. package/out/concepts/StaticString__.d.ts +0 -4
  134. package/out/concepts/StaticString__.js +0 -11
  135. package/out/concepts/StaticString__.js.map +1 -1
  136. package/out/concepts/StructureProperty__.d.ts +1 -0
  137. package/out/concepts/StructureProperty__.js +14 -5
  138. package/out/concepts/StructureProperty__.js.map +1 -1
  139. package/out/concepts/Structure__.d.ts +4 -0
  140. package/out/concepts/Structure__.js +6 -9
  141. package/out/concepts/Structure__.js.map +1 -1
  142. package/out/concepts/SubLogic__.d.ts +418 -0
  143. package/out/concepts/SubLogic__.js +992 -0
  144. package/out/concepts/SubLogic__.js.map +1 -0
  145. package/out/concepts/Theme__.d.ts +9 -0
  146. package/out/concepts/Theme__.js +10 -0
  147. package/out/concepts/Theme__.js.map +1 -1
  148. package/out/concepts/Transactional__.d.ts +0 -1
  149. package/out/concepts/Transactional__.js +0 -7
  150. package/out/concepts/Transactional__.js.map +1 -1
  151. package/out/concepts/TypeAnnotation__.js +18 -0
  152. package/out/concepts/TypeAnnotation__.js.map +1 -1
  153. package/out/concepts/TypeParam__.d.ts +1 -0
  154. package/out/concepts/TypeParam__.js.map +1 -1
  155. package/out/concepts/ValidationRule__.d.ts +6 -1
  156. package/out/concepts/ValidationRule__.js +6 -1
  157. package/out/concepts/ValidationRule__.js.map +1 -1
  158. package/out/concepts/ViewElement__.d.ts +8 -2
  159. package/out/concepts/ViewElement__.js +213 -32
  160. package/out/concepts/ViewElement__.js.map +1 -1
  161. package/out/concepts/View__.d.ts +10 -2
  162. package/out/concepts/View__.js +129 -17
  163. package/out/concepts/View__.js.map +1 -1
  164. package/out/concepts/basics/stdlib/nasl.processV2.d.ts +2 -0
  165. package/out/concepts/basics/stdlib/nasl.processV2.js +50 -4
  166. package/out/concepts/basics/stdlib/nasl.processV2.js.map +1 -1
  167. package/out/concepts/basics/types/index.d.ts +1 -1
  168. package/out/concepts/basics/types/index.js +2 -1
  169. package/out/concepts/basics/types/index.js.map +1 -1
  170. package/out/concepts/index__.d.ts +9 -0
  171. package/out/concepts/index__.js +9 -0
  172. package/out/concepts/index__.js.map +1 -1
  173. package/out/concepts/utils/asserts.d.ts +409 -0
  174. package/out/concepts/utils/asserts.js +564 -14
  175. package/out/concepts/utils/asserts.js.map +1 -1
  176. package/out/concepts/utils/types.d.ts +33 -2
  177. package/out/generator/genBundleFiles.d.ts +13 -9
  178. package/out/generator/genBundleFiles.js +383 -63
  179. package/out/generator/genBundleFiles.js.map +1 -1
  180. package/out/generator/genMetaData.js +2 -0
  181. package/out/generator/genMetaData.js.map +1 -1
  182. package/out/generator/release-body/body.js +1 -0
  183. package/out/generator/release-body/body.js.map +1 -1
  184. package/out/generator/release-body/utils.d.ts +15 -7
  185. package/out/generator/release-body/utils.js +50 -7
  186. package/out/generator/release-body/utils.js.map +1 -1
  187. package/out/natural/genNaturalTS.js +2 -4
  188. package/out/natural/genNaturalTS.js.map +1 -1
  189. package/out/natural/getContext/index.js +0 -2
  190. package/out/natural/getContext/index.js.map +1 -1
  191. package/out/natural/transformTS2UI.js.map +1 -1
  192. package/out/natural/transformTSCode.d.ts +1 -1
  193. package/out/natural/transformTSCode.js.map +1 -1
  194. package/out/server/extendBaseNode.js +9 -0
  195. package/out/server/extendBaseNode.js.map +1 -1
  196. package/out/server/getLogics.js +10 -6
  197. package/out/server/getLogics.js.map +1 -1
  198. package/out/server/getMemberIdentifier.js +6 -0
  199. package/out/server/getMemberIdentifier.js.map +1 -1
  200. package/out/server/getProcessesV2.d.ts +3 -2
  201. package/out/server/getProcessesV2.js +15 -6
  202. package/out/server/getProcessesV2.js.map +1 -1
  203. package/out/server/naslServer.d.ts +5 -1
  204. package/out/server/naslServer.js +120 -30
  205. package/out/server/naslServer.js.map +1 -1
  206. package/out/server/translator.js +4 -0
  207. package/out/server/translator.js.map +1 -1
  208. package/out/service/storage/init.d.ts +2 -1
  209. package/out/service/storage/init.js +28 -71
  210. package/out/service/storage/init.js.map +1 -1
  211. package/out/templator/genCreateBlock.d.ts +6 -2
  212. package/out/templator/genCreateBlock.js +25 -8
  213. package/out/templator/genCreateBlock.js.map +1 -1
  214. package/out/templator/genCurdEditMultipleKeyBlock.d.ts +22 -0
  215. package/out/templator/genCurdEditMultipleKeyBlock.js +60 -1
  216. package/out/templator/genCurdEditMultipleKeyBlock.js.map +1 -1
  217. package/out/templator/genCurdMultipleKeyBlock.d.ts +13 -3
  218. package/out/templator/genCurdMultipleKeyBlock.js +29 -23
  219. package/out/templator/genCurdMultipleKeyBlock.js.map +1 -1
  220. package/out/templator/genGetBlock.d.ts +1 -1
  221. package/out/templator/genGetBlock.js +3 -2
  222. package/out/templator/genGetBlock.js.map +1 -1
  223. package/out/templator/genListViewBlock.d.ts +1 -1
  224. package/out/templator/genListViewBlock.js +3 -2
  225. package/out/templator/genListViewBlock.js.map +1 -1
  226. package/out/templator/genSelectBlock.d.ts +1 -1
  227. package/out/templator/genSelectBlock.js +3 -2
  228. package/out/templator/genSelectBlock.js.map +1 -1
  229. package/out/templator/genTableBlock.d.ts +9 -4
  230. package/out/templator/genTableBlock.js +31 -17
  231. package/out/templator/genTableBlock.js.map +1 -1
  232. package/out/templator/genUpdateBlock.d.ts +2 -2
  233. package/out/templator/genUpdateBlock.js +11 -11
  234. package/out/templator/genUpdateBlock.js.map +1 -1
  235. package/out/translator/types.d.ts +0 -4
  236. package/out/translator/utils.d.ts +0 -1
  237. package/out/translator/utils.js +1 -6
  238. package/out/translator/utils.js.map +1 -1
  239. package/out/utils/delay/index.d.ts +0 -0
  240. package/out/utils/delay/index.js +1 -0
  241. package/out/utils/delay/index.js.map +1 -0
  242. package/out/utils/env.d.ts +0 -4
  243. package/out/utils/env.js +3 -6
  244. package/out/utils/env.js.map +1 -1
  245. package/out/utils/index.d.ts +3 -2
  246. package/out/utils/index.js +18 -14
  247. package/out/utils/index.js.map +1 -1
  248. package/out/utils/time-slicing/controller.js.map +1 -1
  249. package/out/utils/types.d.ts +0 -17
  250. package/package.json +27 -20
  251. package/sandbox/stdlib/extension.component.ts +29 -0
  252. package/sandbox/stdlib/nasl.process.ts +17 -0
  253. package/sandbox/stdlib/nasl.processV2.ts +10 -5
  254. package/sandbox/stdlib/nasl.util.ts +3 -1
  255. package/src/automate/engine/utils.js +7 -2
  256. package/src/bak/translator.js +42 -1
  257. package/src/breakpoint/shared/utils.ts +2 -1
  258. package/src/common/BaseNode.ts +117 -5
  259. package/src/concepts/Annotatable__.ts +263 -0
  260. package/src/concepts/AnnotationProperty__.ts +102 -0
  261. package/src/concepts/Annotation__.ts +344 -0
  262. package/src/concepts/App__.ts +917 -26
  263. package/src/concepts/ApplyAnnotation__.ts +198 -0
  264. package/src/concepts/Argument__.ts +145 -1
  265. package/src/concepts/AssigneeV2__.ts +387 -1
  266. package/src/concepts/AuthLogicForCallInterface__.ts +1 -1
  267. package/src/concepts/AuthLogic__.ts +1 -1
  268. package/src/concepts/BooleanLiteral__.ts +9 -1
  269. package/src/concepts/BusinessLogic__.ts +1 -1
  270. package/src/concepts/CallFunction__.ts +1 -1
  271. package/src/concepts/CallLogic__.ts +153 -16
  272. package/src/concepts/ConnectorLogic__.ts +1 -1
  273. package/src/concepts/DatabaseTypeAnnotation__.ts +0 -11
  274. package/src/concepts/DepartmentManagerV2__.ts +70 -0
  275. package/src/concepts/DepartmentV2__.ts +75 -0
  276. package/src/concepts/DirectManagerV2__.ts +65 -0
  277. package/src/concepts/End__.ts +10 -1
  278. package/src/concepts/EntityProperty__.ts +0 -5
  279. package/src/concepts/Entity__.ts +5 -9
  280. package/src/concepts/EnumItem__.ts +16 -65
  281. package/src/concepts/EnumSelectSetter__.ts +6 -0
  282. package/src/concepts/Enum__.ts +1 -6
  283. package/src/concepts/ForEachStatement__.ts +1 -1
  284. package/src/concepts/FrontendLibrary__.ts +88 -80
  285. package/src/concepts/FrontendType__.ts +6 -0
  286. package/src/concepts/Frontend__.ts +26 -3
  287. package/src/concepts/HistoryProcessV2__.ts +5 -0
  288. package/src/concepts/I18nInfo__.ts +0 -5
  289. package/src/concepts/Identifier__.ts +32 -0
  290. package/src/concepts/IfStatement__.ts +2 -2
  291. package/src/concepts/Interface__.ts +1 -6
  292. package/src/concepts/LogicItem__.ts +1 -0
  293. package/src/concepts/Logic__.ts +140 -17
  294. package/src/concepts/ManagerV2__.ts +78 -0
  295. package/src/concepts/MatchCase__.ts +9 -8
  296. package/src/concepts/MemberExpression__.ts +1 -0
  297. package/src/concepts/Module__.ts +194 -0
  298. package/src/concepts/OperatePermissionV2__.ts +1 -1
  299. package/src/concepts/Param__.ts +17 -20
  300. package/src/concepts/ProcessElementV2__.ts +23 -0
  301. package/src/concepts/ProcessElement__.ts +18 -0
  302. package/src/concepts/ProcessV2__.ts +4 -70
  303. package/src/concepts/QueryFromExpression__.ts +2 -2
  304. package/src/concepts/QueryJoinExpression__.ts +2 -2
  305. package/src/concepts/StaticString__.ts +0 -13
  306. package/src/concepts/StructureProperty__.ts +16 -7
  307. package/src/concepts/Structure__.ts +10 -11
  308. package/src/concepts/SubLogic__.ts +1516 -0
  309. package/src/concepts/Theme__.ts +9 -0
  310. package/src/concepts/Transactional__.ts +0 -5
  311. package/src/concepts/TriggerLauncher__.ts +1 -1
  312. package/src/concepts/TypeAnnotation__.ts +17 -0
  313. package/src/concepts/TypeParam__.ts +3 -0
  314. package/src/concepts/ValidationRule__.ts +6 -1
  315. package/src/concepts/ViewElement__.ts +224 -34
  316. package/src/concepts/View__.ts +135 -22
  317. package/src/concepts/basics/stdlib/nasl.processV2.ts +56 -3
  318. package/src/concepts/basics/types/index.ts +1 -1
  319. package/src/concepts/index__.ts +9 -0
  320. package/src/concepts/utils/asserts.ts +595 -0
  321. package/src/concepts/utils/types.ts +53 -0
  322. package/src/generator/genBundleFiles.ts +408 -68
  323. package/src/generator/genMetaData.ts +3 -0
  324. package/src/generator/release-body/body.ts +1 -0
  325. package/src/generator/release-body/utils.ts +159 -55
  326. package/src/natural/genNaturalTS.ts +3 -5
  327. package/src/natural/getContext/index.ts +0 -2
  328. package/src/natural/transformTS2UI.ts +5 -2
  329. package/src/natural/transformTSCode.ts +2 -2
  330. package/src/server/extendBaseNode.ts +11 -2
  331. package/src/server/getLogics.ts +9 -7
  332. package/src/server/getMemberIdentifier.ts +7 -0
  333. package/src/server/getProcessesV2.ts +16 -6
  334. package/src/server/naslServer.ts +133 -30
  335. package/src/server/translator.ts +4 -0
  336. package/src/service/storage/init.ts +52 -97
  337. package/src/templator/genCreateBlock.ts +35 -14
  338. package/src/templator/genCurdEditMultipleKeyBlock.ts +65 -1
  339. package/src/templator/genCurdMultipleKeyBlock.ts +42 -23
  340. package/src/templator/genGetBlock.ts +4 -3
  341. package/src/templator/genListViewBlock.ts +3 -3
  342. package/src/templator/genSelectBlock.ts +4 -2
  343. package/src/templator/genTableBlock.ts +32 -17
  344. package/src/templator/genUpdateBlock.ts +21 -18
  345. package/src/translator/types.ts +0 -4
  346. package/src/translator/utils.ts +0 -6
  347. package/src/utils/delay/index.ts +0 -0
  348. package/src/utils/env.ts +4 -5
  349. package/src/utils/index.ts +16 -4
  350. package/src/utils/time-slicing/controller.ts +1 -0
  351. package/src/utils/types.ts +0 -20
  352. package/test/concepts/validation-rule/__snapshots__/toEmbeddedTS.spec.ts.snap +2 -1
  353. package/ts-worker/bundle.js +1 -1
  354. package/ts-worker/src/index.js +1 -0
  355. package/out/utils/language-cache/constant.d.ts +0 -18
  356. package/out/utils/language-cache/constant.js +0 -35
  357. package/out/utils/language-cache/constant.js.map +0 -1
  358. package/out/utils/language-cache/index.d.ts +0 -2
  359. package/out/utils/language-cache/index.js +0 -19
  360. package/out/utils/language-cache/index.js.map +0 -1
  361. package/out/utils/language-cache/nasl.d.ts +0 -10
  362. package/out/utils/language-cache/nasl.js +0 -98
  363. package/out/utils/language-cache/nasl.js.map +0 -1
  364. package/out/utils/language-cache/types.d.ts +0 -44
  365. package/out/utils/language-cache/types.js +0 -4
  366. package/out/utils/language-cache/types.js.map +0 -1
  367. package/src/utils/language-cache/constant.ts +0 -37
  368. package/src/utils/language-cache/index.ts +0 -2
  369. package/src/utils/language-cache/nasl.ts +0 -83
  370. package/src/utils/language-cache/types.ts +0 -48
@@ -3634,6 +3634,26 @@ export class App extends BaseNode {
3634
3634
  // ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
3635
3635
  // 自动生成的代码已结束。下面可以手动编写。
3636
3636
  //================================================================================
3637
+ getDefaultOnAnno() {
3638
+ let result: any = {
3639
+ Entity: [],
3640
+ Logic: [],
3641
+ ViewElement: [],
3642
+ };
3643
+ this?.dependencies?.forEach((dep) => {
3644
+ if (dep?.annotations?.length > 0) {
3645
+ dep.annotations.forEach((anno) => {
3646
+ let useAnno:any = anno?.properties?.find((p) => p?.name === 'useAnno');
3647
+ if (useAnno && useAnno.defaultValue?.expression?.value === 'true') {
3648
+ anno.applyTo.map((concept) => {
3649
+ result[concept].push(anno);
3650
+ });
3651
+ }
3652
+ });
3653
+ }
3654
+ });
3655
+ return result;
3656
+ }
3637
3657
 
3638
3658
  findDataSourceByName(name: string) {
3639
3659
  return this.dataSources.find((dataSourceItem) => dataSourceItem.name === name);
@@ -4009,36 +4029,45 @@ export class App extends BaseNode {
4009
4029
  this.envList = ['dev', 'online'];
4010
4030
  }
4011
4031
 
4012
- loadPackageInfo(scope: string, inputMaterialConfig?: any) {
4013
- const materialConfig = inputMaterialConfig ?? (globalThis as any).globalData.materialConfig ?? {};
4014
- const { framework, ui } = materialConfig;
4032
+ // loadPackageInfo(scope: string) {
4033
+ // const materialConfig = (window as any).globalData.materialConfig || {};
4034
+ // const { framework, ui } = materialConfig;
4015
4035
 
4016
- const packageInfo = {
4017
- template: { name: '', version: '', scope },
4018
- ui: { name: '', version: '', scope },
4019
- scope,
4020
- };
4036
+ // const packageInfo = {
4037
+ // template: [],{ name: '', version: '', scope },
4038
+ // ui: [],{ name: '', version: '', scope },
4039
+ // scope,
4040
+ // };
4021
4041
 
4022
- packageInfo.template.name = scope === 'h5' ? framework.h5 : framework.pc;
4023
- packageInfo.template.version = framework.version;
4042
+ // packageInfo.template.name = scope === 'h5' ? framework.h5 : framework.pc;
4043
+ // packageInfo.template.version = framework.version;
4024
4044
 
4025
- packageInfo.ui.name = scope === 'h5' ? ui.h5.name : ui.pc.name;
4026
- packageInfo.ui.version = scope === 'h5' ? ui.h5.version : ui.pc.version;
4045
+ // packageInfo.ui.name = scope === 'h5' ? ui.h5.name : ui.pc.name;
4046
+ // packageInfo.ui.version = scope === 'h5' ? ui.h5.version : ui.pc.version;
4027
4047
 
4028
- return packageInfo;
4029
- }
4048
+ // return packageInfo;
4049
+ // }
4030
4050
 
4031
4051
  public packageInfos: Array<{
4032
- template: { name: string; version: string; scope: string };
4033
- ui: { name: string; version: string; scope: string };
4052
+ template: [{ name: string; version: string; frameworkKind: string }];
4053
+ ui: [{ name: string; version: string; frameworkKind: string }];
4034
4054
  scope: string;
4035
4055
  }> = [];
4036
4056
 
4037
4057
  loadPackageInfos(inputMaterialConfig?: any) {
4038
4058
  this.packageInfos = [];
4059
+ const materialConfig = inputMaterialConfig ?? ((window as any).globalData.materialConfig || {});
4060
+ const { framework, ui } = materialConfig;
4061
+
4039
4062
  const scopes = ['pc', 'h5'];
4040
4063
  scopes.forEach((scope) => {
4041
- this.packageInfos.push(this.loadPackageInfo(scope, inputMaterialConfig));
4064
+ if(ui[scope]){
4065
+ this.packageInfos.push({
4066
+ ui: ui[scope],
4067
+ template: framework[scope],
4068
+ scope
4069
+ });
4070
+ }
4042
4071
  });
4043
4072
  return this.packageInfos;
4044
4073
  }
@@ -4048,9 +4077,11 @@ export class App extends BaseNode {
4048
4077
  * 在环境中需要 basic 和 custom 分开 load,否则容易报错
4049
4078
  * @param prefix
4050
4079
  */
4051
- genAllAssetsInfo(prefix: string, scope: string) {
4080
+ genAllAssetsInfo(prefix: string, scope: string, frameworkKind: string) {
4052
4081
  // const packageInfo = this.packageInfo;
4053
4082
  const packageInfo = this.packageInfos.find((info) => info.scope === scope);
4083
+ const ui = packageInfo?.ui.find(info => info.frameworkKind === frameworkKind);
4084
+ const template = packageInfo?.template.find(info => info.frameworkKind === frameworkKind);
4054
4085
  const result: {
4055
4086
  basic: AssetsInfo;
4056
4087
  custom?: AssetsInfo;
@@ -4060,13 +4091,13 @@ export class App extends BaseNode {
4060
4091
  `${prefix}/packages/vue@2/dist/vue.min.js`,
4061
4092
  // `${prefix}/packages/vue-router@3/dist/vue-router.min.js`,
4062
4093
 
4063
- `${prefix}/packages/${packageInfo.ui.name}@${packageInfo.ui.version}/dist-theme/index.js`,
4094
+ `${prefix}/packages/${ui?.name}@${ui?.version}/dist-theme/index.js`,
4064
4095
 
4065
- `${prefix}/packages/${packageInfo.template.name}@${packageInfo.template.version}/cloudAdminDesigner.umd.min.js`,
4096
+ `${prefix}/packages/${template?.name}@${template?.version}/cloudAdminDesigner.umd.min.js`,
4066
4097
  ],
4067
4098
  css: [
4068
- `${prefix}/packages/${packageInfo.ui.name}@${packageInfo.ui.version}/dist-theme/index.css`,
4069
- `${prefix}/packages/${packageInfo.template.name}@${packageInfo.template.version}/cloudAdminDesigner.css`,
4099
+ `${prefix}/packages/${ui?.name}@${ui?.version}/dist-theme/index.css`,
4100
+ `${prefix}/packages/${template?.name}@${template?.version}/cloudAdminDesigner.css`,
4070
4101
  ],
4071
4102
  },
4072
4103
  custom: {
@@ -4462,11 +4493,871 @@ export class App extends BaseNode {
4462
4493
 
4463
4494
  /** hank */
4464
4495
  // setConnector() {
4465
- // const [a, b, c, d, e, f] = this.connections;
4466
- // console.log(a, b, c, d, e, f, this.connections)
4467
- // const res = []
4496
+ // const [a, b, c, d] = this.dependencies;
4497
+ // const Module = getConceptConstructor('Module');
4498
+ // const module = Module.from({
4499
+ // "concept": "Module",
4500
+ // "type": "extension",
4501
+ // "version": "1.0.1",
4502
+ // "name": "cw_cryptojs_library",
4503
+ // "title": "前端加密依赖库",
4504
+ // "description": "",
4505
+ // "provider": "资产中心-租户",
4506
+ // "compilerInfoMap": {
4507
+ // "js": {
4508
+ // "prefix": "extension"
4509
+ // }
4510
+ // },
4511
+ // "dataSources": [],
4512
+ // "structures": [],
4513
+ // "enums": [],
4514
+ // "logics": [],
4515
+ // "interfaces": [],
4516
+ // "views": [],
4517
+ // "frontendVariables": [],
4518
+ // "processes": [],
4519
+ // "processV2s": [],
4520
+ // "frontends": [
4521
+ // {
4522
+ // "concept": "FrontendLibrary",
4523
+ // "name": "pc",
4524
+ // "type": "pc",
4525
+ // "logics": [
4526
+ // {
4527
+ // "concept": "Logic",
4528
+ // "name": "decryptDataWithSalt",
4529
+ // "description": "加盐解密算法",
4530
+ // "typeParams": null,
4531
+ // "params": [
4532
+ // {
4533
+ // "concept": "Param",
4534
+ // "name": "encryptedData",
4535
+ // "description": "加密数据",
4536
+ // "typeAnnotation": {
4537
+ // "concept": "TypeAnnotation",
4538
+ // "typeKind": "primitive",
4539
+ // "typeNamespace": "nasl.core",
4540
+ // "typeName": "String",
4541
+ // "typeArguments": null,
4542
+ // "returnType": null,
4543
+ // "properties": null,
4544
+ // "name": ""
4545
+ // },
4546
+ // "defaultValue": null,
4547
+ // "cascader": false
4548
+ // },
4549
+ // {
4550
+ // "concept": "Param",
4551
+ // "name": "secretKey",
4552
+ // "description": "密钥",
4553
+ // "typeAnnotation": {
4554
+ // "concept": "TypeAnnotation",
4555
+ // "typeKind": "primitive",
4556
+ // "typeNamespace": "nasl.core",
4557
+ // "typeName": "String",
4558
+ // "typeArguments": null,
4559
+ // "returnType": null,
4560
+ // "properties": null,
4561
+ // "name": ""
4562
+ // },
4563
+ // "defaultValue": null,
4564
+ // "cascader": false
4565
+ // }
4566
+ // ],
4567
+ // "returns": [
4568
+ // {
4569
+ // "concept": "Return",
4570
+ // "name": "result",
4571
+ // "typeAnnotation": {
4572
+ // "concept": "TypeAnnotation",
4573
+ // "typeKind": "primitive",
4574
+ // "typeNamespace": "nasl.core",
4575
+ // "typeName": "String",
4576
+ // "typeArguments": null,
4577
+ // "returnType": null,
4578
+ // "properties": null,
4579
+ // "name": ""
4580
+ // },
4581
+ // "defaultValue": null
4582
+ // }
4583
+ // ],
4584
+ // "variables": [],
4585
+ // "body": [
4586
+ // {
4587
+ // "concept": "Start",
4588
+ // "label": "开始",
4589
+ // "description": null,
4590
+ // "folded": false,
4591
+ // "offsetX": null,
4592
+ // "offsetY": null,
4593
+ // "name": ""
4594
+ // },
4595
+ // {
4596
+ // "concept": "End",
4597
+ // "label": "结束",
4598
+ // "description": null,
4599
+ // "folded": false,
4600
+ // "offsetX": null,
4601
+ // "offsetY": null,
4602
+ // "name": ""
4603
+ // }
4604
+ // ],
4605
+ // "playground": []
4606
+ // },
4607
+ // {
4608
+ // "concept": "Logic",
4609
+ // "name": "encryptByDes",
4610
+ // "description": "Des加密",
4611
+ // "typeParams": null,
4612
+ // "params": [
4613
+ // {
4614
+ // "concept": "Param",
4615
+ // "name": "data",
4616
+ // "description": "需要加密的内容",
4617
+ // "typeAnnotation": {
4618
+ // "concept": "TypeAnnotation",
4619
+ // "typeKind": "primitive",
4620
+ // "typeNamespace": "nasl.core",
4621
+ // "typeName": "String",
4622
+ // "typeArguments": null,
4623
+ // "returnType": null,
4624
+ // "properties": null,
4625
+ // "name": ""
4626
+ // },
4627
+ // "defaultValue": null,
4628
+ // "cascader": false
4629
+ // },
4630
+ // {
4631
+ // "concept": "Param",
4632
+ // "name": "key",
4633
+ // "description": "加密的key",
4634
+ // "typeAnnotation": {
4635
+ // "concept": "TypeAnnotation",
4636
+ // "typeKind": "primitive",
4637
+ // "typeNamespace": "nasl.core",
4638
+ // "typeName": "String",
4639
+ // "typeArguments": null,
4640
+ // "returnType": null,
4641
+ // "properties": null,
4642
+ // "name": ""
4643
+ // },
4644
+ // "defaultValue": null,
4645
+ // "cascader": false
4646
+ // },
4647
+ // {
4648
+ // "concept": "Param",
4649
+ // "name": "iv",
4650
+ // "description": "加密的iv",
4651
+ // "typeAnnotation": {
4652
+ // "concept": "TypeAnnotation",
4653
+ // "typeKind": "primitive",
4654
+ // "typeNamespace": "nasl.core",
4655
+ // "typeName": "String",
4656
+ // "typeArguments": null,
4657
+ // "returnType": null,
4658
+ // "properties": null,
4659
+ // "name": ""
4660
+ // },
4661
+ // "defaultValue": null,
4662
+ // "cascader": false
4663
+ // }
4664
+ // ],
4665
+ // "returns": [
4666
+ // {
4667
+ // "concept": "Return",
4668
+ // "name": "result",
4669
+ // "typeAnnotation": {
4670
+ // "concept": "TypeAnnotation",
4671
+ // "typeKind": "primitive",
4672
+ // "typeNamespace": "nasl.core",
4673
+ // "typeName": "String",
4674
+ // "typeArguments": null,
4675
+ // "returnType": null,
4676
+ // "properties": null,
4677
+ // "name": ""
4678
+ // },
4679
+ // "defaultValue": null
4680
+ // }
4681
+ // ],
4682
+ // "variables": [],
4683
+ // "body": [
4684
+ // {
4685
+ // "concept": "Start",
4686
+ // "label": "开始",
4687
+ // "description": null,
4688
+ // "folded": false,
4689
+ // "offsetX": null,
4690
+ // "offsetY": null,
4691
+ // "name": ""
4692
+ // },
4693
+ // {
4694
+ // "concept": "End",
4695
+ // "label": "结束",
4696
+ // "description": null,
4697
+ // "folded": false,
4698
+ // "offsetX": null,
4699
+ // "offsetY": null,
4700
+ // "name": ""
4701
+ // }
4702
+ // ],
4703
+ // "playground": []
4704
+ // },
4705
+ // {
4706
+ // "concept": "Logic",
4707
+ // "name": "encryptDataWithSalt",
4708
+ // "description": "加盐加密算法",
4709
+ // "typeParams": null,
4710
+ // "params": [
4711
+ // {
4712
+ // "concept": "Param",
4713
+ // "name": "data",
4714
+ // "description": "待加密数据",
4715
+ // "typeAnnotation": {
4716
+ // "concept": "TypeAnnotation",
4717
+ // "typeKind": "primitive",
4718
+ // "typeNamespace": "nasl.core",
4719
+ // "typeName": "String",
4720
+ // "typeArguments": null,
4721
+ // "returnType": null,
4722
+ // "properties": null,
4723
+ // "name": ""
4724
+ // },
4725
+ // "defaultValue": null,
4726
+ // "cascader": false
4727
+ // },
4728
+ // {
4729
+ // "concept": "Param",
4730
+ // "name": "secretKey",
4731
+ // "description": "密钥",
4732
+ // "typeAnnotation": {
4733
+ // "concept": "TypeAnnotation",
4734
+ // "typeKind": "primitive",
4735
+ // "typeNamespace": "nasl.core",
4736
+ // "typeName": "String",
4737
+ // "typeArguments": null,
4738
+ // "returnType": null,
4739
+ // "properties": null,
4740
+ // "name": ""
4741
+ // },
4742
+ // "defaultValue": null,
4743
+ // "cascader": false
4744
+ // }
4745
+ // ],
4746
+ // "returns": [
4747
+ // {
4748
+ // "concept": "Return",
4749
+ // "name": "result",
4750
+ // "typeAnnotation": {
4751
+ // "concept": "TypeAnnotation",
4752
+ // "typeKind": "primitive",
4753
+ // "typeNamespace": "nasl.core",
4754
+ // "typeName": "String",
4755
+ // "typeArguments": null,
4756
+ // "returnType": null,
4757
+ // "properties": null,
4758
+ // "name": ""
4759
+ // },
4760
+ // "defaultValue": null
4761
+ // }
4762
+ // ],
4763
+ // "variables": [],
4764
+ // "body": [
4765
+ // {
4766
+ // "concept": "Start",
4767
+ // "label": "开始",
4768
+ // "description": null,
4769
+ // "folded": false,
4770
+ // "offsetX": null,
4771
+ // "offsetY": null,
4772
+ // "name": ""
4773
+ // },
4774
+ // {
4775
+ // "concept": "End",
4776
+ // "label": "结束",
4777
+ // "description": null,
4778
+ // "folded": false,
4779
+ // "offsetX": null,
4780
+ // "offsetY": null,
4781
+ // "name": ""
4782
+ // }
4783
+ // ],
4784
+ // "playground": []
4785
+ // },
4786
+ // {
4787
+ // "concept": "Logic",
4788
+ // "name": "encryptSha256",
4789
+ // "description": "RSA-SHA256加密",
4790
+ // "typeParams": null,
4791
+ // "params": [
4792
+ // {
4793
+ // "concept": "Param",
4794
+ // "name": "rsa",
4795
+ // "description": "加密私钥",
4796
+ // "typeAnnotation": {
4797
+ // "concept": "TypeAnnotation",
4798
+ // "typeKind": "primitive",
4799
+ // "typeNamespace": "nasl.core",
4800
+ // "typeName": "String",
4801
+ // "typeArguments": null,
4802
+ // "returnType": null,
4803
+ // "properties": null,
4804
+ // "name": ""
4805
+ // },
4806
+ // "defaultValue": null,
4807
+ // "cascader": false
4808
+ // }
4809
+ // ],
4810
+ // "returns": [
4811
+ // {
4812
+ // "concept": "Return",
4813
+ // "name": "result",
4814
+ // "typeAnnotation": {
4815
+ // "concept": "TypeAnnotation",
4816
+ // "typeKind": "primitive",
4817
+ // "typeNamespace": "nasl.core",
4818
+ // "typeName": "String",
4819
+ // "typeArguments": null,
4820
+ // "returnType": null,
4821
+ // "properties": null,
4822
+ // "name": ""
4823
+ // },
4824
+ // "defaultValue": null
4825
+ // }
4826
+ // ],
4827
+ // "variables": [],
4828
+ // "body": [
4829
+ // {
4830
+ // "concept": "Start",
4831
+ // "label": "开始",
4832
+ // "description": null,
4833
+ // "folded": false,
4834
+ // "offsetX": null,
4835
+ // "offsetY": null,
4836
+ // "name": ""
4837
+ // },
4838
+ // {
4839
+ // "concept": "End",
4840
+ // "label": "结束",
4841
+ // "description": null,
4842
+ // "folded": false,
4843
+ // "offsetX": null,
4844
+ // "offsetY": null,
4845
+ // "name": ""
4846
+ // }
4847
+ // ],
4848
+ // "playground": []
4849
+ // },
4850
+ // {
4851
+ // "concept": "Logic",
4852
+ // "name": "addWaterImgMarkAsync",
4853
+ // "description": "",
4854
+ // "typeParams": null,
4855
+ // "params": [
4856
+ // {
4857
+ // "concept": "Param",
4858
+ // "name": "taskId",
4859
+ // "description": "",
4860
+ // "typeAnnotation": {
4861
+ // "concept": "TypeAnnotation",
4862
+ // "typeKind": "primitive",
4863
+ // "typeNamespace": "nasl.core",
4864
+ // "typeName": "String",
4865
+ // "typeArguments": null,
4866
+ // "returnType": null,
4867
+ // "properties": null
4868
+ // },
4869
+ // "defaultValue": null,
4870
+ // "cascader": false
4871
+ // },
4872
+ // {
4873
+ // "concept": "Param",
4874
+ // "name": "srcFile",
4875
+ // "description": "",
4876
+ // "typeAnnotation": {
4877
+ // "concept": "TypeAnnotation",
4878
+ // "typeKind": "primitive",
4879
+ // "typeNamespace": "nasl.core",
4880
+ // "typeName": "String",
4881
+ // "typeArguments": null,
4882
+ // "returnType": null,
4883
+ // "properties": null
4884
+ // },
4885
+ // "defaultValue": null,
4886
+ // "cascader": false
4887
+ // },
4888
+ // {
4889
+ // "concept": "Param",
4890
+ // "name": "imgPath",
4891
+ // "description": "",
4892
+ // "typeAnnotation": {
4893
+ // "concept": "TypeAnnotation",
4894
+ // "typeKind": "primitive",
4895
+ // "typeNamespace": "nasl.core",
4896
+ // "typeName": "String",
4897
+ // "typeArguments": null,
4898
+ // "returnType": null,
4899
+ // "properties": null
4900
+ // },
4901
+ // "defaultValue": null,
4902
+ // "cascader": false
4903
+ // },
4904
+ // {
4905
+ // "concept": "Param",
4906
+ // "name": "textFont",
4907
+ // "description": "",
4908
+ // "typeAnnotation": {
4909
+ // "concept": "TypeAnnotation",
4910
+ // "typeKind": "primitive",
4911
+ // "typeNamespace": "nasl.core",
4912
+ // "typeName": "String",
4913
+ // "typeArguments": null,
4914
+ // "returnType": null,
4915
+ // "properties": null
4916
+ // },
4917
+ // "defaultValue": null,
4918
+ // "cascader": false
4919
+ // },
4920
+ // {
4921
+ // "concept": "Param",
4922
+ // "name": "func",
4923
+ // "description": "",
4924
+ // "typeAnnotation": {
4925
+ // "concept": "TypeAnnotation",
4926
+ // "typeKind": "function",
4927
+ // "typeNamespace": "nasl.core",
4928
+ // "typeName": "",
4929
+ // "typeArguments": [
4930
+ // {
4931
+ // "concept": "TypeAnnotation",
4932
+ // "typeKind": "generic",
4933
+ // "typeNamespace": "nasl.collection",
4934
+ // "typeName": "Map",
4935
+ // "typeArguments": [
4936
+ // {
4937
+ // "concept": "TypeAnnotation",
4938
+ // "typeKind": "primitive",
4939
+ // "typeNamespace": "nasl.core",
4940
+ // "typeName": "String",
4941
+ // "typeArguments": null,
4942
+ // "returnType": null,
4943
+ // "properties": null
4944
+ // },
4945
+ // {
4946
+ // "concept": "TypeAnnotation",
4947
+ // "typeKind": "primitive",
4948
+ // "typeNamespace": "nasl.core",
4949
+ // "typeName": "String",
4950
+ // "typeArguments": null,
4951
+ // "returnType": null,
4952
+ // "properties": null
4953
+ // }
4954
+ // ],
4955
+ // "returnType": null,
4956
+ // "properties": null
4957
+ // }
4958
+ // ],
4959
+ // "returnType": [
4960
+ // {
4961
+ // "concept": "TypeAnnotation",
4962
+ // "typeKind": "primitive",
4963
+ // "typeNamespace": "nasl.core",
4964
+ // "typeName": "String",
4965
+ // "typeArguments": null,
4966
+ // "returnType": null,
4967
+ // "properties": null
4968
+ // }
4969
+ // ],
4970
+ // "properties": null
4971
+ // },
4972
+ // "defaultValue": null,
4973
+ // "cascader": false,
4974
+ // "changedTime": 1711351957157,
4975
+ // "spread": true
4976
+ // }
4977
+ // ],
4978
+ // "returns": [
4979
+ // {
4980
+ // "concept": "Return",
4981
+ // "name": "result",
4982
+ // "description": "",
4983
+ // "typeAnnotation": {
4984
+ // "concept": "TypeAnnotation",
4985
+ // "typeKind": "primitive",
4986
+ // "typeNamespace": "nasl.core",
4987
+ // "typeName": "String",
4988
+ // "typeArguments": null,
4989
+ // "returnType": null,
4990
+ // "properties": null
4991
+ // },
4992
+ // "defaultValue": null
4993
+ // }
4994
+ // ],
4995
+ // "variables": [],
4996
+ // "body": [
4997
+ // {
4998
+ // "concept": "Start",
4999
+ // "label": "开始",
5000
+ // "description": null,
5001
+ // "folded": false,
5002
+ // "offsetX": null,
5003
+ // "offsetY": null
5004
+ // },
5005
+ // {
5006
+ // "concept": "End",
5007
+ // "label": "结束",
5008
+ // "description": null,
5009
+ // "folded": false,
5010
+ // "offsetX": null,
5011
+ // "offsetY": null
5012
+ // }
5013
+ // ],
5014
+ // "playground": [],
5015
+ // "changedTime": 1711009353914
5016
+ // }
5017
+ // ],
5018
+ // "viewComponents": []
5019
+ // },
5020
+ // {
5021
+ // "concept": "FrontendLibrary",
5022
+ // "name": "h5",
5023
+ // "type": "h5",
5024
+ // "logics": [
5025
+ // {
5026
+ // "concept": "Logic",
5027
+ // "name": "decryptDataWithSalt",
5028
+ // "description": "加盐解密算法",
5029
+ // "typeParams": null,
5030
+ // "params": [
5031
+ // {
5032
+ // "concept": "Param",
5033
+ // "name": "encryptedData",
5034
+ // "description": "加密数据",
5035
+ // "typeAnnotation": {
5036
+ // "concept": "TypeAnnotation",
5037
+ // "typeKind": "primitive",
5038
+ // "typeNamespace": "nasl.core",
5039
+ // "typeName": "String",
5040
+ // "typeArguments": null,
5041
+ // "returnType": null,
5042
+ // "properties": null,
5043
+ // "name": ""
5044
+ // },
5045
+ // "defaultValue": null,
5046
+ // "cascader": false
5047
+ // },
5048
+ // {
5049
+ // "concept": "Param",
5050
+ // "name": "secretKey",
5051
+ // "description": "密钥",
5052
+ // "typeAnnotation": {
5053
+ // "concept": "TypeAnnotation",
5054
+ // "typeKind": "primitive",
5055
+ // "typeNamespace": "nasl.core",
5056
+ // "typeName": "String",
5057
+ // "typeArguments": null,
5058
+ // "returnType": null,
5059
+ // "properties": null,
5060
+ // "name": ""
5061
+ // },
5062
+ // "defaultValue": null,
5063
+ // "cascader": false
5064
+ // }
5065
+ // ],
5066
+ // "returns": [
5067
+ // {
5068
+ // "concept": "Return",
5069
+ // "name": "result",
5070
+ // "typeAnnotation": {
5071
+ // "concept": "TypeAnnotation",
5072
+ // "typeKind": "primitive",
5073
+ // "typeNamespace": "nasl.core",
5074
+ // "typeName": "String",
5075
+ // "typeArguments": null,
5076
+ // "returnType": null,
5077
+ // "properties": null,
5078
+ // "name": ""
5079
+ // },
5080
+ // "defaultValue": null
5081
+ // }
5082
+ // ],
5083
+ // "variables": [],
5084
+ // "body": [
5085
+ // {
5086
+ // "concept": "Start",
5087
+ // "label": "开始",
5088
+ // "description": null,
5089
+ // "folded": false,
5090
+ // "offsetX": null,
5091
+ // "offsetY": null,
5092
+ // "name": ""
5093
+ // },
5094
+ // {
5095
+ // "concept": "End",
5096
+ // "label": "结束",
5097
+ // "description": null,
5098
+ // "folded": false,
5099
+ // "offsetX": null,
5100
+ // "offsetY": null,
5101
+ // "name": ""
5102
+ // }
5103
+ // ],
5104
+ // "playground": []
5105
+ // },
5106
+ // {
5107
+ // "concept": "Logic",
5108
+ // "name": "encryptByDes",
5109
+ // "description": "Des加密",
5110
+ // "typeParams": null,
5111
+ // "params": [
5112
+ // {
5113
+ // "concept": "Param",
5114
+ // "name": "data",
5115
+ // "description": "需要加密的内容",
5116
+ // "typeAnnotation": {
5117
+ // "concept": "TypeAnnotation",
5118
+ // "typeKind": "primitive",
5119
+ // "typeNamespace": "nasl.core",
5120
+ // "typeName": "String",
5121
+ // "typeArguments": null,
5122
+ // "returnType": null,
5123
+ // "properties": null,
5124
+ // "name": ""
5125
+ // },
5126
+ // "defaultValue": null,
5127
+ // "cascader": false
5128
+ // },
5129
+ // {
5130
+ // "concept": "Param",
5131
+ // "name": "key",
5132
+ // "description": "加密的key",
5133
+ // "typeAnnotation": {
5134
+ // "concept": "TypeAnnotation",
5135
+ // "typeKind": "primitive",
5136
+ // "typeNamespace": "nasl.core",
5137
+ // "typeName": "String",
5138
+ // "typeArguments": null,
5139
+ // "returnType": null,
5140
+ // "properties": null,
5141
+ // "name": ""
5142
+ // },
5143
+ // "defaultValue": null,
5144
+ // "cascader": false
5145
+ // },
5146
+ // {
5147
+ // "concept": "Param",
5148
+ // "name": "iv",
5149
+ // "description": "加密的iv",
5150
+ // "typeAnnotation": {
5151
+ // "concept": "TypeAnnotation",
5152
+ // "typeKind": "primitive",
5153
+ // "typeNamespace": "nasl.core",
5154
+ // "typeName": "String",
5155
+ // "typeArguments": null,
5156
+ // "returnType": null,
5157
+ // "properties": null,
5158
+ // "name": ""
5159
+ // },
5160
+ // "defaultValue": null,
5161
+ // "cascader": false
5162
+ // }
5163
+ // ],
5164
+ // "returns": [
5165
+ // {
5166
+ // "concept": "Return",
5167
+ // "name": "result",
5168
+ // "typeAnnotation": {
5169
+ // "concept": "TypeAnnotation",
5170
+ // "typeKind": "primitive",
5171
+ // "typeNamespace": "nasl.core",
5172
+ // "typeName": "String",
5173
+ // "typeArguments": null,
5174
+ // "returnType": null,
5175
+ // "properties": null,
5176
+ // "name": ""
5177
+ // },
5178
+ // "defaultValue": null
5179
+ // }
5180
+ // ],
5181
+ // "variables": [],
5182
+ // "body": [
5183
+ // {
5184
+ // "concept": "Start",
5185
+ // "label": "开始",
5186
+ // "description": null,
5187
+ // "folded": false,
5188
+ // "offsetX": null,
5189
+ // "offsetY": null,
5190
+ // "name": ""
5191
+ // },
5192
+ // {
5193
+ // "concept": "End",
5194
+ // "label": "结束",
5195
+ // "description": null,
5196
+ // "folded": false,
5197
+ // "offsetX": null,
5198
+ // "offsetY": null,
5199
+ // "name": ""
5200
+ // }
5201
+ // ],
5202
+ // "playground": []
5203
+ // },
5204
+ // {
5205
+ // "concept": "Logic",
5206
+ // "name": "encryptDataWithSalt",
5207
+ // "description": "加盐加密算法",
5208
+ // "typeParams": null,
5209
+ // "params": [
5210
+ // {
5211
+ // "concept": "Param",
5212
+ // "name": "data",
5213
+ // "description": "待加密数据",
5214
+ // "typeAnnotation": {
5215
+ // "concept": "TypeAnnotation",
5216
+ // "typeKind": "primitive",
5217
+ // "typeNamespace": "nasl.core",
5218
+ // "typeName": "String",
5219
+ // "typeArguments": null,
5220
+ // "returnType": null,
5221
+ // "properties": null,
5222
+ // "name": ""
5223
+ // },
5224
+ // "defaultValue": null,
5225
+ // "cascader": false
5226
+ // },
5227
+ // {
5228
+ // "concept": "Param",
5229
+ // "name": "secretKey",
5230
+ // "description": "密钥",
5231
+ // "typeAnnotation": {
5232
+ // "concept": "TypeAnnotation",
5233
+ // "typeKind": "primitive",
5234
+ // "typeNamespace": "nasl.core",
5235
+ // "typeName": "String",
5236
+ // "typeArguments": null,
5237
+ // "returnType": null,
5238
+ // "properties": null,
5239
+ // "name": ""
5240
+ // },
5241
+ // "defaultValue": null,
5242
+ // "cascader": false
5243
+ // }
5244
+ // ],
5245
+ // "returns": [
5246
+ // {
5247
+ // "concept": "Return",
5248
+ // "name": "result",
5249
+ // "typeAnnotation": {
5250
+ // "concept": "TypeAnnotation",
5251
+ // "typeKind": "primitive",
5252
+ // "typeNamespace": "nasl.core",
5253
+ // "typeName": "String",
5254
+ // "typeArguments": null,
5255
+ // "returnType": null,
5256
+ // "properties": null,
5257
+ // "name": ""
5258
+ // },
5259
+ // "defaultValue": null
5260
+ // }
5261
+ // ],
5262
+ // "variables": [],
5263
+ // "body": [
5264
+ // {
5265
+ // "concept": "Start",
5266
+ // "label": "开始",
5267
+ // "description": null,
5268
+ // "folded": false,
5269
+ // "offsetX": null,
5270
+ // "offsetY": null,
5271
+ // "name": ""
5272
+ // },
5273
+ // {
5274
+ // "concept": "End",
5275
+ // "label": "结束",
5276
+ // "description": null,
5277
+ // "folded": false,
5278
+ // "offsetX": null,
5279
+ // "offsetY": null,
5280
+ // "name": ""
5281
+ // }
5282
+ // ],
5283
+ // "playground": []
5284
+ // },
5285
+ // {
5286
+ // "concept": "Logic",
5287
+ // "name": "encryptSha256",
5288
+ // "description": "RSA-SHA256加密",
5289
+ // "typeParams": null,
5290
+ // "params": [
5291
+ // {
5292
+ // "concept": "Param",
5293
+ // "name": "rsa",
5294
+ // "description": "加密私钥",
5295
+ // "typeAnnotation": {
5296
+ // "concept": "TypeAnnotation",
5297
+ // "typeKind": "primitive",
5298
+ // "typeNamespace": "nasl.core",
5299
+ // "typeName": "String",
5300
+ // "typeArguments": null,
5301
+ // "returnType": null,
5302
+ // "properties": null,
5303
+ // "name": ""
5304
+ // },
5305
+ // "defaultValue": null,
5306
+ // "cascader": false
5307
+ // }
5308
+ // ],
5309
+ // "returns": [
5310
+ // {
5311
+ // "concept": "Return",
5312
+ // "name": "result",
5313
+ // "typeAnnotation": {
5314
+ // "concept": "TypeAnnotation",
5315
+ // "typeKind": "primitive",
5316
+ // "typeNamespace": "nasl.core",
5317
+ // "typeName": "String",
5318
+ // "typeArguments": null,
5319
+ // "returnType": null,
5320
+ // "properties": null,
5321
+ // "name": ""
5322
+ // },
5323
+ // "defaultValue": null
5324
+ // }
5325
+ // ],
5326
+ // "variables": [],
5327
+ // "body": [
5328
+ // {
5329
+ // "concept": "Start",
5330
+ // "label": "开始",
5331
+ // "description": null,
5332
+ // "folded": false,
5333
+ // "offsetX": null,
5334
+ // "offsetY": null,
5335
+ // "name": ""
5336
+ // },
5337
+ // {
5338
+ // "concept": "End",
5339
+ // "label": "结束",
5340
+ // "description": null,
5341
+ // "folded": false,
5342
+ // "offsetX": null,
5343
+ // "offsetY": null,
5344
+ // "name": ""
5345
+ // }
5346
+ // ],
5347
+ // "playground": []
5348
+ // }
5349
+ // ],
5350
+ // "viewComponents": []
5351
+ // }
5352
+ // ],
5353
+ // "triggerLaunchers": [],
5354
+ // "connections": [],
5355
+ // "metadataTypes": [],
5356
+ // "dependencies": [],
5357
+ // "changedTime": 1711359928093
5358
+ // })
4468
5359
  // this.update({
4469
- // connections: [a, b, c, e, f],
5360
+ // dependencies: [a, b, c, module],
4470
5361
  // });
4471
5362
  // }
4472
5363