@lcap/nasl 2.13.0-beta → 2.13.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/automate/engine/index.d.ts +4 -0
- package/out/automate/engine/index.js +436 -0
- package/out/automate/engine/index.js.map +1 -0
- package/out/automate/engine/operators.d.ts +21 -0
- package/out/automate/engine/operators.js +161 -0
- package/out/automate/engine/operators.js.map +1 -0
- package/out/automate/engine/uniqueName.d.ts +12 -0
- package/out/automate/engine/uniqueName.js +107 -0
- package/out/automate/engine/uniqueName.js.map +1 -0
- package/out/automate/engine/utils.d.ts +25 -0
- package/out/automate/engine/utils.js +404 -0
- package/out/automate/engine/utils.js.map +1 -0
- package/out/automate/template/process.d.ts +9 -0
- package/out/automate/template/process.js +10976 -0
- package/out/automate/template/process.js.map +1 -0
- package/out/bak/translator.d.ts +1 -0
- package/out/bak/translator.js +117 -0
- package/out/bak/translator.js.map +1 -0
- package/out/common/BaseNode.d.ts +256 -0
- package/out/common/BaseNode.js +891 -0
- package/out/common/BaseNode.js.map +1 -0
- package/out/common/Command.d.ts +8 -0
- package/out/common/Command.js +32 -0
- package/out/common/Command.js.map +1 -0
- package/out/common/ComponentAPI.d.ts +110 -0
- package/out/common/ComponentAPI.js +3 -0
- package/out/common/ComponentAPI.js.map +1 -0
- package/out/common/EventEmitter.d.ts +58 -0
- package/out/common/EventEmitter.js +68 -0
- package/out/common/EventEmitter.js.map +1 -0
- package/out/common/Messager.d.ts +86 -0
- package/out/common/Messager.js +187 -0
- package/out/common/Messager.js.map +1 -0
- package/out/common/classMap.d.ts +4 -0
- package/out/common/classMap.js +5 -0
- package/out/common/classMap.js.map +1 -0
- package/out/common/index.d.ts +4 -0
- package/out/common/index.js +21 -0
- package/out/common/index.js.map +1 -0
- package/out/concepts/App__.d.ts +1119 -0
- package/out/concepts/App__.js +1591 -0
- package/out/concepts/App__.js.map +1 -0
- package/out/concepts/Argument__.d.ts +58 -0
- package/out/concepts/Argument__.js +198 -0
- package/out/concepts/Argument__.js.map +1 -0
- package/out/concepts/Assignee__.d.ts +201 -0
- package/out/concepts/Assignee__.js +298 -0
- package/out/concepts/Assignee__.js.map +1 -0
- package/out/concepts/Assignment__.d.ts +70 -0
- package/out/concepts/Assignment__.js +201 -0
- package/out/concepts/Assignment__.js.map +1 -0
- package/out/concepts/Attribute__.d.ts +101 -0
- package/out/concepts/Attribute__.js +221 -0
- package/out/concepts/Attribute__.js.map +1 -0
- package/out/concepts/BinaryExpression__.d.ts +64 -0
- package/out/concepts/BinaryExpression__.js +269 -0
- package/out/concepts/BinaryExpression__.js.map +1 -0
- package/out/concepts/BindAttribute__.d.ts +231 -0
- package/out/concepts/BindAttribute__.js +450 -0
- package/out/concepts/BindAttribute__.js.map +1 -0
- package/out/concepts/BindDirective__.d.ts +93 -0
- package/out/concepts/BindDirective__.js +251 -0
- package/out/concepts/BindDirective__.js.map +1 -0
- package/out/concepts/BindEvent__.d.ts +231 -0
- package/out/concepts/BindEvent__.js +661 -0
- package/out/concepts/BindEvent__.js.map +1 -0
- package/out/concepts/BooleanLiteral__.d.ts +31 -0
- package/out/concepts/BooleanLiteral__.js +91 -0
- package/out/concepts/BooleanLiteral__.js.map +1 -0
- package/out/concepts/CallFunction__.d.ts +153 -0
- package/out/concepts/CallFunction__.js +381 -0
- package/out/concepts/CallFunction__.js.map +1 -0
- package/out/concepts/CallInterface__.d.ts +103 -0
- package/out/concepts/CallInterface__.js +443 -0
- package/out/concepts/CallInterface__.js.map +1 -0
- package/out/concepts/CallLogic__.d.ts +170 -0
- package/out/concepts/CallLogic__.js +604 -0
- package/out/concepts/CallLogic__.js.map +1 -0
- package/out/concepts/CallQueryComponent__.d.ts +345 -0
- package/out/concepts/CallQueryComponent__.js +1009 -0
- package/out/concepts/CallQueryComponent__.js.map +1 -0
- package/out/concepts/Comment__.d.ts +30 -0
- package/out/concepts/Comment__.js +93 -0
- package/out/concepts/Comment__.js.map +1 -0
- package/out/concepts/CompletionProperty__.d.ts +100 -0
- package/out/concepts/CompletionProperty__.js +236 -0
- package/out/concepts/CompletionProperty__.js.map +1 -0
- package/out/concepts/ConfigGroup__.d.ts +121 -0
- package/out/concepts/ConfigGroup__.js +221 -0
- package/out/concepts/ConfigGroup__.js.map +1 -0
- package/out/concepts/ConfigPropertyValue__.d.ts +43 -0
- package/out/concepts/ConfigPropertyValue__.js +103 -0
- package/out/concepts/ConfigPropertyValue__.js.map +1 -0
- package/out/concepts/ConfigProperty__.d.ts +129 -0
- package/out/concepts/ConfigProperty__.js +239 -0
- package/out/concepts/ConfigProperty__.js.map +1 -0
- package/out/concepts/Configuration__.d.ts +121 -0
- package/out/concepts/Configuration__.js +213 -0
- package/out/concepts/Configuration__.js.map +1 -0
- package/out/concepts/Constant__.d.ts +99 -0
- package/out/concepts/Constant__.js +237 -0
- package/out/concepts/Constant__.js.map +1 -0
- package/out/concepts/DataElement__.d.ts +45 -0
- package/out/concepts/DataElement__.js +114 -0
- package/out/concepts/DataElement__.js.map +1 -0
- package/out/concepts/DataSource__.d.ts +143 -0
- package/out/concepts/DataSource__.js +318 -0
- package/out/concepts/DataSource__.js.map +1 -0
- package/out/concepts/Destination__.d.ts +120 -0
- package/out/concepts/Destination__.js +434 -0
- package/out/concepts/Destination__.js.map +1 -0
- package/out/concepts/End__.d.ts +23 -0
- package/out/concepts/End__.js +84 -0
- package/out/concepts/End__.js.map +1 -0
- package/out/concepts/EntityIndex__.d.ts +94 -0
- package/out/concepts/EntityIndex__.js +215 -0
- package/out/concepts/EntityIndex__.js.map +1 -0
- package/out/concepts/EntityProperty__.d.ts +231 -0
- package/out/concepts/EntityProperty__.js +567 -0
- package/out/concepts/EntityProperty__.js.map +1 -0
- package/out/concepts/Entity__.d.ts +297 -0
- package/out/concepts/Entity__.js +571 -0
- package/out/concepts/Entity__.js.map +1 -0
- package/out/concepts/EnumItem__.d.ts +60 -0
- package/out/concepts/EnumItem__.js +136 -0
- package/out/concepts/EnumItem__.js.map +1 -0
- package/out/concepts/Enum__.d.ts +135 -0
- package/out/concepts/Enum__.js +293 -0
- package/out/concepts/Enum__.js.map +1 -0
- package/out/concepts/Event__.d.ts +142 -0
- package/out/concepts/Event__.js +242 -0
- package/out/concepts/Event__.js.map +1 -0
- package/out/concepts/ForEachStatement__.d.ts +191 -0
- package/out/concepts/ForEachStatement__.js +441 -0
- package/out/concepts/ForEachStatement__.js.map +1 -0
- package/out/concepts/Function__.d.ts +411 -0
- package/out/concepts/Function__.js +665 -0
- package/out/concepts/Function__.js.map +1 -0
- package/out/concepts/Identifier__.d.ts +45 -0
- package/out/concepts/Identifier__.js +203 -0
- package/out/concepts/Identifier__.js.map +1 -0
- package/out/concepts/IfStatement__.d.ts +148 -0
- package/out/concepts/IfStatement__.js +280 -0
- package/out/concepts/IfStatement__.js.map +1 -0
- package/out/concepts/InterfaceParam__.d.ts +112 -0
- package/out/concepts/InterfaceParam__.js +311 -0
- package/out/concepts/InterfaceParam__.js.map +1 -0
- package/out/concepts/Interface__.d.ts +268 -0
- package/out/concepts/Interface__.js +599 -0
- package/out/concepts/Interface__.js.map +1 -0
- package/out/concepts/JSBlock__.d.ts +31 -0
- package/out/concepts/JSBlock__.js +90 -0
- package/out/concepts/JSBlock__.js.map +1 -0
- package/out/concepts/LogicItem__.d.ts +117 -0
- package/out/concepts/LogicItem__.js +233 -0
- package/out/concepts/LogicItem__.js.map +1 -0
- package/out/concepts/Logic__.d.ts +616 -0
- package/out/concepts/Logic__.js +1269 -0
- package/out/concepts/Logic__.js.map +1 -0
- package/out/concepts/MemberExpression__.d.ts +65 -0
- package/out/concepts/MemberExpression__.js +238 -0
- package/out/concepts/MemberExpression__.js.map +1 -0
- package/out/concepts/Module__.d.ts +675 -0
- package/out/concepts/Module__.js +914 -0
- package/out/concepts/Module__.js.map +1 -0
- package/out/concepts/Namespace__.d.ts +986 -0
- package/out/concepts/Namespace__.js +1301 -0
- package/out/concepts/Namespace__.js.map +1 -0
- package/out/concepts/NullLiteral__.d.ts +23 -0
- package/out/concepts/NullLiteral__.js +73 -0
- package/out/concepts/NullLiteral__.js.map +1 -0
- package/out/concepts/NumericLiteral__.d.ts +53 -0
- package/out/concepts/NumericLiteral__.js +172 -0
- package/out/concepts/NumericLiteral__.js.map +1 -0
- package/out/concepts/Param__.d.ts +148 -0
- package/out/concepts/Param__.js +372 -0
- package/out/concepts/Param__.js.map +1 -0
- package/out/concepts/Point__.d.ts +30 -0
- package/out/concepts/Point__.js +75 -0
- package/out/concepts/Point__.js.map +1 -0
- package/out/concepts/ProcessComponent__.d.ts +218 -0
- package/out/concepts/ProcessComponent__.js +333 -0
- package/out/concepts/ProcessComponent__.js.map +1 -0
- package/out/concepts/ProcessElement__.d.ts +640 -0
- package/out/concepts/ProcessElement__.js +1128 -0
- package/out/concepts/ProcessElement__.js.map +1 -0
- package/out/concepts/ProcessOutcome__.d.ts +30 -0
- package/out/concepts/ProcessOutcome__.js +87 -0
- package/out/concepts/ProcessOutcome__.js.map +1 -0
- package/out/concepts/Process__.d.ts +544 -0
- package/out/concepts/Process__.js +917 -0
- package/out/concepts/Process__.js.map +1 -0
- package/out/concepts/QueryAggregateExpression__.d.ts +50 -0
- package/out/concepts/QueryAggregateExpression__.js +144 -0
- package/out/concepts/QueryAggregateExpression__.js.map +1 -0
- package/out/concepts/QueryFieldExpression__.d.ts +48 -0
- package/out/concepts/QueryFieldExpression__.js +132 -0
- package/out/concepts/QueryFieldExpression__.js.map +1 -0
- package/out/concepts/QueryFromExpression__.d.ts +95 -0
- package/out/concepts/QueryFromExpression__.js +192 -0
- package/out/concepts/QueryFromExpression__.js.map +1 -0
- package/out/concepts/QueryGroupByExpression__.d.ts +45 -0
- package/out/concepts/QueryGroupByExpression__.js +139 -0
- package/out/concepts/QueryGroupByExpression__.js.map +1 -0
- package/out/concepts/QueryJoinExpression__.d.ts +182 -0
- package/out/concepts/QueryJoinExpression__.js +312 -0
- package/out/concepts/QueryJoinExpression__.js.map +1 -0
- package/out/concepts/QueryLimitExpression__.d.ts +56 -0
- package/out/concepts/QueryLimitExpression__.js +156 -0
- package/out/concepts/QueryLimitExpression__.js.map +1 -0
- package/out/concepts/QueryOrderByExpression__.d.ts +67 -0
- package/out/concepts/QueryOrderByExpression__.js +169 -0
- package/out/concepts/QueryOrderByExpression__.js.map +1 -0
- package/out/concepts/QuerySelectExpression__.d.ts +114 -0
- package/out/concepts/QuerySelectExpression__.js +203 -0
- package/out/concepts/QuerySelectExpression__.js.map +1 -0
- package/out/concepts/Rect__.d.ts +38 -0
- package/out/concepts/Rect__.js +89 -0
- package/out/concepts/Rect__.js.map +1 -0
- package/out/concepts/Return__.d.ts +131 -0
- package/out/concepts/Return__.js +340 -0
- package/out/concepts/Return__.js.map +1 -0
- package/out/concepts/Role__.d.ts +61 -0
- package/out/concepts/Role__.js +164 -0
- package/out/concepts/Role__.js.map +1 -0
- package/out/concepts/Slot__.d.ts +57 -0
- package/out/concepts/Slot__.js +114 -0
- package/out/concepts/Slot__.js.map +1 -0
- package/out/concepts/SqlQueryComponent__.d.ts +64 -0
- package/out/concepts/SqlQueryComponent__.js +180 -0
- package/out/concepts/SqlQueryComponent__.js.map +1 -0
- package/out/concepts/Start__.d.ts +23 -0
- package/out/concepts/Start__.js +71 -0
- package/out/concepts/Start__.js.map +1 -0
- package/out/concepts/StringLiteral__.d.ts +35 -0
- package/out/concepts/StringLiteral__.js +125 -0
- package/out/concepts/StringLiteral__.js.map +1 -0
- package/out/concepts/StructureProperty__.d.ts +124 -0
- package/out/concepts/StructureProperty__.js +324 -0
- package/out/concepts/StructureProperty__.js.map +1 -0
- package/out/concepts/Structure__.d.ts +250 -0
- package/out/concepts/Structure__.js +440 -0
- package/out/concepts/Structure__.js.map +1 -0
- package/out/concepts/SwitchCase__.d.ts +92 -0
- package/out/concepts/SwitchCase__.js +229 -0
- package/out/concepts/SwitchCase__.js.map +1 -0
- package/out/concepts/SwitchStatement__.d.ts +82 -0
- package/out/concepts/SwitchStatement__.js +175 -0
- package/out/concepts/SwitchStatement__.js.map +1 -0
- package/out/concepts/Theme__.d.ts +36 -0
- package/out/concepts/Theme__.js +86 -0
- package/out/concepts/Theme__.js.map +1 -0
- package/out/concepts/Transactional__.d.ts +76 -0
- package/out/concepts/Transactional__.js +151 -0
- package/out/concepts/Transactional__.js.map +1 -0
- package/out/concepts/TypeAnnotation__.d.ts +147 -0
- package/out/concepts/TypeAnnotation__.js +444 -0
- package/out/concepts/TypeAnnotation__.js.map +1 -0
- package/out/concepts/TypeParam__.d.ts +20 -0
- package/out/concepts/TypeParam__.js +57 -0
- package/out/concepts/TypeParam__.js.map +1 -0
- package/out/concepts/UnaryExpression__.d.ts +46 -0
- package/out/concepts/UnaryExpression__.js +166 -0
- package/out/concepts/UnaryExpression__.js.map +1 -0
- package/out/concepts/Unparsed__.d.ts +29 -0
- package/out/concepts/Unparsed__.js +88 -0
- package/out/concepts/Unparsed__.js.map +1 -0
- package/out/concepts/UseComponent__.d.ts +30 -0
- package/out/concepts/UseComponent__.js +75 -0
- package/out/concepts/UseComponent__.js.map +1 -0
- package/out/concepts/ValidationRule__.d.ts +94 -0
- package/out/concepts/ValidationRule__.js +254 -0
- package/out/concepts/ValidationRule__.js.map +1 -0
- package/out/concepts/Variable__.d.ts +130 -0
- package/out/concepts/Variable__.js +338 -0
- package/out/concepts/Variable__.js.map +1 -0
- package/out/concepts/ViewComponent__.d.ts +472 -0
- package/out/concepts/ViewComponent__.js +644 -0
- package/out/concepts/ViewComponent__.js.map +1 -0
- package/out/concepts/ViewElement__.d.ts +490 -0
- package/out/concepts/ViewElement__.js +1413 -0
- package/out/concepts/ViewElement__.js.map +1 -0
- package/out/concepts/View__.d.ts +692 -0
- package/out/concepts/View__.js +1397 -0
- package/out/concepts/View__.js.map +1 -0
- package/out/concepts/WhileStatement__.d.ts +95 -0
- package/out/concepts/WhileStatement__.js +208 -0
- package/out/concepts/WhileStatement__.js.map +1 -0
- package/out/concepts/basics/stdlib/index.d.ts +4 -0
- package/out/concepts/basics/stdlib/index.js +26 -0
- package/out/concepts/basics/stdlib/index.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.auth.d.ts +3 -0
- package/out/concepts/basics/stdlib/nasl.auth.js +50 -0
- package/out/concepts/basics/stdlib/nasl.auth.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.browser.d.ts +3 -0
- package/out/concepts/basics/stdlib/nasl.browser.js +41 -0
- package/out/concepts/basics/stdlib/nasl.browser.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.collection.d.ts +7 -0
- package/out/concepts/basics/stdlib/nasl.collection.js +83 -0
- package/out/concepts/basics/stdlib/nasl.collection.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.configuration.d.ts +3 -0
- package/out/concepts/basics/stdlib/nasl.configuration.js +25 -0
- package/out/concepts/basics/stdlib/nasl.configuration.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.core.d.ts +3 -0
- package/out/concepts/basics/stdlib/nasl.core.js +15 -0
- package/out/concepts/basics/stdlib/nasl.core.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.interface.d.ts +7 -0
- package/out/concepts/basics/stdlib/nasl.interface.js +43 -0
- package/out/concepts/basics/stdlib/nasl.interface.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.process.d.ts +7 -0
- package/out/concepts/basics/stdlib/nasl.process.js +453 -0
- package/out/concepts/basics/stdlib/nasl.process.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.ui.d.ts +7 -0
- package/out/concepts/basics/stdlib/nasl.ui.js +828 -0
- package/out/concepts/basics/stdlib/nasl.ui.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.util.d.ts +3 -0
- package/out/concepts/basics/stdlib/nasl.util.js +1030 -0
- package/out/concepts/basics/stdlib/nasl.util.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.validation.d.ts +3 -0
- package/out/concepts/basics/stdlib/nasl.validation.js +561 -0
- package/out/concepts/basics/stdlib/nasl.validation.js.map +1 -0
- package/out/concepts/basics/stdlib/reference2TypeAnnotationList.d.ts +5 -0
- package/out/concepts/basics/stdlib/reference2TypeAnnotationList.js +26 -0
- package/out/concepts/basics/stdlib/reference2TypeAnnotationList.js.map +1 -0
- package/out/concepts/basics/types/coreTypeList.d.ts +2 -0
- package/out/concepts/basics/types/coreTypeList.js +19 -0
- package/out/concepts/basics/types/coreTypeList.js.map +1 -0
- package/out/concepts/basics/types/index.d.ts +13 -0
- package/out/concepts/basics/types/index.js +27 -0
- package/out/concepts/basics/types/index.js.map +1 -0
- package/out/concepts/index.d.ts +5 -0
- package/out/concepts/index.js +24 -0
- package/out/concepts/index.js.map +1 -0
- package/out/concepts/index__.d.ts +83 -0
- package/out/concepts/index__.js +100 -0
- package/out/concepts/index__.js.map +1 -0
- package/out/config.d.ts +42 -0
- package/out/config.js +71 -0
- package/out/config.js.map +1 -0
- package/out/decorators/index.d.ts +54 -0
- package/out/decorators/index.js +149 -0
- package/out/decorators/index.js.map +1 -0
- package/out/enums/KEYWORDS.d.ts +3 -0
- package/out/enums/KEYWORDS.js +1202 -0
- package/out/enums/KEYWORDS.js.map +1 -0
- package/out/enums/LEVEL_NAME_MAP.d.ts +26 -0
- package/out/enums/LEVEL_NAME_MAP.js +30 -0
- package/out/enums/LEVEL_NAME_MAP.js.map +1 -0
- package/out/eventBus.d.ts +3 -0
- package/out/eventBus.js +7 -0
- package/out/eventBus.js.map +1 -0
- package/out/generator/compileComponent.d.ts +11 -0
- package/out/generator/compileComponent.js +12 -0
- package/out/generator/compileComponent.js.map +1 -0
- package/out/generator/genBundleFiles.d.ts +44 -0
- package/out/generator/genBundleFiles.js +387 -0
- package/out/generator/genBundleFiles.js.map +1 -0
- package/out/generator/genHash.d.ts +7 -0
- package/out/generator/genHash.js +39 -0
- package/out/generator/genHash.js.map +1 -0
- package/out/generator/genMetaData.d.ts +36 -0
- package/out/generator/genMetaData.js +121 -0
- package/out/generator/genMetaData.js.map +1 -0
- package/out/generator/index.d.ts +5 -0
- package/out/generator/index.js +22 -0
- package/out/generator/index.js.map +1 -0
- package/out/generator/styleReplacer.d.ts +3 -0
- package/out/generator/styleReplacer.js +71 -0
- package/out/generator/styleReplacer.js.map +1 -0
- package/out/index.d.ts +11 -0
- package/out/index.js +53 -0
- package/out/index.js.map +1 -0
- package/out/manager/diagnostic.d.ts +38 -0
- package/out/manager/diagnostic.js +84 -0
- package/out/manager/diagnostic.js.map +1 -0
- package/out/manager/history.d.ts +0 -0
- package/out/manager/history.js +1 -0
- package/out/manager/history.js.map +1 -0
- package/out/manager/problem.d.ts +0 -0
- package/out/manager/problem.js +1 -0
- package/out/manager/problem.js.map +1 -0
- package/out/server/createUiTs.d.ts +17 -0
- package/out/server/createUiTs.js +231 -0
- package/out/server/createUiTs.js.map +1 -0
- package/out/server/entity2LogicNamespace.d.ts +10 -0
- package/out/server/entity2LogicNamespace.js +217 -0
- package/out/server/entity2LogicNamespace.js.map +1 -0
- package/out/server/extendBaseNode.d.ts +1 -0
- package/out/server/extendBaseNode.js +323 -0
- package/out/server/extendBaseNode.js.map +1 -0
- package/out/server/getExtensionModules.d.ts +3 -0
- package/out/server/getExtensionModules.js +20 -0
- package/out/server/getExtensionModules.js.map +1 -0
- package/out/server/getFunctions.d.ts +3 -0
- package/out/server/getFunctions.js +20 -0
- package/out/server/getFunctions.js.map +1 -0
- package/out/server/getInterfaces.d.ts +2 -0
- package/out/server/getInterfaces.js +48 -0
- package/out/server/getInterfaces.js.map +1 -0
- package/out/server/getLogics.d.ts +3 -0
- package/out/server/getLogics.js +210 -0
- package/out/server/getLogics.js.map +1 -0
- package/out/server/getMemberIdentifier.d.ts +38 -0
- package/out/server/getMemberIdentifier.js +557 -0
- package/out/server/getMemberIdentifier.js.map +1 -0
- package/out/server/getProcessComponents.d.ts +2 -0
- package/out/server/getProcessComponents.js +13 -0
- package/out/server/getProcessComponents.js.map +1 -0
- package/out/server/getProcesses.d.ts +33 -0
- package/out/server/getProcesses.js +566 -0
- package/out/server/getProcesses.js.map +1 -0
- package/out/server/getScope.d.ts +13 -0
- package/out/server/getScope.js +61 -0
- package/out/server/getScope.js.map +1 -0
- package/out/server/getValidates.d.ts +3 -0
- package/out/server/getValidates.js +14 -0
- package/out/server/getValidates.js.map +1 -0
- package/out/server/index.d.ts +3 -0
- package/out/server/index.js +36 -0
- package/out/server/index.js.map +1 -0
- package/out/server/naslServer.d.ts +142 -0
- package/out/server/naslServer.js +1768 -0
- package/out/server/naslServer.js.map +1 -0
- package/out/server/process2LogicNamespace.d.ts +26 -0
- package/out/server/process2LogicNamespace.js +97 -0
- package/out/server/process2LogicNamespace.js.map +1 -0
- package/out/server/translator.d.ts +24 -0
- package/out/server/translator.js +474 -0
- package/out/server/translator.js.map +1 -0
- package/out/service/creator/add.configs.d.ts +1 -0
- package/out/service/creator/add.configs.js +68 -0
- package/out/service/creator/add.configs.js.map +1 -0
- package/out/service/creator/errHandles.d.ts +18 -0
- package/out/service/creator/errHandles.js +65 -0
- package/out/service/creator/errHandles.js.map +1 -0
- package/out/service/creator/index.d.ts +1 -0
- package/out/service/creator/index.js +72 -0
- package/out/service/creator/index.js.map +1 -0
- package/out/service/storage/api.d.ts +18 -0
- package/out/service/storage/api.js +17 -0
- package/out/service/storage/api.js.map +1 -0
- package/out/service/storage/index.d.ts +2 -0
- package/out/service/storage/index.js +10 -0
- package/out/service/storage/index.js.map +1 -0
- package/out/service/storage/init.d.ts +13 -0
- package/out/service/storage/init.js +469 -0
- package/out/service/storage/init.js.map +1 -0
- package/out/service/storage/jsoner.d.ts +29 -0
- package/out/service/storage/jsoner.js +130 -0
- package/out/service/storage/jsoner.js.map +1 -0
- package/out/service/storage/map.d.ts +4 -0
- package/out/service/storage/map.js +54 -0
- package/out/service/storage/map.js.map +1 -0
- package/out/service/storage/service.d.ts +2 -0
- package/out/service/storage/service.js +10 -0
- package/out/service/storage/service.js.map +1 -0
- package/out/service/storage/storagePoint.d.ts +17 -0
- package/out/service/storage/storagePoint.js +76 -0
- package/out/service/storage/storagePoint.js.map +1 -0
- package/out/templator/genCallComponentLogic.d.ts +17 -0
- package/out/templator/genCallComponentLogic.js +30 -0
- package/out/templator/genCallComponentLogic.js.map +1 -0
- package/out/templator/genCreateBlock.d.ts +10 -0
- package/out/templator/genCreateBlock.js +333 -0
- package/out/templator/genCreateBlock.js.map +1 -0
- package/out/templator/genCurdEditMultipleKeyBlock.d.ts +2 -0
- package/out/templator/genCurdEditMultipleKeyBlock.js +483 -0
- package/out/templator/genCurdEditMultipleKeyBlock.js.map +1 -0
- package/out/templator/genCurdMultipleKeyBlock.d.ts +14 -0
- package/out/templator/genCurdMultipleKeyBlock.js +688 -0
- package/out/templator/genCurdMultipleKeyBlock.js.map +1 -0
- package/out/templator/genEditTableBlock.d.ts +51 -0
- package/out/templator/genEditTableBlock.js +278 -0
- package/out/templator/genEditTableBlock.js.map +1 -0
- package/out/templator/genEnumSelectBlock.d.ts +10 -0
- package/out/templator/genEnumSelectBlock.js +23 -0
- package/out/templator/genEnumSelectBlock.js.map +1 -0
- package/out/templator/genGetBlock.d.ts +6 -0
- package/out/templator/genGetBlock.js +135 -0
- package/out/templator/genGetBlock.js.map +1 -0
- package/out/templator/genGridViewBlock.d.ts +55 -0
- package/out/templator/genGridViewBlock.js +354 -0
- package/out/templator/genGridViewBlock.js.map +1 -0
- package/out/templator/genListViewBlock.d.ts +19 -0
- package/out/templator/genListViewBlock.js +141 -0
- package/out/templator/genListViewBlock.js.map +1 -0
- package/out/templator/genQueryComponent.d.ts +34 -0
- package/out/templator/genQueryComponent.js +322 -0
- package/out/templator/genQueryComponent.js.map +1 -0
- package/out/templator/genSelectBlock.d.ts +34 -0
- package/out/templator/genSelectBlock.js +143 -0
- package/out/templator/genSelectBlock.js.map +1 -0
- package/out/templator/genTableBlock.d.ts +53 -0
- package/out/templator/genTableBlock.js +291 -0
- package/out/templator/genTableBlock.js.map +1 -0
- package/out/templator/genUpdateBlock.d.ts +6 -0
- package/out/templator/genUpdateBlock.js +374 -0
- package/out/templator/genUpdateBlock.js.map +1 -0
- package/out/templator/index.d.ts +16 -0
- package/out/templator/index.js +34 -0
- package/out/templator/index.js.map +1 -0
- package/out/templator/utils.d.ts +653 -0
- package/out/templator/utils.js +427 -0
- package/out/templator/utils.js.map +1 -0
- package/out/test/fixtures/env.d.ts +5 -0
- package/out/test/fixtures/env.js +20 -0
- package/out/test/fixtures/env.js.map +1 -0
- package/out/test/integration/connect-create-file.d.ts +1 -0
- package/out/test/integration/connect-create-file.js +39 -0
- package/out/test/integration/connect-create-file.js.map +1 -0
- package/out/test/integration/connect-file.d.ts +1 -0
- package/out/test/integration/connect-file.js +49 -0
- package/out/test/integration/connect-file.js.map +1 -0
- package/out/test/units/baseTypes/Assignment.spec.d.ts +1 -0
- package/out/test/units/baseTypes/Assignment.spec.js +43 -0
- package/out/test/units/baseTypes/Assignment.spec.js.map +1 -0
- package/out/test/units/baseTypes/CallLogic.spec.d.ts +1 -0
- package/out/test/units/baseTypes/CallLogic.spec.js +44 -0
- package/out/test/units/baseTypes/CallLogic.spec.js.map +1 -0
- package/out/test/units/baseTypes/StringLiteral.spec.d.ts +1 -0
- package/out/test/units/baseTypes/StringLiteral.spec.js +75 -0
- package/out/test/units/baseTypes/StringLiteral.spec.js.map +1 -0
- package/out/test/units/baseTypes/new.spec.d.ts +1 -0
- package/out/test/units/baseTypes/new.spec.js +37 -0
- package/out/test/units/baseTypes/new.spec.js.map +1 -0
- package/out/test/units/common/Vertex.spec.d.ts +1 -0
- package/out/test/units/common/Vertex.spec.js +22 -0
- package/out/test/units/common/Vertex.spec.js.map +1 -0
- package/out/test/units/data/Entity.spec.d.ts +1 -0
- package/out/test/units/data/Entity.spec.js +12 -0
- package/out/test/units/data/Entity.spec.js.map +1 -0
- package/out/test/units/login.spec.d.ts +1 -0
- package/out/test/units/login.spec.js +12 -0
- package/out/test/units/login.spec.js.map +1 -0
- package/out/test/units/page/Block.spec.d.ts +0 -0
- package/out/test/units/page/Block.spec.js +13 -0
- package/out/test/units/page/Block.spec.js.map +1 -0
- package/out/test/units/page/Element.spec.d.ts +1 -0
- package/out/test/units/page/Element.spec.js +44 -0
- package/out/test/units/page/Element.spec.js.map +1 -0
- package/out/test/units/temp/temp.spec.d.ts +1 -0
- package/out/test/units/temp/temp.spec.js +68 -0
- package/out/test/units/temp/temp.spec.js.map +1 -0
- package/out/translator/index.d.ts +47 -0
- package/out/translator/index.js +108 -0
- package/out/translator/index.js.map +1 -0
- package/out/translator/lsp.d.ts +45 -0
- package/out/translator/lsp.js +6 -0
- package/out/translator/lsp.js.map +1 -0
- package/out/translator/tsp.d.ts +12 -0
- package/out/translator/tsp.js +3 -0
- package/out/translator/tsp.js.map +1 -0
- package/out/utils/index.d.ts +37 -0
- package/out/utils/index.js +125 -0
- package/out/utils/index.js.map +1 -0
- package/out/utils/logger.d.ts +3 -0
- package/out/utils/logger.js +11 -0
- package/out/utils/logger.js.map +1 -0
- package/out/utils/string.d.ts +38 -0
- package/out/utils/string.js +95 -0
- package/out/utils/string.js.map +1 -0
- package/out/utils/traverse.d.ts +36 -0
- package/out/utils/traverse.js +132 -0
- package/out/utils/traverse.js.map +1 -0
- package/package.json +1 -1
- package/src/concepts/BindEvent__.ts +15 -7
- package/src/concepts/Logic__.ts +2 -1
- package/src/concepts/Process__.ts +1 -1
- package/src/concepts/View__.ts +2 -2
- package/src/server/getProcesses.ts +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KEYWORDS.js","sourceRoot":"","sources":["../../src/enums/KEYWORDS.ts"],"names":[],"mappings":";;;AAAa,QAAA,QAAQ,GAAG;IACpB,UAAU;IACV,YAAY;IACZ,KAAK;IACL,KAAK;IACL,MAAM;IACN,WAAW;IACX,IAAI;IACJ,QAAQ;IACR,MAAM;IACN,OAAO;IACP,MAAM;IACN,gBAAgB;IAChB,eAAe;IACf,OAAO;IACP,SAAS;IACT,OAAO;IACP,SAAS;IACT,IAAI;IACJ,MAAM;IACN,MAAM;IACN,OAAO;IACP,OAAO;IACP,MAAM;IACN,OAAO;IAC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AAS;IACT,MAAM;IACN,OAAO;IACP,QAAQ;IACR,SAAS;IACT,YAAY;IACZ,WAAW;IACX,OAAO;IACP,MAAM;IACN,MAAM;IACN,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,MAAM;IACN,MAAM;IACN,YAAY;IACZ,QAAQ;IACR,WAAW;IACX,OAAO;IACP,SAAS;IACT,KAAK;IACL,OAAO;IACP,KAAK;IACL,MAAM;IACN,OAAO;IACP,WAAW;IACX,QAAQ;IACR,MAAM;IACN,OAAO;IACP,SAAS;IACT,MAAM;IACN,UAAU;IACV,UAAU;IACV,OAAO;IACP,OAAO;IACP,QAAQ;IACR,OAAO;IACP,OAAO;IACP,OAAO;IACP,MAAM;IACN,OAAO;IACP,OAAO;IACP,OAAO;IACP,aAAa;IACb,UAAU;IACV,UAAU;IACV,SAAS;IACT,QAAQ;IACR,IAAI;IACJ,MAAM;IACN,MAAM;IACN,QAAQ;IACR,SAAS;IACT,OAAO;IACP,SAAS;IACT,KAAK;IACL,UAAU;IACV,IAAI;IACJ,QAAQ;IACR,IAAI;IACJ,YAAY;IACZ,KAAK;IACL,MAAM;IACN,QAAQ;IACR,OAAO;IACP,QAAQ;IACR,MAAM;IACN,OAAO;IACP,MAAM;IACN,KAAK;IACL,QAAQ;IACR,KAAK;IACL,MAAM;IACN,OAAO;IACP,MAAM;IACN,YAAY;IACZ,WAAW;IACX,KAAK;IACL,SAAS;IACT,SAAS;IACT,WAAW;IACX,QAAQ;IACR,QAAQ;IACR,OAAO;CACV,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare const LEVEL_NAME_MAP: {
|
|
2
|
+
app: string;
|
|
3
|
+
service: string;
|
|
4
|
+
page: string;
|
|
5
|
+
view: string;
|
|
6
|
+
block: string;
|
|
7
|
+
logic: string;
|
|
8
|
+
param: string;
|
|
9
|
+
timer: string;
|
|
10
|
+
variable: string;
|
|
11
|
+
return: string;
|
|
12
|
+
interface: string;
|
|
13
|
+
dataNode: string;
|
|
14
|
+
entity: string;
|
|
15
|
+
structure: string;
|
|
16
|
+
enum: string;
|
|
17
|
+
enumItem: string;
|
|
18
|
+
property: string;
|
|
19
|
+
element: string;
|
|
20
|
+
attr: string;
|
|
21
|
+
event: string;
|
|
22
|
+
directive: string;
|
|
23
|
+
logicItem: string;
|
|
24
|
+
logicNode: string;
|
|
25
|
+
expressionNode: string;
|
|
26
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LEVEL_NAME_MAP = void 0;
|
|
4
|
+
exports.LEVEL_NAME_MAP = {
|
|
5
|
+
app: '应用',
|
|
6
|
+
service: '服务',
|
|
7
|
+
page: '页面',
|
|
8
|
+
view: '子页面',
|
|
9
|
+
block: '区块',
|
|
10
|
+
logic: '逻辑',
|
|
11
|
+
param: '输入参数',
|
|
12
|
+
timer: '定时任务',
|
|
13
|
+
variable: '局部变量',
|
|
14
|
+
return: '输出参数',
|
|
15
|
+
interface: '接口',
|
|
16
|
+
dataNode: '数据',
|
|
17
|
+
entity: '实体',
|
|
18
|
+
structure: '数据结构',
|
|
19
|
+
enum: '枚举',
|
|
20
|
+
enumItem: '枚举项',
|
|
21
|
+
property: '属性',
|
|
22
|
+
element: '元素',
|
|
23
|
+
attr: '属性',
|
|
24
|
+
event: '事件',
|
|
25
|
+
directive: '指令',
|
|
26
|
+
logicItem: '逻辑项',
|
|
27
|
+
logicNode: '逻辑节点',
|
|
28
|
+
expressionNode: '表达式节点',
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=LEVEL_NAME_MAP.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LEVEL_NAME_MAP.js","sourceRoot":"","sources":["../../src/enums/LEVEL_NAME_MAP.ts"],"names":[],"mappings":";;;AAAa,QAAA,cAAc,GAAG;IAC1B,GAAG,EAAE,IAAI;IACT,OAAO,EAAE,IAAI;IAEb,IAAI,EAAE,IAAI;IACV,IAAI,EAAE,KAAK;IACX,KAAK,EAAE,IAAI;IAEX,KAAK,EAAE,IAAI;IACX,KAAK,EAAE,MAAM;IACb,KAAK,EAAE,MAAM;IACb,QAAQ,EAAE,MAAM;IAChB,MAAM,EAAE,MAAM;IACd,SAAS,EAAE,IAAI;IAEf,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,IAAI;IACV,QAAQ,EAAE,KAAK;IACf,QAAQ,EAAE,IAAI;IAEd,OAAO,EAAE,IAAI;IACb,IAAI,EAAE,IAAI;IACV,KAAK,EAAE,IAAI;IACX,SAAS,EAAE,IAAI;IAEf,SAAS,EAAE,KAAK;IAChB,SAAS,EAAE,MAAM;IACjB,cAAc,EAAE,OAAO;CAC1B,CAAC"}
|
package/out/eventBus.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.eventBus = void 0;
|
|
4
|
+
const EventEmitter_1 = require("./common/EventEmitter");
|
|
5
|
+
exports.eventBus = new EventEmitter_1.EventEmitter();
|
|
6
|
+
exports.default = exports.eventBus;
|
|
7
|
+
//# sourceMappingURL=eventBus.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eventBus.js","sourceRoot":"","sources":["../src/eventBus.ts"],"names":[],"mappings":";;;AAAA,wDAAqD;AAExC,QAAA,QAAQ,GAAG,IAAI,2BAAY,EAAE,CAAC;AAE3C,kBAAe,gBAAQ,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface RawOptions {
|
|
2
|
+
filePath?: string;
|
|
3
|
+
path?: string;
|
|
4
|
+
hash?: string;
|
|
5
|
+
template?: string;
|
|
6
|
+
script?: string;
|
|
7
|
+
style?: string;
|
|
8
|
+
definition?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function compileComponent(options: RawOptions): RawOptions;
|
|
11
|
+
export default compileComponent;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.compileComponent = void 0;
|
|
4
|
+
const styleReplacer_1 = require("./styleReplacer");
|
|
5
|
+
function compileComponent(options) {
|
|
6
|
+
options.template = options.template && (0, styleReplacer_1.replaceTemplate)(options.template, options.hash);
|
|
7
|
+
options.style = options.style && (0, styleReplacer_1.replaceCSS)(options.style, options.hash);
|
|
8
|
+
return options;
|
|
9
|
+
}
|
|
10
|
+
exports.compileComponent = compileComponent;
|
|
11
|
+
exports.default = compileComponent;
|
|
12
|
+
//# sourceMappingURL=compileComponent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compileComponent.js","sourceRoot":"","sources":["../../src/generator/compileComponent.ts"],"names":[],"mappings":";;;AAAA,mDAA8D;AAY9D,SAAgB,gBAAgB,CAAC,OAAmB;IAChD,OAAO,CAAC,QAAQ,GAAG,OAAO,CAAC,QAAQ,IAAI,IAAA,+BAAe,EAAC,OAAO,CAAC,QAAQ,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;IACvF,OAAO,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,IAAI,IAAA,0BAAU,EAAC,OAAO,CAAC,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;IACzE,OAAO,OAAO,CAAC;AACnB,CAAC;AAJD,4CAIC;AAED,kBAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { App } from '../concepts';
|
|
2
|
+
import { RawOptions } from '.';
|
|
3
|
+
export interface Route {
|
|
4
|
+
path?: string;
|
|
5
|
+
routePath?: string;
|
|
6
|
+
component?: RawOptions;
|
|
7
|
+
children?: Array<Route>;
|
|
8
|
+
}
|
|
9
|
+
export interface PageOptions {
|
|
10
|
+
title: string;
|
|
11
|
+
name: string;
|
|
12
|
+
project: string;
|
|
13
|
+
hasUserCenter: boolean;
|
|
14
|
+
hasAuth: boolean;
|
|
15
|
+
domainName: string;
|
|
16
|
+
auth: boolean;
|
|
17
|
+
subPage: object;
|
|
18
|
+
documentTitle?: string;
|
|
19
|
+
router: {
|
|
20
|
+
notFound: string;
|
|
21
|
+
middleware: string[];
|
|
22
|
+
effect: string[];
|
|
23
|
+
tipMessage: string;
|
|
24
|
+
unauthorized: string;
|
|
25
|
+
noLogin: string;
|
|
26
|
+
base: string;
|
|
27
|
+
};
|
|
28
|
+
rootRoute?: Route;
|
|
29
|
+
}
|
|
30
|
+
export declare function genBundleFiles(app: App, config: {
|
|
31
|
+
tenant: string;
|
|
32
|
+
env: string;
|
|
33
|
+
nuimsDomain: string;
|
|
34
|
+
STATIC_URL: string;
|
|
35
|
+
USER_STATIC_URL: string;
|
|
36
|
+
extendedConfig: string;
|
|
37
|
+
lowcodeDomain: string;
|
|
38
|
+
envLcpDomain: any;
|
|
39
|
+
envNuimsDomain: any;
|
|
40
|
+
appid: string;
|
|
41
|
+
}): Promise<{
|
|
42
|
+
name: string;
|
|
43
|
+
content: string;
|
|
44
|
+
}[]>;
|
|
@@ -0,0 +1,387 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.genBundleFiles = void 0;
|
|
27
|
+
const concepts_1 = require("../concepts");
|
|
28
|
+
const utils = __importStar(require("../utils"));
|
|
29
|
+
const _1 = require(".");
|
|
30
|
+
const compileComponent_1 = require("./compileComponent");
|
|
31
|
+
const lodash_1 = require("lodash");
|
|
32
|
+
const JSON5 = __importStar(require("json5"));
|
|
33
|
+
async function genBundleFiles(app, config) {
|
|
34
|
+
const fnNuimsDomain = config?.envNuimsDomain?.[config?.env] || config?.nuimsDomain;
|
|
35
|
+
const fnLowcodeDomain = config?.envLcpDomain?.[config?.env]?.lcpDomain || config?.lowcodeDomain;
|
|
36
|
+
const modules = [];
|
|
37
|
+
const views = [];
|
|
38
|
+
const entities = [];
|
|
39
|
+
const structures = [];
|
|
40
|
+
const enums = [];
|
|
41
|
+
const logics = [];
|
|
42
|
+
const interfaces = [];
|
|
43
|
+
const processes = [];
|
|
44
|
+
app.views && views.push(...app.views);
|
|
45
|
+
if (Array.isArray(app.dataSources)) {
|
|
46
|
+
app.dataSources.forEach((dataSource) => {
|
|
47
|
+
if (Array.isArray(dataSource.entities)) {
|
|
48
|
+
entities.push(...dataSource.entities);
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
app.structures && structures.push(...app.structures);
|
|
53
|
+
app.enums && enums.push(...app.enums);
|
|
54
|
+
app.logics && logics.push(...app.logics);
|
|
55
|
+
app.processes && processes.push(...app.processes);
|
|
56
|
+
app.dependencies && modules.push(...app.dependencies);
|
|
57
|
+
app.interfaceDependencies && modules.push(...app.interfaceDependencies);
|
|
58
|
+
modules.forEach((module) => {
|
|
59
|
+
module.views && views.push(...module.views);
|
|
60
|
+
module.structures && structures.push(...module.structures);
|
|
61
|
+
module.enums && enums.push(...module.enums);
|
|
62
|
+
module.logics && logics.push(...module.logics);
|
|
63
|
+
module.interfaces && interfaces.push(...module.interfaces);
|
|
64
|
+
});
|
|
65
|
+
const componentMap = {};
|
|
66
|
+
utils.traverse((current) => {
|
|
67
|
+
if (current.node.toVueOptions)
|
|
68
|
+
componentMap[current.node.id] = current.node.toVueOptions();
|
|
69
|
+
}, {
|
|
70
|
+
node: {
|
|
71
|
+
children: views,
|
|
72
|
+
},
|
|
73
|
+
});
|
|
74
|
+
/**
|
|
75
|
+
* vue.config.js page options
|
|
76
|
+
*/
|
|
77
|
+
const pages = {};
|
|
78
|
+
let indexName = 'index';
|
|
79
|
+
const dataTypes = [];
|
|
80
|
+
const dataTypesMap = {};
|
|
81
|
+
const enumsMap = {};
|
|
82
|
+
const logicsMap = {};
|
|
83
|
+
const _custom = {};
|
|
84
|
+
const allLogics = [];
|
|
85
|
+
// 页面
|
|
86
|
+
views.forEach((view) => {
|
|
87
|
+
if (view.isIndex) {
|
|
88
|
+
indexName = view.name;
|
|
89
|
+
}
|
|
90
|
+
pages[view.name] = {
|
|
91
|
+
title: view.title,
|
|
92
|
+
name: view.name,
|
|
93
|
+
project: app.name,
|
|
94
|
+
hasUserCenter: app.hasUserCenter,
|
|
95
|
+
hasAuth: app.hasAuth,
|
|
96
|
+
domainName: app.name,
|
|
97
|
+
auth: view.auth,
|
|
98
|
+
subPage: view.children,
|
|
99
|
+
documentTitle: app.documentTitle,
|
|
100
|
+
router: {
|
|
101
|
+
notFound: '/',
|
|
102
|
+
middleware: ['first', 'lock', 'auth', 'login'],
|
|
103
|
+
effect: ['title'],
|
|
104
|
+
tipMessage: '没有访问该页面的权限',
|
|
105
|
+
unauthorized: '/',
|
|
106
|
+
noLogin: 'noLoginFunction',
|
|
107
|
+
base: '/' + view.name,
|
|
108
|
+
},
|
|
109
|
+
};
|
|
110
|
+
const wrapper = {
|
|
111
|
+
rootRoute: null,
|
|
112
|
+
};
|
|
113
|
+
utils.traverse((current) => {
|
|
114
|
+
const node = current.node;
|
|
115
|
+
const route = {
|
|
116
|
+
path: current.node === view ? '/' : node.name,
|
|
117
|
+
component: (0, compileComponent_1.compileComponent)(componentMap[node.id]),
|
|
118
|
+
children: [],
|
|
119
|
+
};
|
|
120
|
+
let jsonPath = 'rootRoute';
|
|
121
|
+
if (current.jsonPath)
|
|
122
|
+
jsonPath = 'rootRoute.' + current.jsonPath;
|
|
123
|
+
(0, lodash_1.set)(wrapper, jsonPath, route);
|
|
124
|
+
}, {
|
|
125
|
+
node: view,
|
|
126
|
+
});
|
|
127
|
+
pages[view.name].rootRoute = wrapper.rootRoute;
|
|
128
|
+
});
|
|
129
|
+
if (Array.isArray(enums)) {
|
|
130
|
+
dataTypes.push(...enums);
|
|
131
|
+
enums.forEach((node) => {
|
|
132
|
+
const { name, enumItems } = node || {};
|
|
133
|
+
const enumObj = {};
|
|
134
|
+
enumItems.forEach(({ label, value }) => {
|
|
135
|
+
enumObj[value] = label;
|
|
136
|
+
});
|
|
137
|
+
enumsMap[name] = enumObj;
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
if (Array.isArray(entities)) {
|
|
141
|
+
dataTypes.push(...entities);
|
|
142
|
+
entities.forEach((entity) => {
|
|
143
|
+
const ns = entity.ns;
|
|
144
|
+
if (Array.isArray(ns?.logics)) {
|
|
145
|
+
allLogics.push(...ns.logics);
|
|
146
|
+
}
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
if (Array.isArray(structures)) {
|
|
150
|
+
dataTypes.push(...structures);
|
|
151
|
+
}
|
|
152
|
+
dataTypes.forEach((node) => {
|
|
153
|
+
const namespace = node.getNamespace();
|
|
154
|
+
const id = `${namespace}.${node.name}`;
|
|
155
|
+
dataTypesMap[id] = node;
|
|
156
|
+
});
|
|
157
|
+
if (Array.isArray(concepts_1.uiStructures)) {
|
|
158
|
+
const namespace = 'nasl.ui';
|
|
159
|
+
concepts_1.uiStructures.forEach((node) => {
|
|
160
|
+
const id = `${namespace}.${node.name}`;
|
|
161
|
+
dataTypesMap[id] = node;
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
if (Array.isArray(concepts_1.collectionStructures)) {
|
|
165
|
+
const namespace = 'nasl.collection';
|
|
166
|
+
concepts_1.collectionStructures.forEach((node) => {
|
|
167
|
+
const id = `${namespace}.${node.name}`;
|
|
168
|
+
dataTypesMap[id] = node;
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
if (Array.isArray(concepts_1.processStructures)) {
|
|
172
|
+
const namespace = 'nasl.process';
|
|
173
|
+
concepts_1.processStructures.forEach((node) => {
|
|
174
|
+
const id = `${namespace}.${node.name}`;
|
|
175
|
+
dataTypesMap[id] = node;
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
if (Array.isArray(logics)) {
|
|
179
|
+
allLogics.push(...logics);
|
|
180
|
+
}
|
|
181
|
+
allLogics.forEach((node) => {
|
|
182
|
+
const namespace = node.getNamespace();
|
|
183
|
+
const id = namespace ? `${namespace}.${node.name}` : node.name;
|
|
184
|
+
logicsMap[id] = node.toService();
|
|
185
|
+
});
|
|
186
|
+
processes.forEach((process) => {
|
|
187
|
+
if (Array.isArray(process.logics)) {
|
|
188
|
+
process.logics.forEach((node) => {
|
|
189
|
+
const namespace = node.getNamespace();
|
|
190
|
+
const id = namespace ? `${namespace}.${node.name}` : node.name;
|
|
191
|
+
logicsMap[id] = node.toProcessService();
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
});
|
|
195
|
+
interfaces.forEach((interfaceItem) => {
|
|
196
|
+
_custom[`${interfaceItem.getNamespace()}.${interfaceItem.name}`] = interfaceItem.toService();
|
|
197
|
+
});
|
|
198
|
+
const data = JSON5.stringify({
|
|
199
|
+
// pages,
|
|
200
|
+
metaData: {
|
|
201
|
+
dataTypesMap,
|
|
202
|
+
enumsMap,
|
|
203
|
+
logicsMap,
|
|
204
|
+
servicesMap: {
|
|
205
|
+
_custom,
|
|
206
|
+
},
|
|
207
|
+
},
|
|
208
|
+
extendedConfig: config.extendedConfig,
|
|
209
|
+
lowcodeDomain: fnLowcodeDomain,
|
|
210
|
+
tenant: config.tenant,
|
|
211
|
+
env: config.env,
|
|
212
|
+
nuimsDomain: fnNuimsDomain,
|
|
213
|
+
envNuimsDomain: config.envNuimsDomain,
|
|
214
|
+
indexName,
|
|
215
|
+
}, null, 4);
|
|
216
|
+
const assetsInfo = app.genAllAssetsInfo(config.STATIC_URL);
|
|
217
|
+
// console.log(assetsInfo);
|
|
218
|
+
// debugger;
|
|
219
|
+
const customNames = JSON5.stringify(assetsInfo.custom.names);
|
|
220
|
+
let content = `(function(){
|
|
221
|
+
`;
|
|
222
|
+
const themeCSS = await app.genThemeCSS();
|
|
223
|
+
if (themeCSS) {
|
|
224
|
+
content += `{
|
|
225
|
+
const el = document.createElement('style');
|
|
226
|
+
el.id = 'theme';
|
|
227
|
+
el.innerHTML = \`${themeCSS}\`;
|
|
228
|
+
document.head.appendChild(el);
|
|
229
|
+
}
|
|
230
|
+
`;
|
|
231
|
+
}
|
|
232
|
+
if (app.documentIcon) {
|
|
233
|
+
content += `{
|
|
234
|
+
const link = document.createElement('link');
|
|
235
|
+
link.rel = 'shortcut icon';
|
|
236
|
+
link.href = \`${app.documentIcon}\`;
|
|
237
|
+
document.head.appendChild(link);
|
|
238
|
+
}`;
|
|
239
|
+
}
|
|
240
|
+
content += `
|
|
241
|
+
var customNames = ${customNames};
|
|
242
|
+
for(var i=0;i<customNames.length;i++){
|
|
243
|
+
var name = window.kebab2Camel(customNames[i]);
|
|
244
|
+
if(window[name]){
|
|
245
|
+
window.CloudUI.install(window.Vue, window[name]);
|
|
246
|
+
}
|
|
247
|
+
}`;
|
|
248
|
+
function routeToString(route) {
|
|
249
|
+
return `{
|
|
250
|
+
path: '${route.path}',
|
|
251
|
+
component: (function(){
|
|
252
|
+
var componentOptions = ${route.component.script ? '(function(){\n' + route.component.script.trim().replace(/export default |module\.exports +=/, 'return ') + '\n})()' : '{}'};
|
|
253
|
+
Object.assign(componentOptions, {
|
|
254
|
+
template: \`${route.component.template.replace(/[`$]/g, (m) => '\\' + m)}\`,
|
|
255
|
+
});
|
|
256
|
+
return componentOptions;
|
|
257
|
+
// return window.Vue.extend(componentOptions);
|
|
258
|
+
})(),
|
|
259
|
+
children: [
|
|
260
|
+
${route.children.map(routeToString).join(',\n')}
|
|
261
|
+
],
|
|
262
|
+
}`;
|
|
263
|
+
}
|
|
264
|
+
content += `
|
|
265
|
+
var data = ${data};
|
|
266
|
+
data.pages = {
|
|
267
|
+
${Object.keys(pages)
|
|
268
|
+
.map((pageName) => {
|
|
269
|
+
const page = pages[pageName];
|
|
270
|
+
const rootRoute = page.rootRoute;
|
|
271
|
+
delete page.rootRoute;
|
|
272
|
+
let pageJSON = JSON5.stringify(page, null, 4);
|
|
273
|
+
pageJSON = pageJSON.slice(0, -1) + `\nrootRoute: ${routeToString(rootRoute)} }`;
|
|
274
|
+
return `${pageName}: ${pageJSON},`;
|
|
275
|
+
})
|
|
276
|
+
.join('\n')}
|
|
277
|
+
};
|
|
278
|
+
var pageName = window.pageName;
|
|
279
|
+
if(!pageName){
|
|
280
|
+
pageName = data.indexName;
|
|
281
|
+
}
|
|
282
|
+
var page = data.pages[pageName];
|
|
283
|
+
page.router.noLogin = noLogin;
|
|
284
|
+
|
|
285
|
+
if(appVM){
|
|
286
|
+
appVM=null
|
|
287
|
+
}
|
|
288
|
+
var appVM = window.cloudAdminDesigner.init(page, {
|
|
289
|
+
tenant: data.tenant,
|
|
290
|
+
env: data.env,
|
|
291
|
+
extendedConfig: data.extendedConfig,
|
|
292
|
+
nuimsDomain: data.nuimsDomain,
|
|
293
|
+
envNuimsDomain: data.envNuimsDomain,
|
|
294
|
+
envConfig: {
|
|
295
|
+
lowcodeDomain: data.lowcodeDomain,
|
|
296
|
+
},
|
|
297
|
+
}, page.rootRoute, data.metaData);
|
|
298
|
+
window.appVM = appVM;
|
|
299
|
+
})();`;
|
|
300
|
+
if (config.env === 'dev') {
|
|
301
|
+
// 加载资源js
|
|
302
|
+
const domain = fnLowcodeDomain.slice(fnLowcodeDomain.indexOf('.') + 1);
|
|
303
|
+
const targetUrl = `${location.origin}/empty?url=${domain}&appid=${config.appid}`;
|
|
304
|
+
const str = `
|
|
305
|
+
if(!document.querySelector("iframe[name='iframeEmpty']")){
|
|
306
|
+
var el = document.createElement('iframe');
|
|
307
|
+
el.setAttribute('src', "${targetUrl}");
|
|
308
|
+
el.setAttribute('name', 'iframeEmpty');
|
|
309
|
+
el.setAttribute('width', 0);
|
|
310
|
+
el.setAttribute('height', 0);
|
|
311
|
+
el.style.borderWidth = 0
|
|
312
|
+
el.style.display= "block"
|
|
313
|
+
document.getElementsByTagName('body')[0].appendChild(el);
|
|
314
|
+
document.domain = '${domain}'
|
|
315
|
+
var _div = document.createElement('div');
|
|
316
|
+
_div.classList = "div-load"
|
|
317
|
+
_div.innerHTML = "<div class='loading-container'></div><div>正在更新最新发布内容...</div>"
|
|
318
|
+
document.getElementsByTagName('body')[0].appendChild(_div);
|
|
319
|
+
window.showLoading = function(){
|
|
320
|
+
document.querySelector(".div-load").style.display ="flex"
|
|
321
|
+
}
|
|
322
|
+
window.hideLoading = function(){
|
|
323
|
+
document.querySelector(".div-load").style.display ="none"
|
|
324
|
+
}
|
|
325
|
+
var style = document.createElement('style');
|
|
326
|
+
style.innerHTML=\`.div-load{
|
|
327
|
+
width: 208px;
|
|
328
|
+
height: 40px;
|
|
329
|
+
background: rgba(48, 48, 48, 0.8);
|
|
330
|
+
box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
|
|
331
|
+
border-radius: 4px;
|
|
332
|
+
position: fixed;
|
|
333
|
+
top: 120px;
|
|
334
|
+
left: 50%;
|
|
335
|
+
margin-left: -104px;
|
|
336
|
+
color: #FFFFFF;
|
|
337
|
+
font-size: 14px;
|
|
338
|
+
display: none;
|
|
339
|
+
justify-content: center;
|
|
340
|
+
align-items: center;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
.loading-container{
|
|
344
|
+
width: 12px;
|
|
345
|
+
height: 12px;
|
|
346
|
+
margin-right: 10px;
|
|
347
|
+
animation: loading-animation 0.8s infinite linear;
|
|
348
|
+
border: 2px solid #f3f3f3;
|
|
349
|
+
border-top: 2px solid rgb(109, 108, 108);
|
|
350
|
+
border-right: 2px solid rgb(109, 108, 108);
|
|
351
|
+
border-bottom: 2px solid rgb(109, 108, 108);
|
|
352
|
+
border-radius: 50%;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
@keyframes loading-animation{
|
|
356
|
+
0% {
|
|
357
|
+
transform: rotate(0deg);
|
|
358
|
+
}
|
|
359
|
+
100% {
|
|
360
|
+
transform: rotate(360deg);
|
|
361
|
+
}
|
|
362
|
+
}\`
|
|
363
|
+
document.getElementsByTagName('body')[0].appendChild(style);
|
|
364
|
+
}
|
|
365
|
+
`;
|
|
366
|
+
content += str;
|
|
367
|
+
}
|
|
368
|
+
const bundlePath = `${config.USER_STATIC_URL}/${config.tenant}/${app.id}/${config.env}/bundle.${(0, _1.genHash)(content)}.js`;
|
|
369
|
+
const assetsContent = `(function() {
|
|
370
|
+
LazyLoad.js(${JSON5.stringify(assetsInfo.basic.js.concat(assetsInfo.custom.js).concat([bundlePath]))});
|
|
371
|
+
LazyLoad.css(${JSON5.stringify(assetsInfo.basic.css.concat(assetsInfo.custom.css))});
|
|
372
|
+
})()
|
|
373
|
+
`;
|
|
374
|
+
const outputs = [
|
|
375
|
+
{
|
|
376
|
+
name: bundlePath,
|
|
377
|
+
content,
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
name: `${config.USER_STATIC_URL}/${config.tenant}/${app.id}/${config.env}/client.js`,
|
|
381
|
+
content: assetsContent,
|
|
382
|
+
},
|
|
383
|
+
];
|
|
384
|
+
return outputs;
|
|
385
|
+
}
|
|
386
|
+
exports.genBundleFiles = genBundleFiles;
|
|
387
|
+
//# sourceMappingURL=genBundleFiles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"genBundleFiles.js","sourceRoot":"","sources":["../../src/generator/genBundleFiles.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0CAAqK;AACrK,gDAAkC;AAClC,wBAAwC;AACxC,yDAAsD;AACtD,mCAA6B;AAC7B,6CAA+B;AAgCxB,KAAK,UAAU,cAAc,CAAC,GAAQ,EACzC,MAWC;IACD,MAAM,aAAa,GAAG,MAAM,EAAE,cAAc,EAAE,CAAC,MAAM,EAAE,GAAG,CAAC,IAAI,MAAM,EAAE,WAAW,CAAC;IACnF,MAAM,eAAe,GAAG,MAAM,EAAE,YAAY,EAAE,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,SAAS,IAAI,MAAM,EAAE,aAAa,CAAC;IAChG,MAAM,OAAO,GAAa,EAAE,CAAC;IAC7B,MAAM,KAAK,GAAW,EAAE,CAAC;IACzB,MAAM,QAAQ,GAAa,EAAE,CAAC;IAC9B,MAAM,UAAU,GAAgB,EAAE,CAAC;IACnC,MAAM,KAAK,GAAW,EAAE,CAAC;IACzB,MAAM,MAAM,GAAY,EAAE,CAAC;IAC3B,MAAM,UAAU,GAAgB,EAAE,CAAC;IACnC,MAAM,SAAS,GAAc,EAAE,CAAC;IAEhC,GAAG,CAAC,KAAK,IAAI,KAAK,CAAC,IAAI,CAAC,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC;IACtC,IAAI,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE;QAChC,GAAG,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,UAAU,EAAE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Ae,IAAI,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,EAAE,IAAI,MAAM,CAAC,GAAG,YAAY;YACpF,OAAO,EAAE,aAAa;SACzB;KACJ,CAAC;IACF,OAAO,OAAO,CAAC;AACnB,CAAC;AAhaD,wCAgaC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.genHash = void 0;
|
|
27
|
+
const crypto = __importStar(require("crypto"));
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @param 文件内容 content
|
|
31
|
+
* @returns MD5 hash值8位
|
|
32
|
+
*/
|
|
33
|
+
function genHash(content) {
|
|
34
|
+
const hash = crypto.createHash('md5').update(content, 'utf8').digest('hex');
|
|
35
|
+
return hash.slice(0, 8);
|
|
36
|
+
}
|
|
37
|
+
exports.genHash = genHash;
|
|
38
|
+
exports.default = genHash;
|
|
39
|
+
//# sourceMappingURL=genHash.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"genHash.js","sourceRoot":"","sources":["../../src/generator/genHash.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAiC;AAEjC;;;;GAIG;AACH,SAAgB,OAAO,CAAC,OAAe;IACnC,MAAM,IAAI,GAAG,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAC5E,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAC5B,CAAC;AAHD,0BAGC;AAED,kBAAe,OAAO,CAAC"}
|