@lcap/nasl 3.3.3-beta.8 → 3.3.3-beta.9
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/.nyc_output/{78804420-ead6-486f-b682-ab54ccd95dc9.json → 559608df-ab15-4969-acf0-5239dacd6111.json} +1 -1
- package/.nyc_output/processinfo/559608df-ab15-4969-acf0-5239dacd6111.json +1 -0
- package/.nyc_output/processinfo/index.json +1 -1
- package/coverage/index.html +66 -66
- package/coverage/src/automate/engine/index.html +1 -1
- package/coverage/src/automate/engine/utils.js.html +44 -44
- package/coverage/src/bak/index.html +15 -15
- package/coverage/src/bak/translator.js.html +29 -269
- package/coverage/src/breakpoint/generator/AfterStartNode.ts.html +1 -1
- package/coverage/src/breakpoint/generator/BeforeEndNode.ts.html +1 -1
- package/coverage/src/breakpoint/generator/BreakpointNode.ts.html +43 -7
- package/coverage/src/breakpoint/generator/CallbackNode.ts.html +59 -8
- package/coverage/src/breakpoint/generator/index.html +21 -21
- package/coverage/src/breakpoint/generator/index.ts.html +1 -1
- package/coverage/src/breakpoint/index.html +1 -1
- package/coverage/src/breakpoint/index.ts.html +1 -1
- package/coverage/src/breakpoint/shared/constants.ts.html +1 -1
- package/coverage/src/breakpoint/shared/index.html +1 -1
- package/coverage/src/breakpoint/shared/index.ts.html +1 -1
- package/coverage/src/breakpoint/shared/operations.ts.html +2 -2
- package/coverage/src/breakpoint/shared/socket.ts.html +1 -1
- package/coverage/src/breakpoint/shared/utils.ts.html +1 -1
- package/coverage/src/breakpoint/store/core.ts.html +3 -3
- package/coverage/src/breakpoint/store/dock.ts.html +1 -1
- package/coverage/src/breakpoint/store/index.html +1 -1
- package/coverage/src/breakpoint/store/index.ts.html +1 -1
- package/coverage/src/common/BaseNode.ts.html +113 -113
- package/coverage/src/common/Command.ts.html +2 -2
- package/coverage/src/common/EventEmitter.ts.html +31 -31
- package/coverage/src/common/Messager.ts.html +1 -1
- package/coverage/src/common/asyncFuncMap.ts.html +1 -1
- package/coverage/src/common/index.html +5 -5
- package/coverage/src/common/index.ts.html +1 -1
- package/coverage/src/common/utils.ts.html +1 -1
- package/coverage/src/concepts/Abort__.ts.html +1 -1
- package/coverage/src/concepts/AbstractInterface__.ts.html +280 -0
- package/coverage/src/concepts/Anchor__.ts.html +1 -1
- package/coverage/src/concepts/AnonymousFunction__.ts.html +5 -5
- package/coverage/src/concepts/App__.ts.html +36 -36
- package/coverage/src/concepts/Argument__.ts.html +43 -58
- package/coverage/src/concepts/Assignee__.ts.html +1 -1
- package/coverage/src/concepts/AssignmentLine__.ts.html +7 -7
- package/coverage/src/concepts/Assignment__.ts.html +21 -75
- package/coverage/src/concepts/Attribute__.ts.html +1 -1
- package/coverage/src/concepts/AuthInterface__.ts.html +1 -1
- package/coverage/src/concepts/AuthLogicForCallInterface__.ts.html +1 -1
- package/coverage/src/concepts/AuthLogic__.ts.html +1 -1
- package/coverage/src/concepts/BackendVariable__.ts.html +29 -65
- package/coverage/src/concepts/Backend__.ts.html +6 -6
- package/coverage/src/concepts/BatchAssignment__.ts.html +1 -1
- package/coverage/src/concepts/BinaryExpression__.ts.html +50 -128
- package/coverage/src/concepts/BindAttribute__.ts.html +54 -345
- package/coverage/src/concepts/BindDirective__.ts.html +1 -1
- package/coverage/src/concepts/BindEvent__.ts.html +8 -8
- package/coverage/src/concepts/BindStyle__.ts.html +1 -1
- package/coverage/src/concepts/Block__.ts.html +910 -0
- package/coverage/src/concepts/BooleanLiteral__.ts.html +1 -1
- package/coverage/src/concepts/CallAuthInterface__.ts.html +1 -1
- package/coverage/src/concepts/CallConnector__.ts.html +1 -1
- package/coverage/src/concepts/CallFunction__.ts.html +76 -52
- package/coverage/src/concepts/CallInterface__.ts.html +1 -1
- package/coverage/src/concepts/CallLogic__.ts.html +387 -219
- package/coverage/src/concepts/CallQueryComponent__.ts.html +1 -1
- package/coverage/src/concepts/Comment__.ts.html +1 -1
- package/coverage/src/concepts/CompletionProperty__.ts.html +1 -1
- package/coverage/src/concepts/ConfigGroup__.ts.html +6 -6
- package/coverage/src/concepts/ConfigPropertyValue__.ts.html +1 -1
- package/coverage/src/concepts/ConfigProperty__.ts.html +1 -1
- package/coverage/src/concepts/Configuration__.ts.html +7 -7
- package/coverage/src/concepts/Connection__.ts.html +1 -1
- package/coverage/src/concepts/ConnectorTrigger__.ts.html +1 -1
- package/coverage/src/concepts/Connector__.ts.html +1 -1
- package/coverage/src/concepts/Constant__.ts.html +1 -1
- package/coverage/src/concepts/CountersignPolicy__.ts.html +316 -0
- package/coverage/src/concepts/DataSource__.ts.html +13 -13
- package/coverage/src/concepts/DatabaseTypeAnnotation__.ts.html +1 -1
- package/coverage/src/{automate/engine/operators.js.html → concepts/DefaultValue__.ts.html} +485 -347
- package/coverage/src/concepts/Destination__.ts.html +1 -1
- package/coverage/src/concepts/End__.ts.html +6 -6
- package/coverage/src/concepts/EntityIndex__.ts.html +1 -1
- package/coverage/src/concepts/EntityProperty__.ts.html +12 -12
- package/coverage/src/concepts/Entity__.ts.html +17 -17
- package/coverage/src/concepts/EnumItem__.ts.html +1 -1
- package/coverage/src/concepts/Enum__.ts.html +1 -1
- package/coverage/src/concepts/Event__.ts.html +1 -1
- package/coverage/src/concepts/ExternalDestination__.ts.html +1 -1
- package/coverage/src/concepts/ForEachStatement__.ts.html +28 -55
- package/coverage/src/concepts/FrontendLibrary__.ts.html +1 -1
- package/coverage/src/concepts/FrontendVariable__.ts.html +1 -1
- package/coverage/src/concepts/Frontend__.ts.html +12 -12
- package/coverage/src/concepts/Function__.ts.html +8 -8
- package/coverage/src/concepts/I18nInfo__.ts.html +436 -0
- package/coverage/src/concepts/Identifier__.ts.html +42 -51
- package/coverage/src/concepts/IfStatement__.ts.html +1 -1
- package/coverage/src/concepts/ImportedInterface__.ts.html +268 -0
- package/coverage/src/concepts/Integration__.ts.html +1 -1
- package/coverage/src/concepts/InterfaceParam__.ts.html +1 -1
- package/coverage/src/concepts/Interface__.ts.html +1 -1
- package/coverage/src/concepts/JSBlock__.ts.html +8 -182
- package/coverage/src/concepts/JavaLogic__.ts.html +1 -1
- package/coverage/src/concepts/LogicItem__.ts.html +20 -20
- package/coverage/src/concepts/Logic__.ts.html +25 -22
- package/coverage/src/concepts/MatchCase__.ts.html +1 -1
- package/coverage/src/concepts/Match__.ts.html +25 -10
- package/coverage/src/concepts/MemberExpression__.ts.html +10 -7
- package/coverage/src/concepts/MetadataType__.ts.html +1 -1
- package/coverage/src/concepts/MicroApp__.ts.html +1 -1
- package/coverage/src/concepts/Module__.ts.html +20 -20
- package/coverage/src/concepts/MsgTriggerEvent__.ts.html +1 -1
- package/coverage/src/concepts/MsgTriggerLauncher__.ts.html +1 -1
- package/coverage/src/concepts/MultiApprovalPolicy__.ts.html +292 -0
- package/coverage/src/concepts/Namespace__.ts.html +18 -18
- package/coverage/src/concepts/NewComposite__.ts.html +59 -32
- package/coverage/src/concepts/NewList__.ts.html +5 -5
- package/coverage/src/concepts/NewMap__.ts.html +1 -1
- package/coverage/src/concepts/New__.ts.html +1 -1
- package/coverage/src/concepts/NullLiteral__.ts.html +1 -1
- package/coverage/src/concepts/NumericLiteral__.ts.html +10 -13
- package/coverage/src/concepts/OqlQueryComponent__.ts.html +1 -1
- package/coverage/src/concepts/OverriddenLogic__.ts.html +1 -1
- package/coverage/src/concepts/Param__.ts.html +40 -79
- package/coverage/src/concepts/Point__.ts.html +1 -1
- package/coverage/src/concepts/ProcessComponent__.ts.html +1 -1
- package/coverage/src/concepts/ProcessElement__.ts.html +216 -9
- package/coverage/src/concepts/ProcessOutcome__.ts.html +1 -1
- package/coverage/src/concepts/ProcessOutcomes__.ts.html +1 -1
- package/coverage/src/concepts/Process__.ts.html +8 -2
- package/coverage/src/concepts/QueryAggregateExpression__.ts.html +1 -1
- package/coverage/src/concepts/QueryFieldExpression__.ts.html +1 -1
- package/coverage/src/concepts/QueryFromExpression__.ts.html +1 -1
- package/coverage/src/concepts/QueryGroupByExpression__.ts.html +1 -1
- package/coverage/src/concepts/QueryJoinExpression__.ts.html +1 -1
- package/coverage/src/concepts/QueryLimitExpression__.ts.html +1 -1
- package/coverage/src/concepts/QueryOrderByExpression__.ts.html +1 -1
- package/coverage/src/concepts/QuerySelectExpression__.ts.html +1 -1
- package/coverage/src/concepts/Rect__.ts.html +1 -1
- package/coverage/src/concepts/Return__.ts.html +36 -75
- package/coverage/src/concepts/Role__.ts.html +1 -1
- package/coverage/src/concepts/SelectMembers__.ts.html +7 -7
- package/coverage/src/concepts/SequentialPolicy__.ts.html +259 -0
- package/coverage/src/concepts/Slot__.ts.html +1 -1
- package/coverage/src/concepts/SqlQueryComponent__.ts.html +1 -1
- package/coverage/src/concepts/Start__.ts.html +6 -6
- package/coverage/src/concepts/StaticString__.ts.html +403 -0
- package/coverage/src/concepts/StringInterpolation__.ts.html +38 -32
- package/coverage/src/concepts/StringLiteral__.ts.html +13 -13
- package/coverage/src/concepts/StructureProperty__.ts.html +7 -7
- package/coverage/src/concepts/Structure__.ts.html +7 -7
- package/coverage/src/concepts/SwitchCase__.ts.html +1 -1
- package/coverage/src/concepts/SwitchStatement__.ts.html +1 -1
- package/coverage/src/concepts/Theme__.ts.html +7 -7
- package/coverage/src/concepts/Transactional__.ts.html +1 -1
- package/coverage/src/concepts/TriggerEvent__.ts.html +1 -1
- package/coverage/src/concepts/TriggerLauncher__.ts.html +1 -1
- package/coverage/src/concepts/TypeAnnotation__.ts.html +23 -23
- package/coverage/src/concepts/TypeParam__.ts.html +1 -1
- package/coverage/src/concepts/UnaryExpression__.ts.html +1 -1
- package/coverage/src/concepts/Unparsed__.ts.html +1 -1
- package/coverage/src/concepts/UseComponent__.ts.html +1 -1
- package/coverage/src/concepts/ValidationRule__.ts.html +9 -9
- package/coverage/src/concepts/Variable__.ts.html +35 -74
- package/coverage/src/concepts/ViewBlock__.ts.html +1 -1
- package/coverage/src/concepts/ViewComponent__.ts.html +1 -1
- package/coverage/src/concepts/ViewElement__.ts.html +50 -254
- package/coverage/src/concepts/View__.ts.html +42 -84
- package/coverage/src/concepts/WhileStatement__.ts.html +1 -1
- package/coverage/src/concepts/basics/constants.ts.html +88 -0
- package/coverage/src/concepts/basics/index.html +116 -0
- package/coverage/src/concepts/basics/stdlib/index.html +1 -1
- package/coverage/src/concepts/basics/stdlib/index.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.auth.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.browser.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.collection.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.configuration.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.core.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.event.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.http.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.interface.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.io.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.logging.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.process.ts.html +2 -2
- package/coverage/src/concepts/basics/stdlib/nasl.ui.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.util.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.validation.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/reference2TypeAnnotationList.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/timeZone.ts.html +1 -1
- package/coverage/src/concepts/basics/types/coreTypeList.ts.html +1 -1
- package/coverage/src/concepts/basics/types/index.html +1 -1
- package/coverage/src/concepts/basics/types/index.ts.html +1 -1
- package/coverage/src/concepts/index.html +238 -193
- package/coverage/src/concepts/index.ts.html +1 -1
- package/coverage/src/concepts/index__.ts.html +13 -4
- package/coverage/src/concepts/utils/asserts.ts.html +27967 -0
- package/coverage/src/{automate/template → concepts/utils}/index.html +22 -22
- package/coverage/src/config.ts.html +1 -1
- package/coverage/src/decorators/index.html +1 -1
- package/coverage/src/decorators/index.ts.html +24 -24
- package/coverage/src/decorators/promise.ts.html +1 -1
- package/coverage/src/eventBus.ts.html +1 -1
- package/coverage/src/generator/compileComponent.ts.html +4 -4
- package/coverage/src/generator/genBundleFiles.ts.html +1 -1
- package/coverage/src/generator/genHash.ts.html +3 -3
- package/coverage/src/generator/genMetaData.ts.html +1 -1
- package/coverage/src/generator/genReleaseBody.ts.html +41 -41
- package/coverage/src/generator/icestark.ts.html +1 -1
- package/coverage/src/generator/index.html +1 -1
- package/coverage/src/generator/index.ts.html +1 -1
- package/coverage/src/generator/microApp.ts.html +1 -1
- package/coverage/src/generator/permission.ts.html +1 -1
- package/coverage/src/generator/qiankun.ts.html +1 -1
- package/coverage/src/generator/styleReplacer.ts.html +1 -1
- package/coverage/src/index.html +1 -1
- package/coverage/src/index.ts.html +1 -1
- package/coverage/src/manager/diagnostic.ts.html +1 -1
- package/coverage/src/manager/index.html +1 -1
- package/coverage/src/manager/stepRecorder.ts.html +1 -1
- package/coverage/src/natural/genNaturalTS.ts.html +1 -1
- package/coverage/src/natural/index.html +1 -1
- package/coverage/src/natural/index.ts.html +1 -1
- package/coverage/src/natural/naslStdlibMap.ts.html +1 -1
- package/coverage/src/natural/transformTSCode.ts.html +1 -1
- package/coverage/src/sentry/index.html +1 -1
- package/coverage/src/sentry/index.ts.html +15 -15
- package/coverage/src/server/createUiTs.ts.html +1 -1
- package/coverage/src/server/entity2LogicNamespace.ts.html +9 -9
- package/coverage/src/server/event.js.html +1 -1
- package/coverage/src/server/extendBaseNode.ts.html +69 -42
- package/coverage/src/server/formatTsUtils.ts.html +23 -20
- package/coverage/src/server/getConnector.ts.html +1 -1
- package/coverage/src/server/getExtensionModules.ts.html +1 -1
- package/coverage/src/server/getFunctions.ts.html +4 -4
- package/coverage/src/server/getInterfaces.ts.html +1 -1
- package/coverage/src/server/getLogging.ts.html +2 -2
- package/coverage/src/server/getLogics.ts.html +20 -8
- package/coverage/src/server/getMemberIdentifier.ts.html +71 -8
- package/coverage/src/server/getProcessComponents.ts.html +3 -3
- package/coverage/src/server/getProcesses.ts.html +163 -13
- package/coverage/src/server/getValidates.ts.html +4 -4
- package/coverage/src/server/index.html +54 -54
- package/coverage/src/server/index.ts.html +6 -3
- package/coverage/src/server/naslServer.ts.html +49 -43
- package/coverage/src/server/naslStdlibMap.ts.html +1 -1
- package/coverage/src/server/process2LogicNamespace.ts.html +52 -52
- package/coverage/src/server/translator.ts.html +16 -7
- package/coverage/src/service/creator/add.configs.js.html +1 -1
- package/coverage/src/service/creator/errHandles.js.html +16 -7
- package/coverage/src/service/creator/index.html +4 -4
- package/coverage/src/service/creator/index.js.html +1 -1
- package/coverage/src/service/datasource/api.js.html +1 -1
- package/coverage/src/service/datasource/index.html +1 -1
- package/coverage/src/service/datasource/index.js.html +1 -1
- package/coverage/src/service/logic/api.js.html +1 -1
- package/coverage/src/service/logic/index.html +1 -1
- package/coverage/src/service/logic/index.js.html +1 -1
- package/coverage/src/service/storage/api.js.html +1 -1
- package/coverage/src/service/storage/index.html +10 -10
- package/coverage/src/service/storage/index.ts.html +1 -1
- package/coverage/src/service/storage/init.ts.html +8 -8
- package/coverage/src/service/storage/jsoner.ts.html +1 -1
- package/coverage/src/service/storage/map.ts.html +3 -3
- package/coverage/src/service/storage/service.ts.html +1 -1
- package/coverage/src/service/storage/storagePoint.ts.html +1 -1
- package/coverage/src/templator/genCallComponentLogic.ts.html +1 -1
- package/coverage/src/templator/genCreateBlock.ts.html +11 -23
- package/coverage/src/templator/genCurdEditMultipleKeyBlock.ts.html +19 -37
- package/coverage/src/templator/genCurdMultipleKeyBlock.ts.html +18 -27
- package/coverage/src/templator/genEditTableBlock.ts.html +8 -14
- package/coverage/src/templator/genEnumSelectBlock.ts.html +1 -1
- package/coverage/src/templator/genGetBlock.ts.html +1 -1
- package/coverage/src/templator/genGridViewBlock.ts.html +1 -1
- package/coverage/src/templator/genListViewBlock.ts.html +1 -1
- package/coverage/src/templator/genQueryComponent.ts.html +1 -1
- package/coverage/src/templator/genSelectBlock.ts.html +1 -1
- package/coverage/src/templator/genTableBlock.ts.html +1 -1
- package/coverage/src/templator/genUpdateBlock.ts.html +19 -28
- package/coverage/src/templator/index.html +31 -31
- package/coverage/src/templator/index.ts.html +1 -1
- package/coverage/src/templator/utils.ts.html +21 -24
- package/coverage/src/translator/constant.ts.html +1 -1
- package/coverage/src/translator/index.html +1 -1
- package/coverage/src/translator/index.ts.html +1 -1
- package/coverage/src/translator/utils.ts.html +38 -38
- package/coverage/src/utils/cookie.ts.html +1 -1
- package/coverage/src/utils/env.ts.html +1 -1
- package/coverage/src/{automate/engine/viewCache.js.html → utils/i18nInfo.ts.html} +45 -93
- package/coverage/src/utils/index.html +5 -5
- package/coverage/src/utils/index.ts.html +13 -13
- package/coverage/src/utils/logger.ts.html +13 -13
- package/coverage/src/utils/sortTsString.ts.html +1 -1
- package/coverage/src/utils/string.ts.html +1 -1
- package/coverage/src/utils/time-slicing/constant.ts.html +1 -1
- package/coverage/src/utils/time-slicing/controller.ts.html +70 -37
- package/coverage/src/utils/time-slicing/index.html +24 -24
- package/coverage/src/utils/time-slicing/index.ts.html +1 -1
- package/coverage/src/utils/time-slicing/page-state.ts.html +1 -1
- package/coverage/src/utils/time-slicing/performance.ts.html +1 -1
- package/coverage/src/utils/time-slicing/runner.ts.html +33 -39
- package/coverage/src/utils/time-slicing/tool.ts.html +2 -2
- package/coverage/src/utils/time-slicing/utils.ts.html +2 -2
- package/coverage/src/utils/time-slicing/wrapper.ts.html +8 -8
- package/coverage/src/utils/time-slicing.ts.html +1 -1
- package/coverage/src/utils/traverse.ts.html +1 -1
- package/coverage/src/utils/window.ts.html +1 -1
- package/out/bak/translator.js.map +1 -1
- package/out/breakpoint/generator/BreakpointNode.d.ts +3 -0
- package/out/breakpoint/generator/BreakpointNode.js +9 -0
- package/out/breakpoint/generator/BreakpointNode.js.map +1 -1
- package/out/breakpoint/generator/CallbackNode.js +15 -0
- package/out/breakpoint/generator/CallbackNode.js.map +1 -1
- package/out/common/BaseNode.d.ts +1 -1
- package/out/common/BaseNode.js +1 -1
- package/out/common/BaseNode.js.map +1 -1
- package/out/common/Command.js +1 -1
- package/out/common/Command.js.map +1 -1
- package/out/concepts/BackendVariable__.js +10 -3
- package/out/concepts/BackendVariable__.js.map +1 -1
- package/out/concepts/CallFunction__.js +10 -2
- package/out/concepts/CallFunction__.js.map +1 -1
- package/out/concepts/CallLogic__.js +71 -40
- package/out/concepts/CallLogic__.js.map +1 -1
- package/out/concepts/CountersignPolicy__.d.ts +26 -0
- package/out/concepts/CountersignPolicy__.js +73 -0
- package/out/concepts/CountersignPolicy__.js.map +1 -0
- package/out/concepts/ForEachStatement__.js +12 -26
- package/out/concepts/ForEachStatement__.js.map +1 -1
- package/out/concepts/LogicItem__.js +2 -1
- package/out/concepts/LogicItem__.js.map +1 -1
- package/out/concepts/Logic__.js +2 -0
- package/out/concepts/Logic__.js.map +1 -1
- package/out/concepts/Match__.js +9 -4
- package/out/concepts/Match__.js.map +1 -1
- package/out/concepts/MemberExpression__.js +1 -0
- package/out/concepts/MemberExpression__.js.map +1 -1
- package/out/concepts/MultiApprovalPolicy__.d.ts +24 -0
- package/out/concepts/MultiApprovalPolicy__.js +65 -0
- package/out/concepts/MultiApprovalPolicy__.js.map +1 -0
- package/out/concepts/NewComposite__.js +18 -10
- package/out/concepts/NewComposite__.js.map +1 -1
- package/out/concepts/Param__.js +10 -3
- package/out/concepts/Param__.js.map +1 -1
- package/out/concepts/ProcessElement__.d.ts +16 -0
- package/out/concepts/ProcessElement__.js +56 -1
- package/out/concepts/ProcessElement__.js.map +1 -1
- package/out/concepts/Process__.d.ts +2 -0
- package/out/concepts/Process__.js +2 -0
- package/out/concepts/Process__.js.map +1 -1
- package/out/concepts/Return__.js +10 -3
- package/out/concepts/Return__.js.map +1 -1
- package/out/concepts/SequentialPolicy__.d.ts +18 -0
- package/out/concepts/SequentialPolicy__.js +54 -0
- package/out/concepts/SequentialPolicy__.js.map +1 -0
- package/out/concepts/StringInterpolation__.js +2 -0
- package/out/concepts/StringInterpolation__.js.map +1 -1
- package/out/concepts/Variable__.js +10 -3
- package/out/concepts/Variable__.js.map +1 -1
- package/out/concepts/ViewElement__.js +8 -0
- package/out/concepts/ViewElement__.js.map +1 -1
- package/out/concepts/View__.js +2 -2
- package/out/concepts/View__.js.map +1 -1
- package/out/concepts/basics/stdlib/nasl.process.js +1 -1
- package/out/concepts/basics/stdlib/nasl.process.js.map +1 -1
- package/out/concepts/index__.d.ts +3 -0
- package/out/concepts/index__.js +3 -0
- package/out/concepts/index__.js.map +1 -1
- package/out/concepts/types__.d.ts +4 -1
- package/out/generator/genReleaseBody.js +2 -2
- package/out/generator/genReleaseBody.js.map +1 -1
- package/out/server/extendBaseNode.js +33 -23
- package/out/server/extendBaseNode.js.map +1 -1
- package/out/server/formatTsUtils.d.ts +1 -2
- package/out/server/formatTsUtils.js +13 -12
- package/out/server/formatTsUtils.js.map +1 -1
- package/out/server/getLogics.d.ts +1 -0
- package/out/server/getLogics.js +6 -2
- package/out/server/getLogics.js.map +1 -1
- package/out/server/getMemberIdentifier.js +21 -0
- package/out/server/getMemberIdentifier.js.map +1 -1
- package/out/server/getProcesses.js +56 -6
- package/out/server/getProcesses.js.map +1 -1
- package/out/server/index.js +1 -0
- package/out/server/index.js.map +1 -1
- package/out/server/naslServer.d.ts +2 -2
- package/out/server/naslServer.js +29 -32
- package/out/server/naslServer.js.map +1 -1
- package/out/server/translator.js +3 -0
- package/out/server/translator.js.map +1 -1
- package/out/service/creator/errHandles.js +6 -3
- package/out/service/creator/errHandles.js.map +1 -1
- package/out/service/storage/init.js +2 -2
- package/out/service/storage/init.js.map +1 -1
- package/out/templator/genCurdEditMultipleKeyBlock.js +3 -3
- package/out/templator/genCurdEditMultipleKeyBlock.js.map +1 -1
- package/out/templator/genCurdMultipleKeyBlock.js +3 -3
- package/out/templator/genCurdMultipleKeyBlock.js.map +1 -1
- package/out/utils/time-slicing/controller.d.ts +1 -1
- package/out/utils/time-slicing/controller.js +31 -19
- package/out/utils/time-slicing/controller.js.map +1 -1
- package/out/utils/time-slicing/runner.d.ts +1 -1
- package/out/utils/time-slicing/runner.js +4 -5
- package/out/utils/time-slicing/runner.js.map +1 -1
- package/out/utils/time-slicing/tool.d.ts +1 -1
- package/package.json +2 -2
- package/sandbox/stdlib/nasl.util.ts +2 -2
- package/src/bak/translator.js +0 -1
- package/src/breakpoint/generator/BreakpointNode.ts +12 -0
- package/src/breakpoint/generator/CallbackNode.ts +17 -0
- package/src/common/BaseNode.ts +1 -1
- package/src/common/Command.ts +1 -1
- package/src/concepts/BackendVariable__.ts +10 -3
- package/src/concepts/CallFunction__.ts +10 -2
- package/src/concepts/CallLogic__.ts +90 -46
- package/src/concepts/CountersignPolicy__.ts +77 -0
- package/src/concepts/ForEachStatement__.ts +17 -26
- package/src/concepts/LogicItem__.ts +2 -2
- package/src/concepts/Logic__.ts +1 -0
- package/src/concepts/Match__.ts +9 -4
- package/src/concepts/MemberExpression__.ts +1 -0
- package/src/concepts/MultiApprovalPolicy__.ts +69 -0
- package/src/concepts/NewComposite__.ts +18 -9
- package/src/concepts/Param__.ts +12 -3
- package/src/concepts/ProcessElement__.ts +70 -1
- package/src/concepts/Process__.ts +2 -0
- package/src/concepts/Return__.ts +10 -3
- package/src/concepts/SequentialPolicy__.ts +58 -0
- package/src/concepts/StringInterpolation__.ts +2 -0
- package/src/concepts/Variable__.ts +10 -3
- package/src/concepts/ViewElement__.ts +7 -0
- package/src/concepts/View__.ts +5 -5
- package/src/concepts/basics/stdlib/nasl.process.ts +1 -1
- package/src/concepts/index__.ts +3 -0
- package/src/concepts/types__.ts +6 -0
- package/src/generator/genReleaseBody.ts +40 -40
- package/src/server/extendBaseNode.ts +32 -23
- package/src/server/formatTsUtils.ts +13 -12
- package/src/server/getLogics.ts +4 -0
- package/src/server/getMemberIdentifier.ts +21 -0
- package/src/server/getProcesses.ts +56 -6
- package/src/server/index.ts +2 -1
- package/src/server/naslServer.ts +35 -33
- package/src/server/translator.ts +3 -0
- package/src/service/creator/errHandles.js +7 -4
- package/src/service/storage/init.ts +2 -2
- package/src/templator/genCurdEditMultipleKeyBlock.ts +3 -3
- package/src/templator/genCurdMultipleKeyBlock.ts +3 -3
- package/src/utils/time-slicing/controller.ts +34 -23
- package/src/utils/time-slicing/runner.ts +7 -9
- package/src/utils/time-slicing/tool.ts +1 -1
- package/test/concepts/call-logic/__snapshots__/getQuickInfoOffset.spec.ts.snap +24 -0
- package/test/concepts/call-logic/__snapshots__/toEmbeddedTS.spec.ts.snap +15 -0
- package/test/concepts/call-logic/__snapshots__/toJS.spec.ts.snap +15 -0
- package/test/concepts/call-logic/__snapshots__/toUI.spec.ts.snap +7 -0
- package/test/concepts/call-logic/__snapshots__/toVue.spec.ts.snap +101 -0
- package/test/concepts/call-logic/__snapshots__/toVueDesigner.spec.ts.snap +7 -0
- package/test/concepts/call-logic/fixtures/json-deserialize.json +173 -0
- package/test/concepts/call-logic/fixtures/json-serialize-with-string.json +177 -0
- package/test/concepts/call-logic/fixtures/json-serialize.json +178 -0
- package/test/concepts/call-logic/toUI.spec.ts +16 -0
- package/test/concepts/call-logic/toVue.spec.ts +14 -0
- package/test/concepts/call-logic/toVueDesigner.spec.ts +16 -0
- package/test/time-slicing/runner.spec.ts +4 -0
- package/.nyc_output/processinfo/78804420-ead6-486f-b682-ab54ccd95dc9.json +0 -1
- package/coverage/cobertura-coverage.xml +0 -71878
- package/coverage/src/automate/engine/index.js.html +0 -1471
- package/coverage/src/automate/engine/uniqueName.js.html +0 -412
- package/coverage/src/automate/template/myProcess.js.html +0 -34645
- package/coverage/src/concepts/DataElement__.ts.html +0 -118
- package/coverage/src/utils/time.ts.html +0 -118
|
@@ -30,7 +30,7 @@ function genFilterTemplate(entity: Entity, nameGroup: NameGroup, selectNameGroup
|
|
|
30
30
|
const properties = entity.properties.filter(filterProperty('inFilter'));
|
|
31
31
|
|
|
32
32
|
return `
|
|
33
|
-
<u-linear-layout
|
|
33
|
+
<u-linear-layout>
|
|
34
34
|
<u-form layout="inline">
|
|
35
35
|
${properties
|
|
36
36
|
.map((property) => {
|
|
@@ -107,9 +107,9 @@ function genFilterTemplate(entity: Entity, nameGroup: NameGroup, selectNameGroup
|
|
|
107
107
|
<u-button color="primary" @click="${nameGroup.viewLogicReload}">查 询</u-button>
|
|
108
108
|
</u-form-item>
|
|
109
109
|
</u-form>
|
|
110
|
+
</u-linear-layout>
|
|
110
111
|
|
|
111
|
-
<u-linear-layout><u-button color="primary" @click="${nameGroup.viewLogicCreate}">创 建</u-button></u-linear-layout>
|
|
112
|
-
</u-linear-layout>
|
|
112
|
+
<u-linear-layout mode="flex" alignment="start" justify="end"><u-button color="primary" @click="${nameGroup.viewLogicCreate}">创 建</u-button></u-linear-layout>
|
|
113
113
|
`;
|
|
114
114
|
}
|
|
115
115
|
|
|
@@ -29,7 +29,7 @@ function genFilterTemplate(entity: Entity, nameGroup: NameGroup, selectNameGroup
|
|
|
29
29
|
const dataSource = entity.parentNode as DataSource;
|
|
30
30
|
const properties = entity.properties.filter(filterProperty('inFilter'));
|
|
31
31
|
return `
|
|
32
|
-
<u-linear-layout
|
|
32
|
+
<u-linear-layout>
|
|
33
33
|
<u-form layout="inline">
|
|
34
34
|
${properties
|
|
35
35
|
.map((property) => {
|
|
@@ -107,9 +107,9 @@ function genFilterTemplate(entity: Entity, nameGroup: NameGroup, selectNameGroup
|
|
|
107
107
|
<u-button color="primary" @click="${nameGroup.viewLogicReload}">查 询</u-button>
|
|
108
108
|
</u-form-item>
|
|
109
109
|
</u-form>
|
|
110
|
+
</u-linear-layout>
|
|
110
111
|
|
|
111
|
-
<u-linear-layout><u-button color="primary" @click="${nameGroup.viewLogicCreate}">创 建</u-button></u-linear-layout>
|
|
112
|
-
</u-linear-layout>
|
|
112
|
+
<u-linear-layout mode="flex" alignment="start" justify="end"><u-button color="primary" @click="${nameGroup.viewLogicCreate}">创 建</u-button></u-linear-layout>
|
|
113
113
|
`;
|
|
114
114
|
}
|
|
115
115
|
|
|
@@ -235,8 +235,8 @@ export class TimeSlicingController {
|
|
|
235
235
|
/// #endif
|
|
236
236
|
}
|
|
237
237
|
|
|
238
|
-
run<T = void>(generator: Generator<any, T,
|
|
239
|
-
return new Promise<
|
|
238
|
+
run<T = void>(generator: Generator<any, T, any>): T extends Promise<any> ? T : Promise<T> {
|
|
239
|
+
return new Promise<any>((resolve) => {
|
|
240
240
|
/** 生成器结果 */
|
|
241
241
|
let result: IteratorResult<void, any> = {
|
|
242
242
|
done: false,
|
|
@@ -245,9 +245,18 @@ export class TimeSlicingController {
|
|
|
245
245
|
/** 异步运行标志 */
|
|
246
246
|
let waitAsync = false;
|
|
247
247
|
|
|
248
|
-
const { group } = this;
|
|
248
|
+
const { group, id } = this;
|
|
249
249
|
const isPromise = (input: unknown): input is Promise<any> => input && input instanceof Promise;
|
|
250
250
|
|
|
251
|
+
/** 运行结束 */
|
|
252
|
+
const runStop = (result: any) => {
|
|
253
|
+
this.clearState();
|
|
254
|
+
/// #if process.env.NODE_ENV === 'development'
|
|
255
|
+
this.displayInfo();
|
|
256
|
+
console.timeEnd(`时间分片-${id}`);
|
|
257
|
+
/// #endif
|
|
258
|
+
resolve(result);
|
|
259
|
+
};
|
|
251
260
|
/** 运行帧 */
|
|
252
261
|
const runFrame = () => {
|
|
253
262
|
this.setFrameStart();
|
|
@@ -280,12 +289,7 @@ export class TimeSlicingController {
|
|
|
280
289
|
|
|
281
290
|
// 结束运行
|
|
282
291
|
if (result.done) {
|
|
283
|
-
|
|
284
|
-
/// #if process.env.NODE_ENV === 'development'
|
|
285
|
-
this.displayInfo();
|
|
286
|
-
console.timeEnd(`时间分片-${this.id}`);
|
|
287
|
-
/// #endif
|
|
288
|
-
resolve(result.value);
|
|
292
|
+
runStop(result.value);
|
|
289
293
|
return;
|
|
290
294
|
}
|
|
291
295
|
|
|
@@ -304,27 +308,34 @@ export class TimeSlicingController {
|
|
|
304
308
|
let taskId = 0;
|
|
305
309
|
|
|
306
310
|
while (!result.done && taskId < group.limit) {
|
|
307
|
-
const
|
|
308
|
-
const lastParam = lastIsPromise ? this.async.result : result.value;
|
|
311
|
+
const lastParam = isPromise(result.value) ? this.async.result : result.value;
|
|
309
312
|
|
|
310
313
|
taskId++;
|
|
311
314
|
result = generator.next(lastParam);
|
|
312
315
|
|
|
313
|
-
// 运行完毕
|
|
314
|
-
if (result.done || taskId >= group.limit) {
|
|
315
|
-
break;
|
|
316
|
-
}
|
|
317
|
-
|
|
318
316
|
// 返回 Promise 时,等待异步任务完成
|
|
319
317
|
if (isPromise(result.value)) {
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
318
|
+
// 最后返回异步
|
|
319
|
+
if (result.done) {
|
|
320
|
+
result.value
|
|
321
|
+
.then(runStop)
|
|
322
|
+
.catch(error => generator.throw(error));
|
|
323
|
+
}
|
|
324
|
+
// 中途的异步流程
|
|
325
|
+
else {
|
|
326
|
+
waitAsync = true;
|
|
327
|
+
this.setAsyncStart();
|
|
328
|
+
result.value
|
|
329
|
+
.then(runAsyncTask)
|
|
330
|
+
.catch(error => generator.throw(error));
|
|
331
|
+
}
|
|
325
332
|
|
|
326
333
|
break;
|
|
327
334
|
}
|
|
335
|
+
// 运行完毕
|
|
336
|
+
else if (result.done || taskId >= group.limit) {
|
|
337
|
+
break;
|
|
338
|
+
}
|
|
328
339
|
}
|
|
329
340
|
|
|
330
341
|
// 记录实际运行数量
|
|
@@ -332,11 +343,11 @@ export class TimeSlicingController {
|
|
|
332
343
|
};
|
|
333
344
|
|
|
334
345
|
/// #if process.env.NODE_ENV === 'development'
|
|
335
|
-
console.time(`时间分片-${
|
|
346
|
+
console.time(`时间分片-${id}`);
|
|
336
347
|
/// #endif
|
|
337
348
|
|
|
338
349
|
// 启动分片
|
|
339
350
|
runFrame();
|
|
340
|
-
});
|
|
351
|
+
}) as any;
|
|
341
352
|
}
|
|
342
353
|
}
|
|
@@ -16,8 +16,8 @@ export function runGeneratorSync<T = void>(generator: Generator<any, T, any>) {
|
|
|
16
16
|
*
|
|
17
17
|
* @description 异步模式
|
|
18
18
|
*/
|
|
19
|
-
export function runGeneratorAsync<T = void>(generator: Generator<any, T, any>): Promise<T> {
|
|
20
|
-
return new Promise
|
|
19
|
+
export function runGeneratorAsync<T = void>(generator: Generator<any, T, any>): T extends Promise<any> ? T : Promise<T> {
|
|
20
|
+
return new Promise((resolve) => {
|
|
21
21
|
let result: IteratorResult<any, T> = {
|
|
22
22
|
done: false,
|
|
23
23
|
value: undefined,
|
|
@@ -37,18 +37,16 @@ export function runGeneratorAsync<T = void>(generator: Generator<any, T, any>):
|
|
|
37
37
|
result = generator.next(result.value);
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
if (result.done) {
|
|
41
|
-
resolve(result.value);
|
|
42
|
-
return;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
40
|
if (isPromise(result.value)) {
|
|
46
41
|
result.value
|
|
47
|
-
.then(runAsync)
|
|
42
|
+
.then(result.done ? resolve : runAsync)
|
|
48
43
|
.catch(error => generator.throw(error));
|
|
49
44
|
}
|
|
45
|
+
else if (result.done) {
|
|
46
|
+
resolve(result.value);
|
|
47
|
+
}
|
|
50
48
|
}
|
|
51
49
|
|
|
52
50
|
run();
|
|
53
|
-
});
|
|
51
|
+
}) as any;
|
|
54
52
|
}
|
|
@@ -35,7 +35,7 @@ export function timeSlicingWithList<T>(list: T[], cb: (val: T, index: number, ar
|
|
|
35
35
|
* ```
|
|
36
36
|
* @param {Generator<any, T, any>} generator - 生成器
|
|
37
37
|
*/
|
|
38
|
-
export function timeSlicingWithGenerator<T = void>(generator: Generator<any, T, any>) {
|
|
38
|
+
export function timeSlicingWithGenerator<T = void>(generator: Generator<any, T, any>): T extends Promise<any> ? T : Promise<T> {
|
|
39
39
|
// node 环境不需要进行切片
|
|
40
40
|
if (isNode) {
|
|
41
41
|
return runAsync<T>(generator);
|
|
@@ -45,6 +45,30 @@ Object {
|
|
|
45
45
|
}
|
|
46
46
|
`;
|
|
47
47
|
|
|
48
|
+
exports[`call-logic:getQuickInfoOffset json-deserialize 1`] = `
|
|
49
|
+
Object {
|
|
50
|
+
"code": "nasl.util.jsonDeserialize(variable1)",
|
|
51
|
+
"line": 1,
|
|
52
|
+
"offset": 11,
|
|
53
|
+
}
|
|
54
|
+
`;
|
|
55
|
+
|
|
56
|
+
exports[`call-logic:getQuickInfoOffset json-serialize 1`] = `
|
|
57
|
+
Object {
|
|
58
|
+
"code": "nasl.util.jsonSerialize(variable1)",
|
|
59
|
+
"line": 1,
|
|
60
|
+
"offset": 11,
|
|
61
|
+
}
|
|
62
|
+
`;
|
|
63
|
+
|
|
64
|
+
exports[`call-logic:getQuickInfoOffset json-serialize-with-string 1`] = `
|
|
65
|
+
Object {
|
|
66
|
+
"code": "nasl.util.jsonSerialize(variable1)",
|
|
67
|
+
"line": 1,
|
|
68
|
+
"offset": 11,
|
|
69
|
+
}
|
|
70
|
+
`;
|
|
71
|
+
|
|
48
72
|
exports[`call-logic:getQuickInfoOffset nested-call-logic 1`] = `
|
|
49
73
|
Object {
|
|
50
74
|
"code": "(() =>{
|
|
@@ -39,6 +39,21 @@ exports[`call-logic:toEmbeddedTS global-logic-argument-some-expression 1`] = `
|
|
|
39
39
|
"
|
|
40
40
|
`;
|
|
41
41
|
|
|
42
|
+
exports[`call-logic:toEmbeddedTS json-deserialize 1`] = `
|
|
43
|
+
"nasl.util.jsonDeserialize(variable1);
|
|
44
|
+
"
|
|
45
|
+
`;
|
|
46
|
+
|
|
47
|
+
exports[`call-logic:toEmbeddedTS json-serialize 1`] = `
|
|
48
|
+
"nasl.util.jsonSerialize(variable1);
|
|
49
|
+
"
|
|
50
|
+
`;
|
|
51
|
+
|
|
52
|
+
exports[`call-logic:toEmbeddedTS json-serialize-with-string 1`] = `
|
|
53
|
+
"nasl.util.jsonSerialize(variable1);
|
|
54
|
+
"
|
|
55
|
+
`;
|
|
56
|
+
|
|
42
57
|
exports[`call-logic:toEmbeddedTS nested-call-logic 1`] = `
|
|
43
58
|
"(() => {
|
|
44
59
|
const wrapper = nasl.util.autoHandleError(
|
|
@@ -101,6 +101,21 @@ exports[`call-logic:toJS global-logic-argument-some-expression 1`] = `
|
|
|
101
101
|
"
|
|
102
102
|
`;
|
|
103
103
|
|
|
104
|
+
exports[`call-logic:toJS json-deserialize 1`] = `
|
|
105
|
+
"await(JSON.parse(this.variable1));
|
|
106
|
+
"
|
|
107
|
+
`;
|
|
108
|
+
|
|
109
|
+
exports[`call-logic:toJS json-serialize 1`] = `
|
|
110
|
+
"await(this.$utils[\\"JsonSerialize\\"](this.variable1));
|
|
111
|
+
"
|
|
112
|
+
`;
|
|
113
|
+
|
|
114
|
+
exports[`call-logic:toJS json-serialize-with-string 1`] = `
|
|
115
|
+
"await(JSON.stringify(this.variable1));
|
|
116
|
+
"
|
|
117
|
+
`;
|
|
118
|
+
|
|
104
119
|
exports[`call-logic:toJS nested-call-logic 1`] = `
|
|
105
120
|
"await(
|
|
106
121
|
this.$logics[\\"extensions.httpclient.logics.exchange\\"]({
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`call-logic:toVue entries-get-with-arguments 1`] = `
|
|
4
|
+
"get(123);
|
|
5
|
+
"
|
|
6
|
+
`;
|
|
7
|
+
|
|
8
|
+
exports[`call-logic:toVue entries-update-with-arguments 1`] = `
|
|
9
|
+
"update([编译方法未实现]);
|
|
10
|
+
"
|
|
11
|
+
`;
|
|
12
|
+
|
|
13
|
+
exports[`call-logic:toVue global-logic-argument-no-expression 1`] = `
|
|
14
|
+
"logic1(undefined, undefined, undefined);
|
|
15
|
+
"
|
|
16
|
+
`;
|
|
17
|
+
|
|
18
|
+
exports[`call-logic:toVue global-logic-argument-some-expression 1`] = `
|
|
19
|
+
"logic1(
|
|
20
|
+
\`123\`,
|
|
21
|
+
undefined,
|
|
22
|
+
$utils[\\"New\\"]({
|
|
23
|
+
concept: \\"TypeAnnotation\\",
|
|
24
|
+
name: \\"\\",
|
|
25
|
+
typeKind: \\"reference\\",
|
|
26
|
+
typeNamespace: \\"app.dataSources.defaultDS.entities\\",
|
|
27
|
+
typeName: \\"Entity1\\",
|
|
28
|
+
typeArguments: null,
|
|
29
|
+
returnType: null,
|
|
30
|
+
properties: null,
|
|
31
|
+
})
|
|
32
|
+
);
|
|
33
|
+
"
|
|
34
|
+
`;
|
|
35
|
+
|
|
36
|
+
exports[`call-logic:toVue json-deserialize 1`] = `
|
|
37
|
+
"JSON.parse(variable1);
|
|
38
|
+
"
|
|
39
|
+
`;
|
|
40
|
+
|
|
41
|
+
exports[`call-logic:toVue json-serialize 1`] = `
|
|
42
|
+
"$utils[\\"JsonSerialize\\"](variable1);
|
|
43
|
+
"
|
|
44
|
+
`;
|
|
45
|
+
|
|
46
|
+
exports[`call-logic:toVue json-serialize-with-string 1`] = `
|
|
47
|
+
"JSON.stringify(variable1);
|
|
48
|
+
"
|
|
49
|
+
`;
|
|
50
|
+
|
|
51
|
+
exports[`call-logic:toVue nested-call-logic 1`] = `
|
|
52
|
+
"exchange(
|
|
53
|
+
$utils[\\"ToString\\"](
|
|
54
|
+
\\"nasl.core.String\\",
|
|
55
|
+
\`https://dysmsapi.aliyuncs.com/?AccessKeyId=LTAI5tPhPfe7NDP1qzrQjkuV&Action=SendSms&Format=JSON&Signature=\`
|
|
56
|
+
) +
|
|
57
|
+
$utils[\\"ToString\\"](\\"nasl.core.String\\", encryptWithUrlEncode(sign)) +
|
|
58
|
+
$utils[\\"ToString\\"](
|
|
59
|
+
\\"nasl.core.String\\",
|
|
60
|
+
\`&SignatureMethod=HMAC-SHA1&SignatureVersion=1.0&Timestamp=\`
|
|
61
|
+
) +
|
|
62
|
+
$utils[\\"ToString\\"](\\"nasl.core.String\\", encryptWithUrlEncode(currDate)) +
|
|
63
|
+
$utils[\\"ToString\\"](
|
|
64
|
+
\\"nasl.core.String\\",
|
|
65
|
+
\`&Version=2017-05-25&SignatureNonce=\`
|
|
66
|
+
) +
|
|
67
|
+
$utils[\\"ToString\\"](\\"nasl.core.String\\", SignatureNonce) +
|
|
68
|
+
$utils[\\"ToString\\"](\\"nasl.core.String\\", \`&PhoneNumbers=\`) +
|
|
69
|
+
$utils[\\"ToString\\"](\\"nasl.core.String\\", receiver) +
|
|
70
|
+
$utils[\\"ToString\\"](\\"nasl.core.String\\", \`&SignName=\`) +
|
|
71
|
+
$utils[\\"ToString\\"](\\"nasl.core.String\\", signName) +
|
|
72
|
+
$utils[\\"ToString\\"](\\"nasl.core.String\\", \`&TemplateCode=\`) +
|
|
73
|
+
$utils[\\"ToString\\"](\\"nasl.core.String\\", templateCode) +
|
|
74
|
+
$utils[\\"ToString\\"](\\"nasl.core.String\\", \`&TemolateParam=\`) +
|
|
75
|
+
$utils[\\"ToString\\"](\\"nasl.core.String\\", encryptWithUrlEncode(templateParam)),
|
|
76
|
+
\`Get\`,
|
|
77
|
+
header,
|
|
78
|
+
body
|
|
79
|
+
);
|
|
80
|
+
"
|
|
81
|
+
`;
|
|
82
|
+
|
|
83
|
+
exports[`call-logic:toVue only-call-logic 1`] = `
|
|
84
|
+
"$global.logout();
|
|
85
|
+
"
|
|
86
|
+
`;
|
|
87
|
+
|
|
88
|
+
exports[`call-logic:toVue view-buildin-logic-with-argument 1`] = `
|
|
89
|
+
"downloadFile(\`www.baidu.com\`, \`test.txt\`);
|
|
90
|
+
"
|
|
91
|
+
`;
|
|
92
|
+
|
|
93
|
+
exports[`call-logic:toVue view-component-logic-no-argument 1`] = `
|
|
94
|
+
"openLoading();
|
|
95
|
+
"
|
|
96
|
+
`;
|
|
97
|
+
|
|
98
|
+
exports[`call-logic:toVue view-component-with-validation 1`] = `
|
|
99
|
+
"logic1(\`123\`);
|
|
100
|
+
"
|
|
101
|
+
`;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`call-logic:toVueDesigner json-deserialize 1`] = `"JSON 反序列化(variable1)"`;
|
|
4
|
+
|
|
5
|
+
exports[`call-logic:toVueDesigner json-serialize 1`] = `"JSON 序列化(variable1)"`;
|
|
6
|
+
|
|
7
|
+
exports[`call-logic:toVueDesigner json-serialize-with-string 1`] = `"JSON 序列化(variable1)"`;
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
{
|
|
2
|
+
"concept": "App",
|
|
3
|
+
"name": "dsadsadsa3213213",
|
|
4
|
+
"id": "9bce21ed-9f56-40c7-b50e-161c52b407a3",
|
|
5
|
+
"ideVersion": "3.3",
|
|
6
|
+
"title": "苏方舟3.3测试(勿删)",
|
|
7
|
+
"icon": "",
|
|
8
|
+
"desc": "",
|
|
9
|
+
"dnsAddr": "http://dsadsadsa3213213.defaulttenant.lcap.hatest.163yun.com",
|
|
10
|
+
"hasUserCenter": true,
|
|
11
|
+
"hasAuth": true,
|
|
12
|
+
"dataSources": [],
|
|
13
|
+
"structures": [],
|
|
14
|
+
"enums": [],
|
|
15
|
+
"logics": [],
|
|
16
|
+
"overriddenLogics": [],
|
|
17
|
+
"interfaces": [],
|
|
18
|
+
"frontends": [
|
|
19
|
+
{
|
|
20
|
+
"concept": "Frontend",
|
|
21
|
+
"name": "pc",
|
|
22
|
+
"title": "PC端",
|
|
23
|
+
"type": "pc",
|
|
24
|
+
"path": "/",
|
|
25
|
+
"documentTitle": null,
|
|
26
|
+
"documentIcon": null,
|
|
27
|
+
"bindEvents": [],
|
|
28
|
+
"views": [
|
|
29
|
+
{
|
|
30
|
+
"concept": "View",
|
|
31
|
+
"changedTime": 1700220400141,
|
|
32
|
+
"name": "test",
|
|
33
|
+
"title": "",
|
|
34
|
+
"crumb": null,
|
|
35
|
+
"auth": false,
|
|
36
|
+
"isIndex": false,
|
|
37
|
+
"script": "",
|
|
38
|
+
"elements": [
|
|
39
|
+
{
|
|
40
|
+
"concept": "ViewElement",
|
|
41
|
+
"name": "uLinearLayout1",
|
|
42
|
+
"type": 0,
|
|
43
|
+
"tag": "u-linear-layout",
|
|
44
|
+
"staticClass": null,
|
|
45
|
+
"staticStyle": "height:100%; --custom-start: auto; min-height: 200px;",
|
|
46
|
+
"slotTarget": null,
|
|
47
|
+
"slotScope": null,
|
|
48
|
+
"bindAttrs": [],
|
|
49
|
+
"bindEvents": [],
|
|
50
|
+
"bindDirectives": [],
|
|
51
|
+
"bindRoles": [],
|
|
52
|
+
"bindStyles": [],
|
|
53
|
+
"children": [
|
|
54
|
+
{
|
|
55
|
+
"concept": "ViewElement",
|
|
56
|
+
"changedTime": 1700220406982,
|
|
57
|
+
"name": "text_1",
|
|
58
|
+
"tag": "u-text",
|
|
59
|
+
"staticStyle": "--custom-start: auto;",
|
|
60
|
+
"bindAttrs": [
|
|
61
|
+
{
|
|
62
|
+
"concept": "BindAttribute",
|
|
63
|
+
"changedTime": 1701169488568,
|
|
64
|
+
"name": "text",
|
|
65
|
+
"type": "dynamic",
|
|
66
|
+
"value": "普通文本",
|
|
67
|
+
"expression": {
|
|
68
|
+
"__$Selected": true,
|
|
69
|
+
"concept": "CallLogic",
|
|
70
|
+
"name": "",
|
|
71
|
+
"label": "JSON 反序列化",
|
|
72
|
+
"folded": false,
|
|
73
|
+
"uuid": "5f8e4543a9624e4fa6c22b0d9fe417b9",
|
|
74
|
+
"calleeNamespace": "nasl.util",
|
|
75
|
+
"calleeName": "jsonDeserialize",
|
|
76
|
+
"shortcut": true,
|
|
77
|
+
"typeArguments": null,
|
|
78
|
+
"arguments": [
|
|
79
|
+
{
|
|
80
|
+
"concept": "Argument",
|
|
81
|
+
"changedTime": 1701169493575,
|
|
82
|
+
"name": "",
|
|
83
|
+
"folded": false,
|
|
84
|
+
"keyword": "arg",
|
|
85
|
+
"expression": {
|
|
86
|
+
"concept": "Identifier",
|
|
87
|
+
"name": "variable1",
|
|
88
|
+
"folded": false,
|
|
89
|
+
"namespace": ""
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
]
|
|
93
|
+
},
|
|
94
|
+
"rules": [],
|
|
95
|
+
"sync": false,
|
|
96
|
+
"playground": []
|
|
97
|
+
}
|
|
98
|
+
],
|
|
99
|
+
"bindEvents": [],
|
|
100
|
+
"bindDirectives": [],
|
|
101
|
+
"bindRoles": [],
|
|
102
|
+
"bindStyles": [],
|
|
103
|
+
"children": []
|
|
104
|
+
}
|
|
105
|
+
]
|
|
106
|
+
}
|
|
107
|
+
],
|
|
108
|
+
"params": [],
|
|
109
|
+
"variables": [
|
|
110
|
+
{
|
|
111
|
+
"concept": "Variable",
|
|
112
|
+
"changedTime": 1701169481170,
|
|
113
|
+
"name": "variable1",
|
|
114
|
+
"typeAnnotation": {
|
|
115
|
+
"concept": "TypeAnnotation",
|
|
116
|
+
"name": "",
|
|
117
|
+
"typeKind": "primitive",
|
|
118
|
+
"typeNamespace": "nasl.core",
|
|
119
|
+
"typeName": "String",
|
|
120
|
+
"typeArguments": null,
|
|
121
|
+
"returnType": null,
|
|
122
|
+
"properties": null
|
|
123
|
+
},
|
|
124
|
+
"defaultValue": "测试文本"
|
|
125
|
+
}
|
|
126
|
+
],
|
|
127
|
+
"logics": [],
|
|
128
|
+
"bindEvents": [],
|
|
129
|
+
"bindRoles": [],
|
|
130
|
+
"children": []
|
|
131
|
+
}
|
|
132
|
+
],
|
|
133
|
+
"variables": [],
|
|
134
|
+
"theme": {
|
|
135
|
+
"concept": "Theme",
|
|
136
|
+
"name": "",
|
|
137
|
+
"title": "默认主题样式",
|
|
138
|
+
"variableMap": {}
|
|
139
|
+
},
|
|
140
|
+
"componentDependencies": [],
|
|
141
|
+
"globalScaleEnabled": false,
|
|
142
|
+
"canvasWidth": 0
|
|
143
|
+
}
|
|
144
|
+
],
|
|
145
|
+
"backend": {
|
|
146
|
+
"concept": "Backend",
|
|
147
|
+
"name": "",
|
|
148
|
+
"variables": []
|
|
149
|
+
},
|
|
150
|
+
"processes": [],
|
|
151
|
+
"roles": [],
|
|
152
|
+
"configuration": {
|
|
153
|
+
"concept": "Configuration",
|
|
154
|
+
"name": "",
|
|
155
|
+
"groups": []
|
|
156
|
+
},
|
|
157
|
+
"dependencies": [],
|
|
158
|
+
"interfaceDependencies": [],
|
|
159
|
+
"integration": null,
|
|
160
|
+
"authLogics": [],
|
|
161
|
+
"authLogicsForCallInterface": [],
|
|
162
|
+
"connections": [],
|
|
163
|
+
"triggerLaunchers": [],
|
|
164
|
+
"metadataTypes": [],
|
|
165
|
+
"preferenceMap": {
|
|
166
|
+
"namingConvention.tableName": "snake_case",
|
|
167
|
+
"namingConvention.columnName": "snake_case",
|
|
168
|
+
"javaLogicEnabled": "false",
|
|
169
|
+
"onDemandInterfaceGeneration": "true",
|
|
170
|
+
"serverValidationRules": "auto",
|
|
171
|
+
"metadataTypeEnable": false
|
|
172
|
+
}
|
|
173
|
+
}
|