@lcap/nasl 3.8.0-beta.5 → 3.8.0-beta.7
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.
- package/.mocharc.js +1 -0
- package/out/common/BaseNode.d.ts +21 -5
- package/out/common/BaseNode.js +94 -12
- package/out/common/BaseNode.js.map +1 -1
- package/out/concepts/AbstractInterface__.js.map +1 -1
- package/out/concepts/Annotation__.js +1 -1
- package/out/concepts/Annotation__.js.map +1 -1
- package/out/concepts/App__.d.ts +3 -0
- package/out/concepts/App__.js +985 -6
- package/out/concepts/App__.js.map +1 -1
- package/out/concepts/Argument__.js +3 -3
- package/out/concepts/Argument__.js.map +1 -1
- package/out/concepts/BatchAssignment__.d.ts +1 -1
- package/out/concepts/BatchAssignment__.js +2 -2
- package/out/concepts/BatchAssignment__.js.map +1 -1
- package/out/concepts/BindAttribute__.js +7 -7
- package/out/concepts/BindAttribute__.js.map +1 -1
- package/out/concepts/BindDirective__.js +3 -4
- package/out/concepts/BindDirective__.js.map +1 -1
- package/out/concepts/BindStyle__.js +1 -1
- package/out/concepts/BindStyle__.js.map +1 -1
- package/out/concepts/BusinessComponent__.d.ts +2 -0
- package/out/concepts/BusinessComponent__.js +48 -0
- package/out/concepts/BusinessComponent__.js.map +1 -1
- package/out/concepts/BusinessLogic__.d.ts +1 -0
- package/out/concepts/BusinessLogic__.js +10 -0
- package/out/concepts/BusinessLogic__.js.map +1 -1
- package/out/concepts/CallEvent__.d.ts +2 -0
- package/out/concepts/CallEvent__.js +75 -0
- package/out/concepts/CallEvent__.js.map +1 -1
- package/out/concepts/CallInterface__.d.ts +1 -0
- package/out/concepts/CallInterface__.js +26 -15
- package/out/concepts/CallInterface__.js.map +1 -1
- package/out/concepts/CallLogic__.d.ts +4 -0
- package/out/concepts/CallLogic__.js +65 -5
- package/out/concepts/CallLogic__.js.map +1 -1
- package/out/concepts/Entity__.d.ts +3 -3
- package/out/concepts/Entity__.js +4 -0
- package/out/concepts/Entity__.js.map +1 -1
- package/out/concepts/EnumItem__.d.ts +13 -0
- package/out/concepts/EnumItem__.js +31 -0
- package/out/concepts/EnumItem__.js.map +1 -1
- package/out/concepts/Event__.d.ts +2 -0
- package/out/concepts/Event__.js +30 -0
- package/out/concepts/Event__.js.map +1 -1
- package/out/concepts/FrontendType__.d.ts +2 -0
- package/out/concepts/FrontendType__.js +32 -0
- package/out/concepts/FrontendType__.js.map +1 -1
- package/out/concepts/Frontend__.d.ts +2 -0
- package/out/concepts/Frontend__.js +48 -0
- package/out/concepts/Frontend__.js.map +1 -1
- package/out/concepts/IfStatement__.js +6 -6
- package/out/concepts/IfStatement__.js.map +1 -1
- package/out/concepts/InterfaceParam__.d.ts +1 -0
- package/out/concepts/InterfaceParam__.js +23 -4
- package/out/concepts/InterfaceParam__.js.map +1 -1
- package/out/concepts/Interface__.d.ts +2 -1
- package/out/concepts/Interface__.js +29 -5
- package/out/concepts/Interface__.js.map +1 -1
- package/out/concepts/JSBlock__.d.ts +1 -0
- package/out/concepts/JSBlock__.js +6 -0
- package/out/concepts/JSBlock__.js.map +1 -1
- package/out/concepts/LogicDeclaration__.d.ts +1 -0
- package/out/concepts/LogicDeclaration__.js +58 -7
- package/out/concepts/LogicDeclaration__.js.map +1 -1
- package/out/concepts/Logic__.js +46 -27
- package/out/concepts/Logic__.js.map +1 -1
- package/out/concepts/MatchCase__.js +1 -2
- package/out/concepts/MatchCase__.js.map +1 -1
- package/out/concepts/Match__.js +3 -18
- package/out/concepts/Match__.js.map +1 -1
- package/out/concepts/MemberExpression__.js +4 -4
- package/out/concepts/MemberExpression__.js.map +1 -1
- package/out/concepts/Module__.d.ts +4 -0
- package/out/concepts/Module__.js +92 -0
- package/out/concepts/Module__.js.map +1 -1
- package/out/concepts/NewComposite__.d.ts +1 -1
- package/out/concepts/NewComposite__.js +2 -2
- package/out/concepts/NewComposite__.js.map +1 -1
- package/out/concepts/NullLiteral__.js +6 -0
- package/out/concepts/NullLiteral__.js.map +1 -1
- package/out/concepts/Paginate__.d.ts +1 -0
- package/out/concepts/Paginate__.js +15 -7
- package/out/concepts/Paginate__.js.map +1 -1
- package/out/concepts/QueryFromExpression__.js +2 -2
- package/out/concepts/QueryFromExpression__.js.map +1 -1
- package/out/concepts/StringLiteral__.js +3 -4
- package/out/concepts/StringLiteral__.js.map +1 -1
- package/out/concepts/StructureProperty__.d.ts +13 -0
- package/out/concepts/StructureProperty__.js +31 -0
- package/out/concepts/StructureProperty__.js.map +1 -1
- package/out/concepts/TypeAnnotation__.js +1 -0
- package/out/concepts/TypeAnnotation__.js.map +1 -1
- package/out/concepts/ViewElement__.d.ts +2 -0
- package/out/concepts/ViewElement__.js +61 -41
- package/out/concepts/ViewElement__.js.map +1 -1
- package/out/concepts/View__.d.ts +1 -0
- package/out/concepts/View__.js +55 -1
- package/out/concepts/View__.js.map +1 -1
- package/out/concepts/basics/stdlib/nasl.processV2.js +1 -1
- package/out/concepts/basics/stdlib/nasl.processV2.js.map +1 -1
- package/out/generator/genBundleFiles.js +36 -22
- package/out/generator/genBundleFiles.js.map +1 -1
- package/out/generator/genHash.d.ts +2 -2
- package/out/generator/genHash.js +30 -30
- package/out/generator/genHash.js.map +1 -1
- package/out/generator/genMetaData.js +7 -49
- package/out/generator/genMetaData.js.map +1 -1
- package/out/generator/permission.d.ts +8 -1
- package/out/generator/permission.js +321 -23
- package/out/generator/permission.js.map +1 -1
- package/out/generator/release-body/body.d.ts +5 -0
- package/out/generator/release-body/body.js +62 -12
- package/out/generator/release-body/body.js.map +1 -1
- package/out/generator/release-body/data.js +6 -2
- package/out/generator/release-body/data.js.map +1 -1
- package/out/generator/release-body/index.d.ts +1 -0
- package/out/generator/release-body/index.js +1 -0
- package/out/generator/release-body/index.js.map +1 -1
- package/out/generator/release-body/utils.js +3 -3
- package/out/generator/release-body/utils.js.map +1 -1
- package/out/generator/release-body/validation.js +2 -2
- package/out/generator/release-body/validation.js.map +1 -1
- package/out/index.d.ts +1 -1
- package/out/index.js.map +1 -1
- package/out/natural/genNaturalTS.d.ts +24 -56
- package/out/natural/genNaturalTS.js +116 -184
- package/out/natural/genNaturalTS.js.map +1 -1
- package/out/natural/getContext/getUILib.js +2 -3
- package/out/natural/getContext/getUILib.js.map +1 -1
- package/out/natural/getContext/index.d.ts +26 -35
- package/out/natural/getContext/index.js +172 -311
- package/out/natural/getContext/index.js.map +1 -1
- package/out/natural/index.d.ts +0 -1
- package/out/natural/index.js +0 -1
- package/out/natural/index.js.map +1 -1
- package/out/natural/transformTS2UI.js +31 -14
- package/out/natural/transformTS2UI.js.map +1 -1
- package/out/natural/transformTSCode.js +26 -10
- package/out/natural/transformTSCode.js.map +1 -1
- package/out/server/entity2LogicNamespace.d.ts +2 -2
- package/out/server/entity2LogicNamespace.js +321 -310
- package/out/server/entity2LogicNamespace.js.map +1 -1
- package/out/server/extendBaseNode.js +25 -0
- package/out/server/extendBaseNode.js.map +1 -1
- package/out/server/getLogics.js +1 -1
- package/out/server/getLogics.js.map +1 -1
- package/out/server/naslServer.d.ts +10 -4
- package/out/server/naslServer.js +77 -19
- package/out/server/naslServer.js.map +1 -1
- package/out/server/translator.js +12 -0
- package/out/server/translator.js.map +1 -1
- package/out/templator/genCreateBlock.js +3 -3
- package/out/templator/genCreateBlock.js.map +1 -1
- package/out/templator/genCurdEditMultipleKeyBlock.js +2 -2
- package/out/templator/genCurdEditMultipleKeyBlock.js.map +1 -1
- package/out/templator/genCurdMultipleKeyBlock.js +5 -5
- package/out/templator/genCurdMultipleKeyBlock.js.map +1 -1
- package/out/templator/genEditTableBlock.js +1 -1
- package/out/templator/genEditTableBlock.js.map +1 -1
- package/out/templator/genGetBlock.js.map +1 -1
- package/out/templator/genGridViewBlock.js.map +1 -1
- package/out/templator/genSelectBlock.js.map +1 -1
- package/out/templator/genTableBlock.js.map +1 -1
- package/out/templator/genUpdateBlock.js +3 -3
- package/out/templator/genUpdateBlock.js.map +1 -1
- package/out/templator/utils.js +1 -1
- package/out/templator/utils.js.map +1 -1
- package/out/translator/types.d.ts +2 -0
- package/package.json +5 -5
- package/sandbox/stdlib/nasl.processV2.ts +1 -1
- package/sandbox/stdlib/nasl.ui.definition.ts +0 -18
- package/src/common/BaseNode.ts +100 -16
- package/src/concepts/AbstractInterface__.ts +1 -0
- package/src/concepts/Annotation__.ts +1 -1
- package/src/concepts/App__.ts +126 -6
- package/src/concepts/Argument__.ts +3 -3
- package/src/concepts/BatchAssignment__.ts +2 -2
- package/src/concepts/BindAttribute__.ts +7 -7
- package/src/concepts/BindDirective__.ts +3 -4
- package/src/concepts/BindStyle__.ts +1 -1
- package/src/concepts/BusinessComponent__.ts +54 -1
- package/src/concepts/BusinessLogic__.ts +10 -1
- package/src/concepts/CallEvent__.ts +66 -0
- package/src/concepts/CallInterface__.ts +21 -9
- package/src/concepts/CallLogic__.ts +66 -5
- package/src/concepts/Entity__.ts +7 -1
- package/src/concepts/EnumItem__.ts +40 -1
- package/src/concepts/Event__.ts +32 -0
- package/src/concepts/FrontendType__.ts +34 -1
- package/src/concepts/Frontend__.ts +51 -0
- package/src/concepts/IfStatement__.ts +6 -6
- package/src/concepts/InterfaceParam__.ts +23 -4
- package/src/concepts/Interface__.ts +29 -5
- package/src/concepts/JSBlock__.ts +5 -0
- package/src/concepts/LogicDeclaration__.ts +65 -7
- package/src/concepts/Logic__.ts +49 -31
- package/src/concepts/MatchCase__.ts +1 -2
- package/src/concepts/Match__.ts +3 -21
- package/src/concepts/MemberExpression__.ts +4 -4
- package/src/concepts/Module__.ts +109 -0
- package/src/concepts/NewComposite__.ts +2 -2
- package/src/concepts/NullLiteral__.ts +7 -0
- package/src/concepts/Paginate__.ts +14 -7
- package/src/concepts/QueryFromExpression__.ts +2 -2
- package/src/concepts/StringLiteral__.ts +3 -4
- package/src/concepts/StructureProperty__.ts +41 -0
- package/src/concepts/TypeAnnotation__.ts +1 -0
- package/src/concepts/ViewElement__.ts +40 -19
- package/src/concepts/View__.ts +56 -1
- package/src/concepts/basics/stdlib/nasl.processV2.ts +1 -1
- package/src/generator/genBundleFiles.ts +39 -26
- package/src/generator/genHash.ts +32 -6
- package/src/generator/genMetaData.ts +11 -32
- package/src/generator/permission.ts +333 -23
- package/src/generator/release-body/body.ts +74 -15
- package/src/generator/release-body/data.ts +7 -2
- package/src/generator/release-body/index.ts +1 -0
- package/src/generator/release-body/utils.ts +3 -3
- package/src/generator/release-body/validation.ts +1 -1
- package/src/index.ts +13 -1
- package/src/natural/genNaturalTS.ts +148 -330
- package/src/natural/getContext/getUILib.ts +2 -3
- package/src/natural/getContext/index.ts +188 -357
- package/src/natural/index.ts +0 -1
- package/src/natural/transformTS2UI.ts +28 -14
- package/src/natural/transformTSCode.ts +25 -10
- package/src/server/entity2LogicNamespace.ts +13 -1
- package/src/server/extendBaseNode.ts +31 -0
- package/src/server/getLogics.ts +1 -1
- package/src/server/naslServer.ts +107 -27
- package/src/server/translator.ts +15 -0
- package/src/templator/genCreateBlock.ts +4 -4
- package/src/templator/genCurdEditMultipleKeyBlock.ts +2 -2
- package/src/templator/genCurdMultipleKeyBlock.ts +8 -8
- package/src/templator/genEditTableBlock.ts +4 -4
- package/src/templator/genGetBlock.ts +1 -1
- package/src/templator/genGridViewBlock.ts +2 -2
- package/src/templator/genSelectBlock.ts +3 -3
- package/src/templator/genTableBlock.ts +2 -2
- package/src/templator/genUpdateBlock.ts +6 -6
- package/src/templator/utils.ts +1 -1
- package/src/translator/types.ts +2 -0
- package/test/concepts/string-literal/__snapshots__/toVue.spec.ts.snap +1 -1
- package/test/concepts/view-element/__snapshots__/toVue.spec.ts.snap +6 -2
- package/out/natural/tools.d.ts +0 -11
- package/out/natural/tools.js +0 -155
- package/out/natural/tools.js.map +0 -1
- package/src/natural/tools.ts +0 -130
package/out/concepts/App__.js
CHANGED
|
@@ -35,6 +35,7 @@ var App_1;
|
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.App = void 0;
|
|
37
37
|
const jsoner_1 = require("../service/storage/jsoner");
|
|
38
|
+
const translator_1 = require("../translator");
|
|
38
39
|
const utils_1 = require("../automate/engine/utils");
|
|
39
40
|
const constants_1 = require("./basics/constants");
|
|
40
41
|
const decorators_1 = require("../decorators");
|
|
@@ -1750,6 +1751,22 @@ let App = App_1 = class App extends BaseNode_1.default {
|
|
|
1750
1751
|
const attr = node.bindAttrs.find((it) => it.name === 'TableDesignerLocked');
|
|
1751
1752
|
if (attr) {
|
|
1752
1753
|
attr.delete();
|
|
1754
|
+
// 数据管理页释放节点时,需要主动调整弹窗的位置
|
|
1755
|
+
const filterList = [];
|
|
1756
|
+
node.children.forEach((item) => {
|
|
1757
|
+
if (item?.tag === 'u-modal') {
|
|
1758
|
+
filterList.push(item);
|
|
1759
|
+
}
|
|
1760
|
+
});
|
|
1761
|
+
if (filterList.length > 0) {
|
|
1762
|
+
const sourceNode = node.parentNode;
|
|
1763
|
+
filterList.forEach((item) => {
|
|
1764
|
+
item.moveNode({
|
|
1765
|
+
sourceNode,
|
|
1766
|
+
position: 'append',
|
|
1767
|
+
});
|
|
1768
|
+
});
|
|
1769
|
+
}
|
|
1753
1770
|
}
|
|
1754
1771
|
}
|
|
1755
1772
|
});
|
|
@@ -1944,12 +1961,15 @@ let App = App_1 = class App extends BaseNode_1.default {
|
|
|
1944
1961
|
if (name) {
|
|
1945
1962
|
(frontends || []).forEach((frontend) => {
|
|
1946
1963
|
if (frontend.type === scope) {
|
|
1964
|
+
const cssFileName = 'dist-theme/index.css';
|
|
1947
1965
|
const jsName = `${prefix}/packages/${prefixPath ? `${prefixPath}/` : ''}${name}@${version}/dist-theme/index.js`;
|
|
1948
|
-
const cssName = `${prefix}/packages/${prefixPath ? `${prefixPath}/` : ''}${name}@${version}
|
|
1966
|
+
const cssName = `${prefix}/packages/${prefixPath ? `${prefixPath}/` : ''}${name}@${version}/${cssFileName}`;
|
|
1949
1967
|
if (!existingSet.has(jsName)) {
|
|
1950
1968
|
existingSet.add(jsName);
|
|
1951
1969
|
result.custom.js.push(jsName);
|
|
1952
|
-
|
|
1970
|
+
if (dep.checkFileInManifest(cssFileName)) {
|
|
1971
|
+
result.custom.css.push(cssName);
|
|
1972
|
+
}
|
|
1953
1973
|
result.custom.names.push(dep.name);
|
|
1954
1974
|
}
|
|
1955
1975
|
}
|
|
@@ -2208,16 +2228,20 @@ let App = App_1 = class App extends BaseNode_1.default {
|
|
|
2208
2228
|
.flat(2);
|
|
2209
2229
|
}
|
|
2210
2230
|
getExtensionsCallbackLogics() {
|
|
2211
|
-
|
|
2231
|
+
const resultLogics = new Set();
|
|
2212
2232
|
this.frontendTypes.forEach((frontendType) => {
|
|
2213
2233
|
frontendType?.frontends?.forEach((frontend) => {
|
|
2214
|
-
|
|
2234
|
+
frontend.getExtensionsCallbackLogics().forEach((logic) => {
|
|
2235
|
+
resultLogics.add(logic);
|
|
2236
|
+
});
|
|
2215
2237
|
});
|
|
2216
2238
|
frontendType?.businessComponents?.forEach((businessComponent) => {
|
|
2217
|
-
|
|
2239
|
+
(businessComponent?.getViewCallLogics?.() || []).forEach((logic) => {
|
|
2240
|
+
resultLogics.add(logic);
|
|
2241
|
+
});
|
|
2218
2242
|
});
|
|
2219
2243
|
});
|
|
2220
|
-
return Array.from(
|
|
2244
|
+
return Array.from(resultLogics);
|
|
2221
2245
|
}
|
|
2222
2246
|
getJavaLogicUniqueName(name = 'javalogic1') {
|
|
2223
2247
|
return utils.unique(name, this.getLogicExistingNames(), undefined, true);
|
|
@@ -2279,6 +2303,955 @@ let App = App_1 = class App extends BaseNode_1.default {
|
|
|
2279
2303
|
.filter((item) => !excludedSet.has(item))
|
|
2280
2304
|
.map((item) => item.title);
|
|
2281
2305
|
}
|
|
2306
|
+
/** hank */
|
|
2307
|
+
// setConnector() {
|
|
2308
|
+
// const [a, b, c, d] = this.dependencies;
|
|
2309
|
+
// const Module = getConceptConstructor('Module');
|
|
2310
|
+
// const module = Module.from({
|
|
2311
|
+
// "concept": "Module",
|
|
2312
|
+
// "type": "extension",
|
|
2313
|
+
// "version": "1.0.1",
|
|
2314
|
+
// "name": "cw_cryptojs_library",
|
|
2315
|
+
// "title": "前端加密依赖库",
|
|
2316
|
+
// "description": "",
|
|
2317
|
+
// "provider": "资产中心-租户",
|
|
2318
|
+
// "compilerInfoMap": {
|
|
2319
|
+
// "js": {
|
|
2320
|
+
// "prefix": "extension"
|
|
2321
|
+
// }
|
|
2322
|
+
// },
|
|
2323
|
+
// "dataSources": [],
|
|
2324
|
+
// "structures": [],
|
|
2325
|
+
// "enums": [],
|
|
2326
|
+
// "logics": [],
|
|
2327
|
+
// "interfaces": [],
|
|
2328
|
+
// "views": [],
|
|
2329
|
+
// "frontendVariables": [],
|
|
2330
|
+
// "processes": [],
|
|
2331
|
+
// "processV2s": [],
|
|
2332
|
+
// "frontends": [
|
|
2333
|
+
// {
|
|
2334
|
+
// "concept": "FrontendLibrary",
|
|
2335
|
+
// "name": "pc",
|
|
2336
|
+
// "type": "pc",
|
|
2337
|
+
// "logics": [
|
|
2338
|
+
// {
|
|
2339
|
+
// "concept": "Logic",
|
|
2340
|
+
// "name": "decryptDataWithSalt",
|
|
2341
|
+
// "description": "加盐解密算法",
|
|
2342
|
+
// "typeParams": null,
|
|
2343
|
+
// "params": [
|
|
2344
|
+
// {
|
|
2345
|
+
// "concept": "Param",
|
|
2346
|
+
// "name": "encryptedData",
|
|
2347
|
+
// "description": "加密数据",
|
|
2348
|
+
// "typeAnnotation": {
|
|
2349
|
+
// "concept": "TypeAnnotation",
|
|
2350
|
+
// "typeKind": "primitive",
|
|
2351
|
+
// "typeNamespace": "nasl.core",
|
|
2352
|
+
// "typeName": "String",
|
|
2353
|
+
// "typeArguments": null,
|
|
2354
|
+
// "returnType": null,
|
|
2355
|
+
// "properties": null,
|
|
2356
|
+
// "name": ""
|
|
2357
|
+
// },
|
|
2358
|
+
// "defaultValue": null,
|
|
2359
|
+
// "cascader": false
|
|
2360
|
+
// },
|
|
2361
|
+
// {
|
|
2362
|
+
// "concept": "Param",
|
|
2363
|
+
// "name": "secretKey",
|
|
2364
|
+
// "description": "密钥",
|
|
2365
|
+
// "typeAnnotation": {
|
|
2366
|
+
// "concept": "TypeAnnotation",
|
|
2367
|
+
// "typeKind": "primitive",
|
|
2368
|
+
// "typeNamespace": "nasl.core",
|
|
2369
|
+
// "typeName": "String",
|
|
2370
|
+
// "typeArguments": null,
|
|
2371
|
+
// "returnType": null,
|
|
2372
|
+
// "properties": null,
|
|
2373
|
+
// "name": ""
|
|
2374
|
+
// },
|
|
2375
|
+
// "defaultValue": null,
|
|
2376
|
+
// "cascader": false
|
|
2377
|
+
// }
|
|
2378
|
+
// ],
|
|
2379
|
+
// "returns": [
|
|
2380
|
+
// {
|
|
2381
|
+
// "concept": "Return",
|
|
2382
|
+
// "name": "result",
|
|
2383
|
+
// "typeAnnotation": {
|
|
2384
|
+
// "concept": "TypeAnnotation",
|
|
2385
|
+
// "typeKind": "primitive",
|
|
2386
|
+
// "typeNamespace": "nasl.core",
|
|
2387
|
+
// "typeName": "String",
|
|
2388
|
+
// "typeArguments": null,
|
|
2389
|
+
// "returnType": null,
|
|
2390
|
+
// "properties": null,
|
|
2391
|
+
// "name": ""
|
|
2392
|
+
// },
|
|
2393
|
+
// "defaultValue": null
|
|
2394
|
+
// }
|
|
2395
|
+
// ],
|
|
2396
|
+
// "variables": [],
|
|
2397
|
+
// "body": [
|
|
2398
|
+
// {
|
|
2399
|
+
// "concept": "Start",
|
|
2400
|
+
// "label": "开始",
|
|
2401
|
+
// "description": null,
|
|
2402
|
+
// "folded": false,
|
|
2403
|
+
// "offsetX": null,
|
|
2404
|
+
// "offsetY": null,
|
|
2405
|
+
// "name": ""
|
|
2406
|
+
// },
|
|
2407
|
+
// {
|
|
2408
|
+
// "concept": "End",
|
|
2409
|
+
// "label": "结束",
|
|
2410
|
+
// "description": null,
|
|
2411
|
+
// "folded": false,
|
|
2412
|
+
// "offsetX": null,
|
|
2413
|
+
// "offsetY": null,
|
|
2414
|
+
// "name": ""
|
|
2415
|
+
// }
|
|
2416
|
+
// ],
|
|
2417
|
+
// "playground": []
|
|
2418
|
+
// },
|
|
2419
|
+
// {
|
|
2420
|
+
// "concept": "Logic",
|
|
2421
|
+
// "name": "encryptByDes",
|
|
2422
|
+
// "description": "Des加密",
|
|
2423
|
+
// "typeParams": null,
|
|
2424
|
+
// "params": [
|
|
2425
|
+
// {
|
|
2426
|
+
// "concept": "Param",
|
|
2427
|
+
// "name": "data",
|
|
2428
|
+
// "description": "需要加密的内容",
|
|
2429
|
+
// "typeAnnotation": {
|
|
2430
|
+
// "concept": "TypeAnnotation",
|
|
2431
|
+
// "typeKind": "primitive",
|
|
2432
|
+
// "typeNamespace": "nasl.core",
|
|
2433
|
+
// "typeName": "String",
|
|
2434
|
+
// "typeArguments": null,
|
|
2435
|
+
// "returnType": null,
|
|
2436
|
+
// "properties": null,
|
|
2437
|
+
// "name": ""
|
|
2438
|
+
// },
|
|
2439
|
+
// "defaultValue": null,
|
|
2440
|
+
// "cascader": false
|
|
2441
|
+
// },
|
|
2442
|
+
// {
|
|
2443
|
+
// "concept": "Param",
|
|
2444
|
+
// "name": "key",
|
|
2445
|
+
// "description": "加密的key",
|
|
2446
|
+
// "typeAnnotation": {
|
|
2447
|
+
// "concept": "TypeAnnotation",
|
|
2448
|
+
// "typeKind": "primitive",
|
|
2449
|
+
// "typeNamespace": "nasl.core",
|
|
2450
|
+
// "typeName": "String",
|
|
2451
|
+
// "typeArguments": null,
|
|
2452
|
+
// "returnType": null,
|
|
2453
|
+
// "properties": null,
|
|
2454
|
+
// "name": ""
|
|
2455
|
+
// },
|
|
2456
|
+
// "defaultValue": null,
|
|
2457
|
+
// "cascader": false
|
|
2458
|
+
// },
|
|
2459
|
+
// {
|
|
2460
|
+
// "concept": "Param",
|
|
2461
|
+
// "name": "iv",
|
|
2462
|
+
// "description": "加密的iv",
|
|
2463
|
+
// "typeAnnotation": {
|
|
2464
|
+
// "concept": "TypeAnnotation",
|
|
2465
|
+
// "typeKind": "primitive",
|
|
2466
|
+
// "typeNamespace": "nasl.core",
|
|
2467
|
+
// "typeName": "String",
|
|
2468
|
+
// "typeArguments": null,
|
|
2469
|
+
// "returnType": null,
|
|
2470
|
+
// "properties": null,
|
|
2471
|
+
// "name": ""
|
|
2472
|
+
// },
|
|
2473
|
+
// "defaultValue": null,
|
|
2474
|
+
// "cascader": false
|
|
2475
|
+
// }
|
|
2476
|
+
// ],
|
|
2477
|
+
// "returns": [
|
|
2478
|
+
// {
|
|
2479
|
+
// "concept": "Return",
|
|
2480
|
+
// "name": "result",
|
|
2481
|
+
// "typeAnnotation": {
|
|
2482
|
+
// "concept": "TypeAnnotation",
|
|
2483
|
+
// "typeKind": "primitive",
|
|
2484
|
+
// "typeNamespace": "nasl.core",
|
|
2485
|
+
// "typeName": "String",
|
|
2486
|
+
// "typeArguments": null,
|
|
2487
|
+
// "returnType": null,
|
|
2488
|
+
// "properties": null,
|
|
2489
|
+
// "name": ""
|
|
2490
|
+
// },
|
|
2491
|
+
// "defaultValue": null
|
|
2492
|
+
// }
|
|
2493
|
+
// ],
|
|
2494
|
+
// "variables": [],
|
|
2495
|
+
// "body": [
|
|
2496
|
+
// {
|
|
2497
|
+
// "concept": "Start",
|
|
2498
|
+
// "label": "开始",
|
|
2499
|
+
// "description": null,
|
|
2500
|
+
// "folded": false,
|
|
2501
|
+
// "offsetX": null,
|
|
2502
|
+
// "offsetY": null,
|
|
2503
|
+
// "name": ""
|
|
2504
|
+
// },
|
|
2505
|
+
// {
|
|
2506
|
+
// "concept": "End",
|
|
2507
|
+
// "label": "结束",
|
|
2508
|
+
// "description": null,
|
|
2509
|
+
// "folded": false,
|
|
2510
|
+
// "offsetX": null,
|
|
2511
|
+
// "offsetY": null,
|
|
2512
|
+
// "name": ""
|
|
2513
|
+
// }
|
|
2514
|
+
// ],
|
|
2515
|
+
// "playground": []
|
|
2516
|
+
// },
|
|
2517
|
+
// {
|
|
2518
|
+
// "concept": "Logic",
|
|
2519
|
+
// "name": "encryptDataWithSalt",
|
|
2520
|
+
// "description": "加盐加密算法",
|
|
2521
|
+
// "typeParams": null,
|
|
2522
|
+
// "params": [
|
|
2523
|
+
// {
|
|
2524
|
+
// "concept": "Param",
|
|
2525
|
+
// "name": "data",
|
|
2526
|
+
// "description": "待加密数据",
|
|
2527
|
+
// "typeAnnotation": {
|
|
2528
|
+
// "concept": "TypeAnnotation",
|
|
2529
|
+
// "typeKind": "primitive",
|
|
2530
|
+
// "typeNamespace": "nasl.core",
|
|
2531
|
+
// "typeName": "String",
|
|
2532
|
+
// "typeArguments": null,
|
|
2533
|
+
// "returnType": null,
|
|
2534
|
+
// "properties": null,
|
|
2535
|
+
// "name": ""
|
|
2536
|
+
// },
|
|
2537
|
+
// "defaultValue": null,
|
|
2538
|
+
// "cascader": false
|
|
2539
|
+
// },
|
|
2540
|
+
// {
|
|
2541
|
+
// "concept": "Param",
|
|
2542
|
+
// "name": "secretKey",
|
|
2543
|
+
// "description": "密钥",
|
|
2544
|
+
// "typeAnnotation": {
|
|
2545
|
+
// "concept": "TypeAnnotation",
|
|
2546
|
+
// "typeKind": "primitive",
|
|
2547
|
+
// "typeNamespace": "nasl.core",
|
|
2548
|
+
// "typeName": "String",
|
|
2549
|
+
// "typeArguments": null,
|
|
2550
|
+
// "returnType": null,
|
|
2551
|
+
// "properties": null,
|
|
2552
|
+
// "name": ""
|
|
2553
|
+
// },
|
|
2554
|
+
// "defaultValue": null,
|
|
2555
|
+
// "cascader": false
|
|
2556
|
+
// }
|
|
2557
|
+
// ],
|
|
2558
|
+
// "returns": [
|
|
2559
|
+
// {
|
|
2560
|
+
// "concept": "Return",
|
|
2561
|
+
// "name": "result",
|
|
2562
|
+
// "typeAnnotation": {
|
|
2563
|
+
// "concept": "TypeAnnotation",
|
|
2564
|
+
// "typeKind": "primitive",
|
|
2565
|
+
// "typeNamespace": "nasl.core",
|
|
2566
|
+
// "typeName": "String",
|
|
2567
|
+
// "typeArguments": null,
|
|
2568
|
+
// "returnType": null,
|
|
2569
|
+
// "properties": null,
|
|
2570
|
+
// "name": ""
|
|
2571
|
+
// },
|
|
2572
|
+
// "defaultValue": null
|
|
2573
|
+
// }
|
|
2574
|
+
// ],
|
|
2575
|
+
// "variables": [],
|
|
2576
|
+
// "body": [
|
|
2577
|
+
// {
|
|
2578
|
+
// "concept": "Start",
|
|
2579
|
+
// "label": "开始",
|
|
2580
|
+
// "description": null,
|
|
2581
|
+
// "folded": false,
|
|
2582
|
+
// "offsetX": null,
|
|
2583
|
+
// "offsetY": null,
|
|
2584
|
+
// "name": ""
|
|
2585
|
+
// },
|
|
2586
|
+
// {
|
|
2587
|
+
// "concept": "End",
|
|
2588
|
+
// "label": "结束",
|
|
2589
|
+
// "description": null,
|
|
2590
|
+
// "folded": false,
|
|
2591
|
+
// "offsetX": null,
|
|
2592
|
+
// "offsetY": null,
|
|
2593
|
+
// "name": ""
|
|
2594
|
+
// }
|
|
2595
|
+
// ],
|
|
2596
|
+
// "playground": []
|
|
2597
|
+
// },
|
|
2598
|
+
// {
|
|
2599
|
+
// "concept": "Logic",
|
|
2600
|
+
// "name": "encryptSha256",
|
|
2601
|
+
// "description": "RSA-SHA256加密",
|
|
2602
|
+
// "typeParams": null,
|
|
2603
|
+
// "params": [
|
|
2604
|
+
// {
|
|
2605
|
+
// "concept": "Param",
|
|
2606
|
+
// "name": "rsa",
|
|
2607
|
+
// "description": "加密私钥",
|
|
2608
|
+
// "typeAnnotation": {
|
|
2609
|
+
// "concept": "TypeAnnotation",
|
|
2610
|
+
// "typeKind": "primitive",
|
|
2611
|
+
// "typeNamespace": "nasl.core",
|
|
2612
|
+
// "typeName": "String",
|
|
2613
|
+
// "typeArguments": null,
|
|
2614
|
+
// "returnType": null,
|
|
2615
|
+
// "properties": null,
|
|
2616
|
+
// "name": ""
|
|
2617
|
+
// },
|
|
2618
|
+
// "defaultValue": null,
|
|
2619
|
+
// "cascader": false
|
|
2620
|
+
// }
|
|
2621
|
+
// ],
|
|
2622
|
+
// "returns": [
|
|
2623
|
+
// {
|
|
2624
|
+
// "concept": "Return",
|
|
2625
|
+
// "name": "result",
|
|
2626
|
+
// "typeAnnotation": {
|
|
2627
|
+
// "concept": "TypeAnnotation",
|
|
2628
|
+
// "typeKind": "primitive",
|
|
2629
|
+
// "typeNamespace": "nasl.core",
|
|
2630
|
+
// "typeName": "String",
|
|
2631
|
+
// "typeArguments": null,
|
|
2632
|
+
// "returnType": null,
|
|
2633
|
+
// "properties": null,
|
|
2634
|
+
// "name": ""
|
|
2635
|
+
// },
|
|
2636
|
+
// "defaultValue": null
|
|
2637
|
+
// }
|
|
2638
|
+
// ],
|
|
2639
|
+
// "variables": [],
|
|
2640
|
+
// "body": [
|
|
2641
|
+
// {
|
|
2642
|
+
// "concept": "Start",
|
|
2643
|
+
// "label": "开始",
|
|
2644
|
+
// "description": null,
|
|
2645
|
+
// "folded": false,
|
|
2646
|
+
// "offsetX": null,
|
|
2647
|
+
// "offsetY": null,
|
|
2648
|
+
// "name": ""
|
|
2649
|
+
// },
|
|
2650
|
+
// {
|
|
2651
|
+
// "concept": "End",
|
|
2652
|
+
// "label": "结束",
|
|
2653
|
+
// "description": null,
|
|
2654
|
+
// "folded": false,
|
|
2655
|
+
// "offsetX": null,
|
|
2656
|
+
// "offsetY": null,
|
|
2657
|
+
// "name": ""
|
|
2658
|
+
// }
|
|
2659
|
+
// ],
|
|
2660
|
+
// "playground": []
|
|
2661
|
+
// },
|
|
2662
|
+
// {
|
|
2663
|
+
// "concept": "Logic",
|
|
2664
|
+
// "name": "addWaterImgMarkAsync",
|
|
2665
|
+
// "description": "",
|
|
2666
|
+
// "typeParams": null,
|
|
2667
|
+
// "params": [
|
|
2668
|
+
// {
|
|
2669
|
+
// "concept": "Param",
|
|
2670
|
+
// "name": "taskId",
|
|
2671
|
+
// "description": "",
|
|
2672
|
+
// "typeAnnotation": {
|
|
2673
|
+
// "concept": "TypeAnnotation",
|
|
2674
|
+
// "typeKind": "primitive",
|
|
2675
|
+
// "typeNamespace": "nasl.core",
|
|
2676
|
+
// "typeName": "String",
|
|
2677
|
+
// "typeArguments": null,
|
|
2678
|
+
// "returnType": null,
|
|
2679
|
+
// "properties": null
|
|
2680
|
+
// },
|
|
2681
|
+
// "defaultValue": null,
|
|
2682
|
+
// "cascader": false
|
|
2683
|
+
// },
|
|
2684
|
+
// {
|
|
2685
|
+
// "concept": "Param",
|
|
2686
|
+
// "name": "srcFile",
|
|
2687
|
+
// "description": "",
|
|
2688
|
+
// "typeAnnotation": {
|
|
2689
|
+
// "concept": "TypeAnnotation",
|
|
2690
|
+
// "typeKind": "primitive",
|
|
2691
|
+
// "typeNamespace": "nasl.core",
|
|
2692
|
+
// "typeName": "String",
|
|
2693
|
+
// "typeArguments": null,
|
|
2694
|
+
// "returnType": null,
|
|
2695
|
+
// "properties": null
|
|
2696
|
+
// },
|
|
2697
|
+
// "defaultValue": null,
|
|
2698
|
+
// "cascader": false
|
|
2699
|
+
// },
|
|
2700
|
+
// {
|
|
2701
|
+
// "concept": "Param",
|
|
2702
|
+
// "name": "imgPath",
|
|
2703
|
+
// "description": "",
|
|
2704
|
+
// "typeAnnotation": {
|
|
2705
|
+
// "concept": "TypeAnnotation",
|
|
2706
|
+
// "typeKind": "primitive",
|
|
2707
|
+
// "typeNamespace": "nasl.core",
|
|
2708
|
+
// "typeName": "String",
|
|
2709
|
+
// "typeArguments": null,
|
|
2710
|
+
// "returnType": null,
|
|
2711
|
+
// "properties": null
|
|
2712
|
+
// },
|
|
2713
|
+
// "defaultValue": null,
|
|
2714
|
+
// "cascader": false
|
|
2715
|
+
// },
|
|
2716
|
+
// {
|
|
2717
|
+
// "concept": "Param",
|
|
2718
|
+
// "name": "textFont",
|
|
2719
|
+
// "description": "",
|
|
2720
|
+
// "typeAnnotation": {
|
|
2721
|
+
// "concept": "TypeAnnotation",
|
|
2722
|
+
// "typeKind": "primitive",
|
|
2723
|
+
// "typeNamespace": "nasl.core",
|
|
2724
|
+
// "typeName": "String",
|
|
2725
|
+
// "typeArguments": null,
|
|
2726
|
+
// "returnType": null,
|
|
2727
|
+
// "properties": null
|
|
2728
|
+
// },
|
|
2729
|
+
// "defaultValue": null,
|
|
2730
|
+
// "cascader": false
|
|
2731
|
+
// },
|
|
2732
|
+
// {
|
|
2733
|
+
// "concept": "Param",
|
|
2734
|
+
// "name": "func",
|
|
2735
|
+
// "description": "",
|
|
2736
|
+
// "typeAnnotation": {
|
|
2737
|
+
// "concept": "TypeAnnotation",
|
|
2738
|
+
// "typeKind": "function",
|
|
2739
|
+
// "typeNamespace": "nasl.core",
|
|
2740
|
+
// "typeName": "",
|
|
2741
|
+
// "typeArguments": [
|
|
2742
|
+
// {
|
|
2743
|
+
// "concept": "TypeAnnotation",
|
|
2744
|
+
// "typeKind": "generic",
|
|
2745
|
+
// "typeNamespace": "nasl.collection",
|
|
2746
|
+
// "typeName": "Map",
|
|
2747
|
+
// "typeArguments": [
|
|
2748
|
+
// {
|
|
2749
|
+
// "concept": "TypeAnnotation",
|
|
2750
|
+
// "typeKind": "primitive",
|
|
2751
|
+
// "typeNamespace": "nasl.core",
|
|
2752
|
+
// "typeName": "String",
|
|
2753
|
+
// "typeArguments": null,
|
|
2754
|
+
// "returnType": null,
|
|
2755
|
+
// "properties": null
|
|
2756
|
+
// },
|
|
2757
|
+
// {
|
|
2758
|
+
// "concept": "TypeAnnotation",
|
|
2759
|
+
// "typeKind": "primitive",
|
|
2760
|
+
// "typeNamespace": "nasl.core",
|
|
2761
|
+
// "typeName": "String",
|
|
2762
|
+
// "typeArguments": null,
|
|
2763
|
+
// "returnType": null,
|
|
2764
|
+
// "properties": null
|
|
2765
|
+
// }
|
|
2766
|
+
// ],
|
|
2767
|
+
// "returnType": null,
|
|
2768
|
+
// "properties": null
|
|
2769
|
+
// }
|
|
2770
|
+
// ],
|
|
2771
|
+
// "returnType": [
|
|
2772
|
+
// {
|
|
2773
|
+
// "concept": "TypeAnnotation",
|
|
2774
|
+
// "typeKind": "primitive",
|
|
2775
|
+
// "typeNamespace": "nasl.core",
|
|
2776
|
+
// "typeName": "String",
|
|
2777
|
+
// "typeArguments": null,
|
|
2778
|
+
// "returnType": null,
|
|
2779
|
+
// "properties": null
|
|
2780
|
+
// }
|
|
2781
|
+
// ],
|
|
2782
|
+
// "properties": null
|
|
2783
|
+
// },
|
|
2784
|
+
// "defaultValue": null,
|
|
2785
|
+
// "cascader": false,
|
|
2786
|
+
// "changedTime": 1711351957157,
|
|
2787
|
+
// "spread": true
|
|
2788
|
+
// }
|
|
2789
|
+
// ],
|
|
2790
|
+
// "returns": [
|
|
2791
|
+
// {
|
|
2792
|
+
// "concept": "Return",
|
|
2793
|
+
// "name": "result",
|
|
2794
|
+
// "description": "",
|
|
2795
|
+
// "typeAnnotation": {
|
|
2796
|
+
// "concept": "TypeAnnotation",
|
|
2797
|
+
// "typeKind": "primitive",
|
|
2798
|
+
// "typeNamespace": "nasl.core",
|
|
2799
|
+
// "typeName": "String",
|
|
2800
|
+
// "typeArguments": null,
|
|
2801
|
+
// "returnType": null,
|
|
2802
|
+
// "properties": null
|
|
2803
|
+
// },
|
|
2804
|
+
// "defaultValue": null
|
|
2805
|
+
// }
|
|
2806
|
+
// ],
|
|
2807
|
+
// "variables": [],
|
|
2808
|
+
// "body": [
|
|
2809
|
+
// {
|
|
2810
|
+
// "concept": "Start",
|
|
2811
|
+
// "label": "开始",
|
|
2812
|
+
// "description": null,
|
|
2813
|
+
// "folded": false,
|
|
2814
|
+
// "offsetX": null,
|
|
2815
|
+
// "offsetY": null
|
|
2816
|
+
// },
|
|
2817
|
+
// {
|
|
2818
|
+
// "concept": "End",
|
|
2819
|
+
// "label": "结束",
|
|
2820
|
+
// "description": null,
|
|
2821
|
+
// "folded": false,
|
|
2822
|
+
// "offsetX": null,
|
|
2823
|
+
// "offsetY": null
|
|
2824
|
+
// }
|
|
2825
|
+
// ],
|
|
2826
|
+
// "playground": [],
|
|
2827
|
+
// "changedTime": 1711009353914
|
|
2828
|
+
// }
|
|
2829
|
+
// ],
|
|
2830
|
+
// "viewComponents": []
|
|
2831
|
+
// },
|
|
2832
|
+
// {
|
|
2833
|
+
// "concept": "FrontendLibrary",
|
|
2834
|
+
// "name": "h5",
|
|
2835
|
+
// "type": "h5",
|
|
2836
|
+
// "logics": [
|
|
2837
|
+
// {
|
|
2838
|
+
// "concept": "Logic",
|
|
2839
|
+
// "name": "decryptDataWithSalt",
|
|
2840
|
+
// "description": "加盐解密算法",
|
|
2841
|
+
// "typeParams": null,
|
|
2842
|
+
// "params": [
|
|
2843
|
+
// {
|
|
2844
|
+
// "concept": "Param",
|
|
2845
|
+
// "name": "encryptedData",
|
|
2846
|
+
// "description": "加密数据",
|
|
2847
|
+
// "typeAnnotation": {
|
|
2848
|
+
// "concept": "TypeAnnotation",
|
|
2849
|
+
// "typeKind": "primitive",
|
|
2850
|
+
// "typeNamespace": "nasl.core",
|
|
2851
|
+
// "typeName": "String",
|
|
2852
|
+
// "typeArguments": null,
|
|
2853
|
+
// "returnType": null,
|
|
2854
|
+
// "properties": null,
|
|
2855
|
+
// "name": ""
|
|
2856
|
+
// },
|
|
2857
|
+
// "defaultValue": null,
|
|
2858
|
+
// "cascader": false
|
|
2859
|
+
// },
|
|
2860
|
+
// {
|
|
2861
|
+
// "concept": "Param",
|
|
2862
|
+
// "name": "secretKey",
|
|
2863
|
+
// "description": "密钥",
|
|
2864
|
+
// "typeAnnotation": {
|
|
2865
|
+
// "concept": "TypeAnnotation",
|
|
2866
|
+
// "typeKind": "primitive",
|
|
2867
|
+
// "typeNamespace": "nasl.core",
|
|
2868
|
+
// "typeName": "String",
|
|
2869
|
+
// "typeArguments": null,
|
|
2870
|
+
// "returnType": null,
|
|
2871
|
+
// "properties": null,
|
|
2872
|
+
// "name": ""
|
|
2873
|
+
// },
|
|
2874
|
+
// "defaultValue": null,
|
|
2875
|
+
// "cascader": false
|
|
2876
|
+
// }
|
|
2877
|
+
// ],
|
|
2878
|
+
// "returns": [
|
|
2879
|
+
// {
|
|
2880
|
+
// "concept": "Return",
|
|
2881
|
+
// "name": "result",
|
|
2882
|
+
// "typeAnnotation": {
|
|
2883
|
+
// "concept": "TypeAnnotation",
|
|
2884
|
+
// "typeKind": "primitive",
|
|
2885
|
+
// "typeNamespace": "nasl.core",
|
|
2886
|
+
// "typeName": "String",
|
|
2887
|
+
// "typeArguments": null,
|
|
2888
|
+
// "returnType": null,
|
|
2889
|
+
// "properties": null,
|
|
2890
|
+
// "name": ""
|
|
2891
|
+
// },
|
|
2892
|
+
// "defaultValue": null
|
|
2893
|
+
// }
|
|
2894
|
+
// ],
|
|
2895
|
+
// "variables": [],
|
|
2896
|
+
// "body": [
|
|
2897
|
+
// {
|
|
2898
|
+
// "concept": "Start",
|
|
2899
|
+
// "label": "开始",
|
|
2900
|
+
// "description": null,
|
|
2901
|
+
// "folded": false,
|
|
2902
|
+
// "offsetX": null,
|
|
2903
|
+
// "offsetY": null,
|
|
2904
|
+
// "name": ""
|
|
2905
|
+
// },
|
|
2906
|
+
// {
|
|
2907
|
+
// "concept": "End",
|
|
2908
|
+
// "label": "结束",
|
|
2909
|
+
// "description": null,
|
|
2910
|
+
// "folded": false,
|
|
2911
|
+
// "offsetX": null,
|
|
2912
|
+
// "offsetY": null,
|
|
2913
|
+
// "name": ""
|
|
2914
|
+
// }
|
|
2915
|
+
// ],
|
|
2916
|
+
// "playground": []
|
|
2917
|
+
// },
|
|
2918
|
+
// {
|
|
2919
|
+
// "concept": "Logic",
|
|
2920
|
+
// "name": "encryptByDes",
|
|
2921
|
+
// "description": "Des加密",
|
|
2922
|
+
// "typeParams": null,
|
|
2923
|
+
// "params": [
|
|
2924
|
+
// {
|
|
2925
|
+
// "concept": "Param",
|
|
2926
|
+
// "name": "data",
|
|
2927
|
+
// "description": "需要加密的内容",
|
|
2928
|
+
// "typeAnnotation": {
|
|
2929
|
+
// "concept": "TypeAnnotation",
|
|
2930
|
+
// "typeKind": "primitive",
|
|
2931
|
+
// "typeNamespace": "nasl.core",
|
|
2932
|
+
// "typeName": "String",
|
|
2933
|
+
// "typeArguments": null,
|
|
2934
|
+
// "returnType": null,
|
|
2935
|
+
// "properties": null,
|
|
2936
|
+
// "name": ""
|
|
2937
|
+
// },
|
|
2938
|
+
// "defaultValue": null,
|
|
2939
|
+
// "cascader": false
|
|
2940
|
+
// },
|
|
2941
|
+
// {
|
|
2942
|
+
// "concept": "Param",
|
|
2943
|
+
// "name": "key",
|
|
2944
|
+
// "description": "加密的key",
|
|
2945
|
+
// "typeAnnotation": {
|
|
2946
|
+
// "concept": "TypeAnnotation",
|
|
2947
|
+
// "typeKind": "primitive",
|
|
2948
|
+
// "typeNamespace": "nasl.core",
|
|
2949
|
+
// "typeName": "String",
|
|
2950
|
+
// "typeArguments": null,
|
|
2951
|
+
// "returnType": null,
|
|
2952
|
+
// "properties": null,
|
|
2953
|
+
// "name": ""
|
|
2954
|
+
// },
|
|
2955
|
+
// "defaultValue": null,
|
|
2956
|
+
// "cascader": false
|
|
2957
|
+
// },
|
|
2958
|
+
// {
|
|
2959
|
+
// "concept": "Param",
|
|
2960
|
+
// "name": "iv",
|
|
2961
|
+
// "description": "加密的iv",
|
|
2962
|
+
// "typeAnnotation": {
|
|
2963
|
+
// "concept": "TypeAnnotation",
|
|
2964
|
+
// "typeKind": "primitive",
|
|
2965
|
+
// "typeNamespace": "nasl.core",
|
|
2966
|
+
// "typeName": "String",
|
|
2967
|
+
// "typeArguments": null,
|
|
2968
|
+
// "returnType": null,
|
|
2969
|
+
// "properties": null,
|
|
2970
|
+
// "name": ""
|
|
2971
|
+
// },
|
|
2972
|
+
// "defaultValue": null,
|
|
2973
|
+
// "cascader": false
|
|
2974
|
+
// }
|
|
2975
|
+
// ],
|
|
2976
|
+
// "returns": [
|
|
2977
|
+
// {
|
|
2978
|
+
// "concept": "Return",
|
|
2979
|
+
// "name": "result",
|
|
2980
|
+
// "typeAnnotation": {
|
|
2981
|
+
// "concept": "TypeAnnotation",
|
|
2982
|
+
// "typeKind": "primitive",
|
|
2983
|
+
// "typeNamespace": "nasl.core",
|
|
2984
|
+
// "typeName": "String",
|
|
2985
|
+
// "typeArguments": null,
|
|
2986
|
+
// "returnType": null,
|
|
2987
|
+
// "properties": null,
|
|
2988
|
+
// "name": ""
|
|
2989
|
+
// },
|
|
2990
|
+
// "defaultValue": null
|
|
2991
|
+
// }
|
|
2992
|
+
// ],
|
|
2993
|
+
// "variables": [],
|
|
2994
|
+
// "body": [
|
|
2995
|
+
// {
|
|
2996
|
+
// "concept": "Start",
|
|
2997
|
+
// "label": "开始",
|
|
2998
|
+
// "description": null,
|
|
2999
|
+
// "folded": false,
|
|
3000
|
+
// "offsetX": null,
|
|
3001
|
+
// "offsetY": null,
|
|
3002
|
+
// "name": ""
|
|
3003
|
+
// },
|
|
3004
|
+
// {
|
|
3005
|
+
// "concept": "End",
|
|
3006
|
+
// "label": "结束",
|
|
3007
|
+
// "description": null,
|
|
3008
|
+
// "folded": false,
|
|
3009
|
+
// "offsetX": null,
|
|
3010
|
+
// "offsetY": null,
|
|
3011
|
+
// "name": ""
|
|
3012
|
+
// }
|
|
3013
|
+
// ],
|
|
3014
|
+
// "playground": []
|
|
3015
|
+
// },
|
|
3016
|
+
// {
|
|
3017
|
+
// "concept": "Logic",
|
|
3018
|
+
// "name": "encryptDataWithSalt",
|
|
3019
|
+
// "description": "加盐加密算法",
|
|
3020
|
+
// "typeParams": null,
|
|
3021
|
+
// "params": [
|
|
3022
|
+
// {
|
|
3023
|
+
// "concept": "Param",
|
|
3024
|
+
// "name": "data",
|
|
3025
|
+
// "description": "待加密数据",
|
|
3026
|
+
// "typeAnnotation": {
|
|
3027
|
+
// "concept": "TypeAnnotation",
|
|
3028
|
+
// "typeKind": "primitive",
|
|
3029
|
+
// "typeNamespace": "nasl.core",
|
|
3030
|
+
// "typeName": "String",
|
|
3031
|
+
// "typeArguments": null,
|
|
3032
|
+
// "returnType": null,
|
|
3033
|
+
// "properties": null,
|
|
3034
|
+
// "name": ""
|
|
3035
|
+
// },
|
|
3036
|
+
// "defaultValue": null,
|
|
3037
|
+
// "cascader": false
|
|
3038
|
+
// },
|
|
3039
|
+
// {
|
|
3040
|
+
// "concept": "Param",
|
|
3041
|
+
// "name": "secretKey",
|
|
3042
|
+
// "description": "密钥",
|
|
3043
|
+
// "typeAnnotation": {
|
|
3044
|
+
// "concept": "TypeAnnotation",
|
|
3045
|
+
// "typeKind": "primitive",
|
|
3046
|
+
// "typeNamespace": "nasl.core",
|
|
3047
|
+
// "typeName": "String",
|
|
3048
|
+
// "typeArguments": null,
|
|
3049
|
+
// "returnType": null,
|
|
3050
|
+
// "properties": null,
|
|
3051
|
+
// "name": ""
|
|
3052
|
+
// },
|
|
3053
|
+
// "defaultValue": null,
|
|
3054
|
+
// "cascader": false
|
|
3055
|
+
// }
|
|
3056
|
+
// ],
|
|
3057
|
+
// "returns": [
|
|
3058
|
+
// {
|
|
3059
|
+
// "concept": "Return",
|
|
3060
|
+
// "name": "result",
|
|
3061
|
+
// "typeAnnotation": {
|
|
3062
|
+
// "concept": "TypeAnnotation",
|
|
3063
|
+
// "typeKind": "primitive",
|
|
3064
|
+
// "typeNamespace": "nasl.core",
|
|
3065
|
+
// "typeName": "String",
|
|
3066
|
+
// "typeArguments": null,
|
|
3067
|
+
// "returnType": null,
|
|
3068
|
+
// "properties": null,
|
|
3069
|
+
// "name": ""
|
|
3070
|
+
// },
|
|
3071
|
+
// "defaultValue": null
|
|
3072
|
+
// }
|
|
3073
|
+
// ],
|
|
3074
|
+
// "variables": [],
|
|
3075
|
+
// "body": [
|
|
3076
|
+
// {
|
|
3077
|
+
// "concept": "Start",
|
|
3078
|
+
// "label": "开始",
|
|
3079
|
+
// "description": null,
|
|
3080
|
+
// "folded": false,
|
|
3081
|
+
// "offsetX": null,
|
|
3082
|
+
// "offsetY": null,
|
|
3083
|
+
// "name": ""
|
|
3084
|
+
// },
|
|
3085
|
+
// {
|
|
3086
|
+
// "concept": "End",
|
|
3087
|
+
// "label": "结束",
|
|
3088
|
+
// "description": null,
|
|
3089
|
+
// "folded": false,
|
|
3090
|
+
// "offsetX": null,
|
|
3091
|
+
// "offsetY": null,
|
|
3092
|
+
// "name": ""
|
|
3093
|
+
// }
|
|
3094
|
+
// ],
|
|
3095
|
+
// "playground": []
|
|
3096
|
+
// },
|
|
3097
|
+
// {
|
|
3098
|
+
// "concept": "Logic",
|
|
3099
|
+
// "name": "encryptSha256",
|
|
3100
|
+
// "description": "RSA-SHA256加密",
|
|
3101
|
+
// "typeParams": null,
|
|
3102
|
+
// "params": [
|
|
3103
|
+
// {
|
|
3104
|
+
// "concept": "Param",
|
|
3105
|
+
// "name": "rsa",
|
|
3106
|
+
// "description": "加密私钥",
|
|
3107
|
+
// "typeAnnotation": {
|
|
3108
|
+
// "concept": "TypeAnnotation",
|
|
3109
|
+
// "typeKind": "primitive",
|
|
3110
|
+
// "typeNamespace": "nasl.core",
|
|
3111
|
+
// "typeName": "String",
|
|
3112
|
+
// "typeArguments": null,
|
|
3113
|
+
// "returnType": null,
|
|
3114
|
+
// "properties": null,
|
|
3115
|
+
// "name": ""
|
|
3116
|
+
// },
|
|
3117
|
+
// "defaultValue": null,
|
|
3118
|
+
// "cascader": false
|
|
3119
|
+
// }
|
|
3120
|
+
// ],
|
|
3121
|
+
// "returns": [
|
|
3122
|
+
// {
|
|
3123
|
+
// "concept": "Return",
|
|
3124
|
+
// "name": "result",
|
|
3125
|
+
// "typeAnnotation": {
|
|
3126
|
+
// "concept": "TypeAnnotation",
|
|
3127
|
+
// "typeKind": "primitive",
|
|
3128
|
+
// "typeNamespace": "nasl.core",
|
|
3129
|
+
// "typeName": "String",
|
|
3130
|
+
// "typeArguments": null,
|
|
3131
|
+
// "returnType": null,
|
|
3132
|
+
// "properties": null,
|
|
3133
|
+
// "name": ""
|
|
3134
|
+
// },
|
|
3135
|
+
// "defaultValue": null
|
|
3136
|
+
// }
|
|
3137
|
+
// ],
|
|
3138
|
+
// "variables": [],
|
|
3139
|
+
// "body": [
|
|
3140
|
+
// {
|
|
3141
|
+
// "concept": "Start",
|
|
3142
|
+
// "label": "开始",
|
|
3143
|
+
// "description": null,
|
|
3144
|
+
// "folded": false,
|
|
3145
|
+
// "offsetX": null,
|
|
3146
|
+
// "offsetY": null,
|
|
3147
|
+
// "name": ""
|
|
3148
|
+
// },
|
|
3149
|
+
// {
|
|
3150
|
+
// "concept": "End",
|
|
3151
|
+
// "label": "结束",
|
|
3152
|
+
// "description": null,
|
|
3153
|
+
// "folded": false,
|
|
3154
|
+
// "offsetX": null,
|
|
3155
|
+
// "offsetY": null,
|
|
3156
|
+
// "name": ""
|
|
3157
|
+
// }
|
|
3158
|
+
// ],
|
|
3159
|
+
// "playground": []
|
|
3160
|
+
// }
|
|
3161
|
+
// ],
|
|
3162
|
+
// "viewComponents": []
|
|
3163
|
+
// }
|
|
3164
|
+
// ],
|
|
3165
|
+
// "triggerLaunchers": [],
|
|
3166
|
+
// "connections": [],
|
|
3167
|
+
// "metadataTypes": [],
|
|
3168
|
+
// "dependencies": [],
|
|
3169
|
+
// "changedTime": 1711359928093
|
|
3170
|
+
// })
|
|
3171
|
+
// this.update({
|
|
3172
|
+
// dependencies: [a, b, c, module],
|
|
3173
|
+
// });
|
|
3174
|
+
// }
|
|
3175
|
+
toNaturalTS(state = (0, translator_1.createCompilerState)()) {
|
|
3176
|
+
let code = '';
|
|
3177
|
+
this.dependencies?.forEach((dep) => {
|
|
3178
|
+
code += dep.toNaturalTS(state) + '\n\n';
|
|
3179
|
+
});
|
|
3180
|
+
this.interfaceDependencies?.forEach((dep) => {
|
|
3181
|
+
code += dep.toNaturalTS(state) + '\n\n';
|
|
3182
|
+
});
|
|
3183
|
+
this.dataSources?.forEach((dataSource) => {
|
|
3184
|
+
code += dataSource.toNaturalTS(state) + '\n';
|
|
3185
|
+
});
|
|
3186
|
+
this.structures?.forEach((structure) => {
|
|
3187
|
+
code += structure.toNaturalTS(state) + '\n';
|
|
3188
|
+
});
|
|
3189
|
+
this.enums?.forEach((enumeration) => {
|
|
3190
|
+
code += enumeration.toNaturalTS(state) + '\n';
|
|
3191
|
+
});
|
|
3192
|
+
this.metadataTypes?.forEach((metadataType) => {
|
|
3193
|
+
code += metadataType.toNaturalTS(state) + '\n';
|
|
3194
|
+
});
|
|
3195
|
+
if (this.metadataTypes.length)
|
|
3196
|
+
code += '\n';
|
|
3197
|
+
this.logics?.forEach((logic) => {
|
|
3198
|
+
code += logic.toNaturalTS(state) + '\n\n';
|
|
3199
|
+
});
|
|
3200
|
+
this.overriddenLogics?.forEach((logic) => {
|
|
3201
|
+
code += logic.toNaturalTS(state) + '\n\n';
|
|
3202
|
+
});
|
|
3203
|
+
this.interfaces?.forEach((inter) => {
|
|
3204
|
+
code += inter.toNaturalTS(state) + '\n';
|
|
3205
|
+
});
|
|
3206
|
+
this.roles?.forEach((role) => {
|
|
3207
|
+
code += role.toNaturalTS(state) + '\n';
|
|
3208
|
+
});
|
|
3209
|
+
this.frontendTypes?.forEach((frontendType, index) => {
|
|
3210
|
+
code += frontendType.toNaturalTS(state);
|
|
3211
|
+
if (index !== this.frontendTypes.length - 1)
|
|
3212
|
+
code += '\n';
|
|
3213
|
+
});
|
|
3214
|
+
return code;
|
|
3215
|
+
}
|
|
3216
|
+
toTextualNASL(state = (0, translator_1.createCompilerState)()) {
|
|
3217
|
+
let code = '';
|
|
3218
|
+
this.dependencies?.forEach((dep) => {
|
|
3219
|
+
code += dep.toTextualNASL(state) + '\n';
|
|
3220
|
+
});
|
|
3221
|
+
this.interfaceDependencies?.forEach((dep) => {
|
|
3222
|
+
code += dep.toTextualNASL(state) + '\n';
|
|
3223
|
+
});
|
|
3224
|
+
this.dataSources?.forEach((dataSource) => {
|
|
3225
|
+
code += dataSource.toTextualNASL(state) + '\n';
|
|
3226
|
+
});
|
|
3227
|
+
this.structures?.forEach((structure) => {
|
|
3228
|
+
code += structure.toTextualNASL(state) + '\n';
|
|
3229
|
+
});
|
|
3230
|
+
this.enums?.forEach((enumeration) => {
|
|
3231
|
+
code += enumeration.toTextualNASL(state) + '\n';
|
|
3232
|
+
});
|
|
3233
|
+
this.metadataTypes?.forEach((metadataType) => {
|
|
3234
|
+
code += metadataType.toTextualNASL(state) + '\n';
|
|
3235
|
+
});
|
|
3236
|
+
this.logics?.forEach((logic) => {
|
|
3237
|
+
code += logic.toTextualNASL(state) + '\n\n';
|
|
3238
|
+
});
|
|
3239
|
+
this.overriddenLogics?.forEach((logic) => {
|
|
3240
|
+
code += logic.toTextualNASL(state) + '\n\n';
|
|
3241
|
+
});
|
|
3242
|
+
this.interfaces?.forEach((inter) => {
|
|
3243
|
+
code += inter.toTextualNASL(state) + '\n';
|
|
3244
|
+
});
|
|
3245
|
+
this.roles?.forEach((role) => {
|
|
3246
|
+
code += role.toTextualNASL(state) + '\n';
|
|
3247
|
+
});
|
|
3248
|
+
this.frontendTypes?.forEach((frontendType, index) => {
|
|
3249
|
+
code += frontendType.toTextualNASL(state);
|
|
3250
|
+
if (index !== this.frontendTypes.length - 1)
|
|
3251
|
+
code += '\n';
|
|
3252
|
+
});
|
|
3253
|
+
return code;
|
|
3254
|
+
}
|
|
2282
3255
|
};
|
|
2283
3256
|
/** 类名 */
|
|
2284
3257
|
App.ConceptName = 'App';
|
|
@@ -2496,6 +3469,12 @@ __decorate([
|
|
|
2496
3469
|
__decorate([
|
|
2497
3470
|
(0, decorators_1.excludedInJSON)()
|
|
2498
3471
|
], App.prototype, "newProcessVersion", void 0);
|
|
3472
|
+
__decorate([
|
|
3473
|
+
(0, translator_1.withSourceMap)()
|
|
3474
|
+
], App.prototype, "toNaturalTS", null);
|
|
3475
|
+
__decorate([
|
|
3476
|
+
(0, translator_1.withSourceMap)()
|
|
3477
|
+
], App.prototype, "toTextualNASL", null);
|
|
2499
3478
|
App = App_1 = __decorate([
|
|
2500
3479
|
(0, decorators_1.concept)('应用')
|
|
2501
3480
|
], App);
|