@lcap/nasl 2.12.0 → 2.13.0-beta
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/package.json +1 -1
- package/src/bak/translator.js +8 -1
- package/src/common/BaseNode.ts +1 -1
- package/src/concepts/App__.ts +38 -1
- package/src/concepts/Argument__.ts +1 -1
- package/src/concepts/Assignee__.ts +1 -1
- package/src/concepts/Assignment__.ts +1 -1
- package/src/concepts/Attribute__.ts +1 -1
- package/src/concepts/BinaryExpression__.ts +21 -4
- package/src/concepts/BindAttribute__.ts +1 -1
- package/src/concepts/BindDirective__.ts +4 -0
- package/src/concepts/BindEvent__.ts +416 -59
- package/src/concepts/BooleanLiteral__.ts +1 -1
- package/src/concepts/CallFunction__.ts +1 -1
- package/src/concepts/CallInterface__.ts +3 -1
- package/src/concepts/CallLogic__.ts +1 -1
- package/src/concepts/CallQueryComponent__.ts +1 -1
- package/src/concepts/Comment__.ts +1 -1
- package/src/concepts/CompletionProperty__.ts +1 -2
- package/src/concepts/ConfigGroup__.ts +1 -1
- package/src/concepts/ConfigPropertyValue__.ts +1 -1
- package/src/concepts/ConfigProperty__.ts +1 -1
- package/src/concepts/Configuration__.ts +1 -1
- package/src/concepts/Constant__.ts +1 -1
- package/src/concepts/DataElement__.ts +1 -1
- package/src/concepts/DataSource__.ts +1 -1
- package/src/concepts/Destination__.ts +3 -2
- package/src/concepts/End__.ts +1 -1
- package/src/concepts/EntityIndex__.ts +1 -1
- package/src/concepts/EntityProperty__.ts +1 -1
- package/src/concepts/Entity__.ts +1 -2
- package/src/concepts/EnumItem__.ts +1 -1
- package/src/concepts/Enum__.ts +1 -1
- package/src/concepts/Event__.ts +1 -1
- package/src/concepts/ForEachStatement__.ts +1 -1
- package/src/concepts/Function__.ts +65 -41
- package/src/concepts/Identifier__.ts +2 -2
- package/src/concepts/IfStatement__.ts +1 -1
- package/src/concepts/InterfaceParam__.ts +1 -1
- package/src/concepts/Interface__.ts +2 -1
- package/src/concepts/JSBlock__.ts +7 -0
- package/src/concepts/LogicItem__.ts +1 -1
- package/src/concepts/Logic__.ts +116 -14
- package/src/concepts/MemberExpression__.ts +1 -1
- package/src/concepts/Module__.ts +129 -107
- package/src/concepts/Namespace__.ts +1 -1
- package/src/concepts/NullLiteral__.ts +1 -1
- package/src/concepts/NumericLiteral__.ts +1 -1
- package/src/concepts/Param__.ts +7 -1
- package/src/concepts/Point__.ts +1 -1
- package/src/concepts/ProcessComponent__.ts +1 -1
- package/src/concepts/ProcessElement__.ts +228 -2
- package/src/concepts/ProcessOutcome__.ts +1 -1
- package/src/concepts/Process__.ts +242 -3
- package/src/concepts/QueryAggregateExpression__.ts +1 -1
- package/src/concepts/QueryFieldExpression__.ts +1 -1
- package/src/concepts/QueryFromExpression__.ts +1 -1
- package/src/concepts/QueryGroupByExpression__.ts +1 -1
- package/src/concepts/QueryJoinExpression__.ts +1 -1
- package/src/concepts/QueryLimitExpression__.ts +1 -1
- package/src/concepts/QueryOrderByExpression__.ts +1 -1
- package/src/concepts/QuerySelectExpression__.ts +1 -1
- package/src/concepts/Rect__.ts +1 -1
- package/src/concepts/Return__.ts +1 -1
- package/src/concepts/Role__.ts +1 -1
- package/src/concepts/Slot__.ts +1 -1
- package/src/concepts/SqlQueryComponent__.ts +14 -4
- package/src/concepts/Start__.ts +1 -1
- package/src/concepts/StringLiteral__.ts +1 -1
- package/src/concepts/StructureProperty__.ts +4 -0
- package/src/concepts/Structure__.ts +1 -1
- package/src/concepts/SwitchCase__.ts +1 -1
- package/src/concepts/SwitchStatement__.ts +1 -1
- package/src/concepts/Theme__.ts +1 -1
- package/src/concepts/Transactional__.ts +1 -1
- package/src/concepts/TypeAnnotation__.ts +32 -3
- package/src/concepts/TypeParam__.ts +1 -1
- package/src/concepts/UnaryExpression__.ts +1 -1
- package/src/concepts/Unparsed__.ts +1 -1
- package/src/concepts/UseComponent__.ts +1 -1
- package/src/concepts/ValidationRule__.ts +1 -1
- package/src/concepts/Variable__.ts +1 -1
- package/src/concepts/ViewComponent__.ts +1 -1
- package/src/concepts/ViewElement__.ts +34 -17
- package/src/concepts/View__.ts +75 -12
- package/src/concepts/WhileStatement__.ts +1 -1
- package/src/concepts/basics/stdlib/nasl.ui.ts +4 -0
- package/src/concepts/basics/stdlib/nasl.util.ts +2 -2
- package/src/concepts/basics/types/coreTypeList.ts +1 -0
- package/src/enums/KEYWORDS.ts +3 -0
- package/src/server/createUiTs.ts +26 -2
- package/src/server/events.yaml +89 -0
- package/src/server/getMemberIdentifier.ts +121 -28
- package/src/server/getProcesses.ts +30 -29
- package/src/server/index.ts +4 -0
- package/src/server/naslServer.ts +46 -12
- package/src/server/translator.ts +25 -13
- package/src/templator/genCreateBlock.ts +4 -0
- package/src/templator/genCurdEditMultipleKeyBlock.ts +10 -3
- package/src/templator/genCurdMultipleKeyBlock.ts +36 -21
- package/src/templator/genEditTableBlock.ts +2 -27
- package/src/templator/genGridViewBlock.ts +0 -13
- package/src/templator/genTableBlock.ts +0 -13
- package/src/templator/genUpdateBlock.ts +4 -0
- package/src/templator/utils.ts +1 -0
- package/out/automate/engine/index.d.ts +0 -4
- package/out/automate/engine/index.js +0 -436
- package/out/automate/engine/index.js.map +0 -1
- package/out/automate/engine/operators.d.ts +0 -21
- package/out/automate/engine/operators.js +0 -161
- package/out/automate/engine/operators.js.map +0 -1
- package/out/automate/engine/uniqueName.d.ts +0 -12
- package/out/automate/engine/uniqueName.js +0 -107
- package/out/automate/engine/uniqueName.js.map +0 -1
- package/out/automate/engine/utils.d.ts +0 -25
- package/out/automate/engine/utils.js +0 -404
- package/out/automate/engine/utils.js.map +0 -1
- package/out/automate/template/process.d.ts +0 -9
- package/out/automate/template/process.js +0 -10976
- package/out/automate/template/process.js.map +0 -1
- package/out/bak/translator.d.ts +0 -1
- package/out/bak/translator.js +0 -112
- package/out/bak/translator.js.map +0 -1
- package/out/common/BaseNode.d.ts +0 -256
- package/out/common/BaseNode.js +0 -891
- package/out/common/BaseNode.js.map +0 -1
- package/out/common/Command.d.ts +0 -8
- package/out/common/Command.js +0 -32
- package/out/common/Command.js.map +0 -1
- package/out/common/ComponentAPI.d.ts +0 -110
- package/out/common/ComponentAPI.js +0 -3
- package/out/common/ComponentAPI.js.map +0 -1
- package/out/common/EventEmitter.d.ts +0 -58
- package/out/common/EventEmitter.js +0 -68
- package/out/common/EventEmitter.js.map +0 -1
- package/out/common/Messager.d.ts +0 -86
- package/out/common/Messager.js +0 -187
- package/out/common/Messager.js.map +0 -1
- package/out/common/classMap.d.ts +0 -4
- package/out/common/classMap.js +0 -5
- package/out/common/classMap.js.map +0 -1
- package/out/common/index.d.ts +0 -4
- package/out/common/index.js +0 -21
- package/out/common/index.js.map +0 -1
- package/out/concepts/App__.d.ts +0 -1119
- package/out/concepts/App__.js +0 -1591
- package/out/concepts/App__.js.map +0 -1
- package/out/concepts/Argument__.d.ts +0 -58
- package/out/concepts/Argument__.js +0 -198
- package/out/concepts/Argument__.js.map +0 -1
- package/out/concepts/Assignee__.d.ts +0 -201
- package/out/concepts/Assignee__.js +0 -298
- package/out/concepts/Assignee__.js.map +0 -1
- package/out/concepts/Assignment__.d.ts +0 -70
- package/out/concepts/Assignment__.js +0 -201
- package/out/concepts/Assignment__.js.map +0 -1
- package/out/concepts/Attribute__.d.ts +0 -101
- package/out/concepts/Attribute__.js +0 -221
- package/out/concepts/Attribute__.js.map +0 -1
- package/out/concepts/BinaryExpression__.d.ts +0 -64
- package/out/concepts/BinaryExpression__.js +0 -251
- package/out/concepts/BinaryExpression__.js.map +0 -1
- package/out/concepts/BindAttribute__.d.ts +0 -231
- package/out/concepts/BindAttribute__.js +0 -450
- package/out/concepts/BindAttribute__.js.map +0 -1
- package/out/concepts/BindDirective__.d.ts +0 -93
- package/out/concepts/BindDirective__.js +0 -251
- package/out/concepts/BindDirective__.js.map +0 -1
- package/out/concepts/BindEvent__.d.ts +0 -139
- package/out/concepts/BindEvent__.js +0 -369
- package/out/concepts/BindEvent__.js.map +0 -1
- package/out/concepts/BooleanLiteral__.d.ts +0 -31
- package/out/concepts/BooleanLiteral__.js +0 -91
- package/out/concepts/BooleanLiteral__.js.map +0 -1
- package/out/concepts/CallFunction__.d.ts +0 -153
- package/out/concepts/CallFunction__.js +0 -381
- package/out/concepts/CallFunction__.js.map +0 -1
- package/out/concepts/CallInterface__.d.ts +0 -103
- package/out/concepts/CallInterface__.js +0 -441
- package/out/concepts/CallInterface__.js.map +0 -1
- package/out/concepts/CallLogic__.d.ts +0 -170
- package/out/concepts/CallLogic__.js +0 -604
- package/out/concepts/CallLogic__.js.map +0 -1
- package/out/concepts/CallQueryComponent__.d.ts +0 -345
- package/out/concepts/CallQueryComponent__.js +0 -1009
- package/out/concepts/CallQueryComponent__.js.map +0 -1
- package/out/concepts/Comment__.d.ts +0 -30
- package/out/concepts/Comment__.js +0 -93
- package/out/concepts/Comment__.js.map +0 -1
- package/out/concepts/CompletionProperty__.d.ts +0 -101
- package/out/concepts/CompletionProperty__.js +0 -237
- package/out/concepts/CompletionProperty__.js.map +0 -1
- package/out/concepts/ConfigGroup__.d.ts +0 -121
- package/out/concepts/ConfigGroup__.js +0 -221
- package/out/concepts/ConfigGroup__.js.map +0 -1
- package/out/concepts/ConfigPropertyValue__.d.ts +0 -43
- package/out/concepts/ConfigPropertyValue__.js +0 -103
- package/out/concepts/ConfigPropertyValue__.js.map +0 -1
- package/out/concepts/ConfigProperty__.d.ts +0 -129
- package/out/concepts/ConfigProperty__.js +0 -239
- package/out/concepts/ConfigProperty__.js.map +0 -1
- package/out/concepts/Configuration__.d.ts +0 -121
- package/out/concepts/Configuration__.js +0 -213
- package/out/concepts/Configuration__.js.map +0 -1
- package/out/concepts/Constant__.d.ts +0 -99
- package/out/concepts/Constant__.js +0 -237
- package/out/concepts/Constant__.js.map +0 -1
- package/out/concepts/DataElement__.d.ts +0 -45
- package/out/concepts/DataElement__.js +0 -114
- package/out/concepts/DataElement__.js.map +0 -1
- package/out/concepts/DataSource__.d.ts +0 -143
- package/out/concepts/DataSource__.js +0 -318
- package/out/concepts/DataSource__.js.map +0 -1
- package/out/concepts/Destination__.d.ts +0 -120
- package/out/concepts/Destination__.js +0 -433
- package/out/concepts/Destination__.js.map +0 -1
- package/out/concepts/End__.d.ts +0 -23
- package/out/concepts/End__.js +0 -84
- package/out/concepts/End__.js.map +0 -1
- package/out/concepts/EntityIndex__.d.ts +0 -94
- package/out/concepts/EntityIndex__.js +0 -215
- package/out/concepts/EntityIndex__.js.map +0 -1
- package/out/concepts/EntityProperty__.d.ts +0 -231
- package/out/concepts/EntityProperty__.js +0 -567
- package/out/concepts/EntityProperty__.js.map +0 -1
- package/out/concepts/Entity__.d.ts +0 -297
- package/out/concepts/Entity__.js +0 -572
- package/out/concepts/Entity__.js.map +0 -1
- package/out/concepts/EnumItem__.d.ts +0 -60
- package/out/concepts/EnumItem__.js +0 -136
- package/out/concepts/EnumItem__.js.map +0 -1
- package/out/concepts/Enum__.d.ts +0 -135
- package/out/concepts/Enum__.js +0 -293
- package/out/concepts/Enum__.js.map +0 -1
- package/out/concepts/Event__.d.ts +0 -142
- package/out/concepts/Event__.js +0 -242
- package/out/concepts/Event__.js.map +0 -1
- package/out/concepts/ForEachStatement__.d.ts +0 -191
- package/out/concepts/ForEachStatement__.js +0 -441
- package/out/concepts/ForEachStatement__.js.map +0 -1
- package/out/concepts/Function__.d.ts +0 -406
- package/out/concepts/Function__.js +0 -657
- package/out/concepts/Function__.js.map +0 -1
- package/out/concepts/Identifier__.d.ts +0 -45
- package/out/concepts/Identifier__.js +0 -203
- package/out/concepts/Identifier__.js.map +0 -1
- package/out/concepts/IfStatement__.d.ts +0 -148
- package/out/concepts/IfStatement__.js +0 -280
- package/out/concepts/IfStatement__.js.map +0 -1
- package/out/concepts/InterfaceParam__.d.ts +0 -112
- package/out/concepts/InterfaceParam__.js +0 -311
- package/out/concepts/InterfaceParam__.js.map +0 -1
- package/out/concepts/Interface__.d.ts +0 -268
- package/out/concepts/Interface__.js +0 -598
- package/out/concepts/Interface__.js.map +0 -1
- package/out/concepts/JSBlock__.d.ts +0 -31
- package/out/concepts/JSBlock__.js +0 -90
- package/out/concepts/JSBlock__.js.map +0 -1
- package/out/concepts/LogicItem__.d.ts +0 -117
- package/out/concepts/LogicItem__.js +0 -233
- package/out/concepts/LogicItem__.js.map +0 -1
- package/out/concepts/Logic__.d.ts +0 -610
- package/out/concepts/Logic__.js +0 -1203
- package/out/concepts/Logic__.js.map +0 -1
- package/out/concepts/MemberExpression__.d.ts +0 -65
- package/out/concepts/MemberExpression__.js +0 -238
- package/out/concepts/MemberExpression__.js.map +0 -1
- package/out/concepts/Module__.d.ts +0 -675
- package/out/concepts/Module__.js +0 -914
- package/out/concepts/Module__.js.map +0 -1
- package/out/concepts/Namespace__.d.ts +0 -986
- package/out/concepts/Namespace__.js +0 -1301
- package/out/concepts/Namespace__.js.map +0 -1
- package/out/concepts/NullLiteral__.d.ts +0 -23
- package/out/concepts/NullLiteral__.js +0 -73
- package/out/concepts/NullLiteral__.js.map +0 -1
- package/out/concepts/NumericLiteral__.d.ts +0 -53
- package/out/concepts/NumericLiteral__.js +0 -172
- package/out/concepts/NumericLiteral__.js.map +0 -1
- package/out/concepts/Param__.d.ts +0 -147
- package/out/concepts/Param__.js +0 -366
- package/out/concepts/Param__.js.map +0 -1
- package/out/concepts/Point__.d.ts +0 -30
- package/out/concepts/Point__.js +0 -75
- package/out/concepts/Point__.js.map +0 -1
- package/out/concepts/ProcessComponent__.d.ts +0 -218
- package/out/concepts/ProcessComponent__.js +0 -333
- package/out/concepts/ProcessComponent__.js.map +0 -1
- package/out/concepts/ProcessElement__.d.ts +0 -554
- package/out/concepts/ProcessElement__.js +0 -998
- package/out/concepts/ProcessElement__.js.map +0 -1
- package/out/concepts/ProcessOutcome__.d.ts +0 -30
- package/out/concepts/ProcessOutcome__.js +0 -87
- package/out/concepts/ProcessOutcome__.js.map +0 -1
- package/out/concepts/Process__.d.ts +0 -451
- package/out/concepts/Process__.js +0 -773
- package/out/concepts/Process__.js.map +0 -1
- package/out/concepts/QueryAggregateExpression__.d.ts +0 -50
- package/out/concepts/QueryAggregateExpression__.js +0 -144
- package/out/concepts/QueryAggregateExpression__.js.map +0 -1
- package/out/concepts/QueryFieldExpression__.d.ts +0 -48
- package/out/concepts/QueryFieldExpression__.js +0 -132
- package/out/concepts/QueryFieldExpression__.js.map +0 -1
- package/out/concepts/QueryFromExpression__.d.ts +0 -95
- package/out/concepts/QueryFromExpression__.js +0 -192
- package/out/concepts/QueryFromExpression__.js.map +0 -1
- package/out/concepts/QueryGroupByExpression__.d.ts +0 -45
- package/out/concepts/QueryGroupByExpression__.js +0 -139
- package/out/concepts/QueryGroupByExpression__.js.map +0 -1
- package/out/concepts/QueryJoinExpression__.d.ts +0 -182
- package/out/concepts/QueryJoinExpression__.js +0 -312
- package/out/concepts/QueryJoinExpression__.js.map +0 -1
- package/out/concepts/QueryLimitExpression__.d.ts +0 -56
- package/out/concepts/QueryLimitExpression__.js +0 -156
- package/out/concepts/QueryLimitExpression__.js.map +0 -1
- package/out/concepts/QueryOrderByExpression__.d.ts +0 -67
- package/out/concepts/QueryOrderByExpression__.js +0 -169
- package/out/concepts/QueryOrderByExpression__.js.map +0 -1
- package/out/concepts/QuerySelectExpression__.d.ts +0 -114
- package/out/concepts/QuerySelectExpression__.js +0 -203
- package/out/concepts/QuerySelectExpression__.js.map +0 -1
- package/out/concepts/Rect__.d.ts +0 -38
- package/out/concepts/Rect__.js +0 -89
- package/out/concepts/Rect__.js.map +0 -1
- package/out/concepts/Return__.d.ts +0 -131
- package/out/concepts/Return__.js +0 -340
- package/out/concepts/Return__.js.map +0 -1
- package/out/concepts/Role__.d.ts +0 -61
- package/out/concepts/Role__.js +0 -164
- package/out/concepts/Role__.js.map +0 -1
- package/out/concepts/Slot__.d.ts +0 -57
- package/out/concepts/Slot__.js +0 -114
- package/out/concepts/Slot__.js.map +0 -1
- package/out/concepts/SqlQueryComponent__.d.ts +0 -61
- package/out/concepts/SqlQueryComponent__.js +0 -177
- package/out/concepts/SqlQueryComponent__.js.map +0 -1
- package/out/concepts/Start__.d.ts +0 -23
- package/out/concepts/Start__.js +0 -71
- package/out/concepts/Start__.js.map +0 -1
- package/out/concepts/StringLiteral__.d.ts +0 -35
- package/out/concepts/StringLiteral__.js +0 -125
- package/out/concepts/StringLiteral__.js.map +0 -1
- package/out/concepts/StructureProperty__.d.ts +0 -124
- package/out/concepts/StructureProperty__.js +0 -324
- package/out/concepts/StructureProperty__.js.map +0 -1
- package/out/concepts/Structure__.d.ts +0 -250
- package/out/concepts/Structure__.js +0 -440
- package/out/concepts/Structure__.js.map +0 -1
- package/out/concepts/SwitchCase__.d.ts +0 -92
- package/out/concepts/SwitchCase__.js +0 -229
- package/out/concepts/SwitchCase__.js.map +0 -1
- package/out/concepts/SwitchStatement__.d.ts +0 -82
- package/out/concepts/SwitchStatement__.js +0 -175
- package/out/concepts/SwitchStatement__.js.map +0 -1
- package/out/concepts/Theme__.d.ts +0 -36
- package/out/concepts/Theme__.js +0 -86
- package/out/concepts/Theme__.js.map +0 -1
- package/out/concepts/Transactional__.d.ts +0 -76
- package/out/concepts/Transactional__.js +0 -151
- package/out/concepts/Transactional__.js.map +0 -1
- package/out/concepts/TypeAnnotation__.d.ts +0 -133
- package/out/concepts/TypeAnnotation__.js +0 -412
- package/out/concepts/TypeAnnotation__.js.map +0 -1
- package/out/concepts/TypeParam__.d.ts +0 -20
- package/out/concepts/TypeParam__.js +0 -57
- package/out/concepts/TypeParam__.js.map +0 -1
- package/out/concepts/UnaryExpression__.d.ts +0 -46
- package/out/concepts/UnaryExpression__.js +0 -166
- package/out/concepts/UnaryExpression__.js.map +0 -1
- package/out/concepts/Unparsed__.d.ts +0 -29
- package/out/concepts/Unparsed__.js +0 -88
- package/out/concepts/Unparsed__.js.map +0 -1
- package/out/concepts/UseComponent__.d.ts +0 -30
- package/out/concepts/UseComponent__.js +0 -75
- package/out/concepts/UseComponent__.js.map +0 -1
- package/out/concepts/ValidationRule__.d.ts +0 -94
- package/out/concepts/ValidationRule__.js +0 -254
- package/out/concepts/ValidationRule__.js.map +0 -1
- package/out/concepts/Variable__.d.ts +0 -130
- package/out/concepts/Variable__.js +0 -338
- package/out/concepts/Variable__.js.map +0 -1
- package/out/concepts/ViewComponent__.d.ts +0 -472
- package/out/concepts/ViewComponent__.js +0 -644
- package/out/concepts/ViewComponent__.js.map +0 -1
- package/out/concepts/ViewElement__.d.ts +0 -490
- package/out/concepts/ViewElement__.js +0 -1414
- package/out/concepts/ViewElement__.js.map +0 -1
- package/out/concepts/View__.d.ts +0 -683
- package/out/concepts/View__.js +0 -1333
- package/out/concepts/View__.js.map +0 -1
- package/out/concepts/WhileStatement__.d.ts +0 -95
- package/out/concepts/WhileStatement__.js +0 -208
- package/out/concepts/WhileStatement__.js.map +0 -1
- package/out/concepts/basics/stdlib/index.d.ts +0 -4
- package/out/concepts/basics/stdlib/index.js +0 -26
- package/out/concepts/basics/stdlib/index.js.map +0 -1
- package/out/concepts/basics/stdlib/nasl.auth.d.ts +0 -3
- package/out/concepts/basics/stdlib/nasl.auth.js +0 -50
- package/out/concepts/basics/stdlib/nasl.auth.js.map +0 -1
- package/out/concepts/basics/stdlib/nasl.browser.d.ts +0 -3
- package/out/concepts/basics/stdlib/nasl.browser.js +0 -41
- package/out/concepts/basics/stdlib/nasl.browser.js.map +0 -1
- package/out/concepts/basics/stdlib/nasl.collection.d.ts +0 -7
- package/out/concepts/basics/stdlib/nasl.collection.js +0 -83
- package/out/concepts/basics/stdlib/nasl.collection.js.map +0 -1
- package/out/concepts/basics/stdlib/nasl.configuration.d.ts +0 -3
- package/out/concepts/basics/stdlib/nasl.configuration.js +0 -25
- package/out/concepts/basics/stdlib/nasl.configuration.js.map +0 -1
- package/out/concepts/basics/stdlib/nasl.core.d.ts +0 -3
- package/out/concepts/basics/stdlib/nasl.core.js +0 -15
- package/out/concepts/basics/stdlib/nasl.core.js.map +0 -1
- package/out/concepts/basics/stdlib/nasl.interface.d.ts +0 -7
- package/out/concepts/basics/stdlib/nasl.interface.js +0 -43
- package/out/concepts/basics/stdlib/nasl.interface.js.map +0 -1
- package/out/concepts/basics/stdlib/nasl.process.d.ts +0 -7
- package/out/concepts/basics/stdlib/nasl.process.js +0 -453
- package/out/concepts/basics/stdlib/nasl.process.js.map +0 -1
- package/out/concepts/basics/stdlib/nasl.ui.d.ts +0 -7
- package/out/concepts/basics/stdlib/nasl.ui.js +0 -824
- package/out/concepts/basics/stdlib/nasl.ui.js.map +0 -1
- package/out/concepts/basics/stdlib/nasl.util.d.ts +0 -3
- package/out/concepts/basics/stdlib/nasl.util.js +0 -1030
- package/out/concepts/basics/stdlib/nasl.util.js.map +0 -1
- package/out/concepts/basics/stdlib/nasl.validation.d.ts +0 -3
- package/out/concepts/basics/stdlib/nasl.validation.js +0 -561
- package/out/concepts/basics/stdlib/nasl.validation.js.map +0 -1
- package/out/concepts/basics/stdlib/reference2TypeAnnotationList.d.ts +0 -5
- package/out/concepts/basics/stdlib/reference2TypeAnnotationList.js +0 -26
- package/out/concepts/basics/stdlib/reference2TypeAnnotationList.js.map +0 -1
- package/out/concepts/basics/types/coreTypeList.d.ts +0 -2
- package/out/concepts/basics/types/coreTypeList.js +0 -18
- package/out/concepts/basics/types/coreTypeList.js.map +0 -1
- package/out/concepts/basics/types/index.d.ts +0 -13
- package/out/concepts/basics/types/index.js +0 -27
- package/out/concepts/basics/types/index.js.map +0 -1
- package/out/concepts/index.d.ts +0 -5
- package/out/concepts/index.js +0 -24
- package/out/concepts/index.js.map +0 -1
- package/out/concepts/index__.d.ts +0 -83
- package/out/concepts/index__.js +0 -100
- package/out/concepts/index__.js.map +0 -1
- package/out/config.d.ts +0 -42
- package/out/config.js +0 -71
- package/out/config.js.map +0 -1
- package/out/decorators/index.d.ts +0 -54
- package/out/decorators/index.js +0 -149
- package/out/decorators/index.js.map +0 -1
- package/out/enums/KEYWORDS.d.ts +0 -3
- package/out/enums/KEYWORDS.js +0 -1199
- package/out/enums/KEYWORDS.js.map +0 -1
- package/out/enums/LEVEL_NAME_MAP.d.ts +0 -26
- package/out/enums/LEVEL_NAME_MAP.js +0 -30
- package/out/enums/LEVEL_NAME_MAP.js.map +0 -1
- package/out/eventBus.d.ts +0 -3
- package/out/eventBus.js +0 -7
- package/out/eventBus.js.map +0 -1
- package/out/generator/compileComponent.d.ts +0 -11
- package/out/generator/compileComponent.js +0 -12
- package/out/generator/compileComponent.js.map +0 -1
- package/out/generator/genBundleFiles.d.ts +0 -44
- package/out/generator/genBundleFiles.js +0 -387
- package/out/generator/genBundleFiles.js.map +0 -1
- package/out/generator/genHash.d.ts +0 -7
- package/out/generator/genHash.js +0 -39
- package/out/generator/genHash.js.map +0 -1
- package/out/generator/genMetaData.d.ts +0 -36
- package/out/generator/genMetaData.js +0 -121
- package/out/generator/genMetaData.js.map +0 -1
- package/out/generator/index.d.ts +0 -5
- package/out/generator/index.js +0 -22
- package/out/generator/index.js.map +0 -1
- package/out/generator/styleReplacer.d.ts +0 -3
- package/out/generator/styleReplacer.js +0 -71
- package/out/generator/styleReplacer.js.map +0 -1
- package/out/index.d.ts +0 -11
- package/out/index.js +0 -53
- package/out/index.js.map +0 -1
- package/out/manager/diagnostic.d.ts +0 -38
- package/out/manager/diagnostic.js +0 -84
- package/out/manager/diagnostic.js.map +0 -1
- package/out/manager/history.d.ts +0 -0
- package/out/manager/history.js +0 -1
- package/out/manager/history.js.map +0 -1
- package/out/manager/problem.d.ts +0 -0
- package/out/manager/problem.js +0 -1
- package/out/manager/problem.js.map +0 -1
- package/out/server/createUiTs.d.ts +0 -8
- package/out/server/createUiTs.js +0 -204
- package/out/server/createUiTs.js.map +0 -1
- package/out/server/entity2LogicNamespace.d.ts +0 -10
- package/out/server/entity2LogicNamespace.js +0 -217
- package/out/server/entity2LogicNamespace.js.map +0 -1
- package/out/server/extendBaseNode.d.ts +0 -1
- package/out/server/extendBaseNode.js +0 -323
- package/out/server/extendBaseNode.js.map +0 -1
- package/out/server/getExtensionModules.d.ts +0 -3
- package/out/server/getExtensionModules.js +0 -20
- package/out/server/getExtensionModules.js.map +0 -1
- package/out/server/getFunctions.d.ts +0 -3
- package/out/server/getFunctions.js +0 -20
- package/out/server/getFunctions.js.map +0 -1
- package/out/server/getInterfaces.d.ts +0 -2
- package/out/server/getInterfaces.js +0 -48
- package/out/server/getInterfaces.js.map +0 -1
- package/out/server/getLogics.d.ts +0 -3
- package/out/server/getLogics.js +0 -210
- package/out/server/getLogics.js.map +0 -1
- package/out/server/getMemberIdentifier.d.ts +0 -22
- package/out/server/getMemberIdentifier.js +0 -459
- package/out/server/getMemberIdentifier.js.map +0 -1
- package/out/server/getProcessComponents.d.ts +0 -2
- package/out/server/getProcessComponents.js +0 -13
- package/out/server/getProcessComponents.js.map +0 -1
- package/out/server/getProcesses.d.ts +0 -33
- package/out/server/getProcesses.js +0 -565
- package/out/server/getProcesses.js.map +0 -1
- package/out/server/getScope.d.ts +0 -13
- package/out/server/getScope.js +0 -61
- package/out/server/getScope.js.map +0 -1
- package/out/server/getValidates.d.ts +0 -3
- package/out/server/getValidates.js +0 -14
- package/out/server/getValidates.js.map +0 -1
- package/out/server/index.d.ts +0 -3
- package/out/server/index.js +0 -33
- package/out/server/index.js.map +0 -1
- package/out/server/naslServer.d.ts +0 -136
- package/out/server/naslServer.js +0 -1733
- package/out/server/naslServer.js.map +0 -1
- package/out/server/process2LogicNamespace.d.ts +0 -26
- package/out/server/process2LogicNamespace.js +0 -97
- package/out/server/process2LogicNamespace.js.map +0 -1
- package/out/server/translator.d.ts +0 -24
- package/out/server/translator.js +0 -460
- package/out/server/translator.js.map +0 -1
- package/out/service/creator/add.configs.d.ts +0 -1
- package/out/service/creator/add.configs.js +0 -68
- package/out/service/creator/add.configs.js.map +0 -1
- package/out/service/creator/errHandles.d.ts +0 -18
- package/out/service/creator/errHandles.js +0 -65
- package/out/service/creator/errHandles.js.map +0 -1
- package/out/service/creator/index.d.ts +0 -1
- package/out/service/creator/index.js +0 -72
- package/out/service/creator/index.js.map +0 -1
- package/out/service/storage/api.d.ts +0 -18
- package/out/service/storage/api.js +0 -17
- package/out/service/storage/api.js.map +0 -1
- package/out/service/storage/index.d.ts +0 -2
- package/out/service/storage/index.js +0 -10
- package/out/service/storage/index.js.map +0 -1
- package/out/service/storage/init.d.ts +0 -13
- package/out/service/storage/init.js +0 -469
- package/out/service/storage/init.js.map +0 -1
- package/out/service/storage/jsoner.d.ts +0 -29
- package/out/service/storage/jsoner.js +0 -130
- package/out/service/storage/jsoner.js.map +0 -1
- package/out/service/storage/map.d.ts +0 -4
- package/out/service/storage/map.js +0 -54
- package/out/service/storage/map.js.map +0 -1
- package/out/service/storage/service.d.ts +0 -2
- package/out/service/storage/service.js +0 -10
- package/out/service/storage/service.js.map +0 -1
- package/out/service/storage/storagePoint.d.ts +0 -17
- package/out/service/storage/storagePoint.js +0 -76
- package/out/service/storage/storagePoint.js.map +0 -1
- package/out/templator/genCallComponentLogic.d.ts +0 -17
- package/out/templator/genCallComponentLogic.js +0 -30
- package/out/templator/genCallComponentLogic.js.map +0 -1
- package/out/templator/genCreateBlock.d.ts +0 -10
- package/out/templator/genCreateBlock.js +0 -327
- package/out/templator/genCreateBlock.js.map +0 -1
- package/out/templator/genCurdEditMultipleKeyBlock.d.ts +0 -2
- package/out/templator/genCurdEditMultipleKeyBlock.js +0 -475
- package/out/templator/genCurdEditMultipleKeyBlock.js.map +0 -1
- package/out/templator/genCurdMultipleKeyBlock.d.ts +0 -3
- package/out/templator/genCurdMultipleKeyBlock.js +0 -672
- package/out/templator/genCurdMultipleKeyBlock.js.map +0 -1
- package/out/templator/genEditTableBlock.d.ts +0 -51
- package/out/templator/genEditTableBlock.js +0 -303
- package/out/templator/genEditTableBlock.js.map +0 -1
- package/out/templator/genEnumSelectBlock.d.ts +0 -10
- package/out/templator/genEnumSelectBlock.js +0 -23
- package/out/templator/genEnumSelectBlock.js.map +0 -1
- package/out/templator/genGetBlock.d.ts +0 -6
- package/out/templator/genGetBlock.js +0 -135
- package/out/templator/genGetBlock.js.map +0 -1
- package/out/templator/genGridViewBlock.d.ts +0 -55
- package/out/templator/genGridViewBlock.js +0 -368
- package/out/templator/genGridViewBlock.js.map +0 -1
- package/out/templator/genListViewBlock.d.ts +0 -19
- package/out/templator/genListViewBlock.js +0 -141
- package/out/templator/genListViewBlock.js.map +0 -1
- package/out/templator/genQueryComponent.d.ts +0 -34
- package/out/templator/genQueryComponent.js +0 -322
- package/out/templator/genQueryComponent.js.map +0 -1
- package/out/templator/genSelectBlock.d.ts +0 -34
- package/out/templator/genSelectBlock.js +0 -143
- package/out/templator/genSelectBlock.js.map +0 -1
- package/out/templator/genTableBlock.d.ts +0 -53
- package/out/templator/genTableBlock.js +0 -305
- package/out/templator/genTableBlock.js.map +0 -1
- package/out/templator/genUpdateBlock.d.ts +0 -6
- package/out/templator/genUpdateBlock.js +0 -368
- package/out/templator/genUpdateBlock.js.map +0 -1
- package/out/templator/index.d.ts +0 -16
- package/out/templator/index.js +0 -34
- package/out/templator/index.js.map +0 -1
- package/out/templator/utils.d.ts +0 -645
- package/out/templator/utils.js +0 -426
- package/out/templator/utils.js.map +0 -1
- package/out/test/fixtures/env.d.ts +0 -5
- package/out/test/fixtures/env.js +0 -20
- package/out/test/fixtures/env.js.map +0 -1
- package/out/test/integration/connect-create-file.d.ts +0 -1
- package/out/test/integration/connect-create-file.js +0 -39
- package/out/test/integration/connect-create-file.js.map +0 -1
- package/out/test/integration/connect-file.d.ts +0 -1
- package/out/test/integration/connect-file.js +0 -49
- package/out/test/integration/connect-file.js.map +0 -1
- package/out/test/units/baseTypes/Assignment.spec.d.ts +0 -1
- package/out/test/units/baseTypes/Assignment.spec.js +0 -43
- package/out/test/units/baseTypes/Assignment.spec.js.map +0 -1
- package/out/test/units/baseTypes/CallLogic.spec.d.ts +0 -1
- package/out/test/units/baseTypes/CallLogic.spec.js +0 -44
- package/out/test/units/baseTypes/CallLogic.spec.js.map +0 -1
- package/out/test/units/baseTypes/StringLiteral.spec.d.ts +0 -1
- package/out/test/units/baseTypes/StringLiteral.spec.js +0 -75
- package/out/test/units/baseTypes/StringLiteral.spec.js.map +0 -1
- package/out/test/units/baseTypes/new.spec.d.ts +0 -1
- package/out/test/units/baseTypes/new.spec.js +0 -37
- package/out/test/units/baseTypes/new.spec.js.map +0 -1
- package/out/test/units/common/Vertex.spec.d.ts +0 -1
- package/out/test/units/common/Vertex.spec.js +0 -22
- package/out/test/units/common/Vertex.spec.js.map +0 -1
- package/out/test/units/data/Entity.spec.d.ts +0 -1
- package/out/test/units/data/Entity.spec.js +0 -12
- package/out/test/units/data/Entity.spec.js.map +0 -1
- package/out/test/units/login.spec.d.ts +0 -1
- package/out/test/units/login.spec.js +0 -12
- package/out/test/units/login.spec.js.map +0 -1
- package/out/test/units/page/Block.spec.d.ts +0 -0
- package/out/test/units/page/Block.spec.js +0 -13
- package/out/test/units/page/Block.spec.js.map +0 -1
- package/out/test/units/page/Element.spec.d.ts +0 -1
- package/out/test/units/page/Element.spec.js +0 -44
- package/out/test/units/page/Element.spec.js.map +0 -1
- package/out/test/units/temp/temp.spec.d.ts +0 -1
- package/out/test/units/temp/temp.spec.js +0 -68
- package/out/test/units/temp/temp.spec.js.map +0 -1
- package/out/translator/index.d.ts +0 -47
- package/out/translator/index.js +0 -108
- package/out/translator/index.js.map +0 -1
- package/out/translator/lsp.d.ts +0 -45
- package/out/translator/lsp.js +0 -6
- package/out/translator/lsp.js.map +0 -1
- package/out/translator/tsp.d.ts +0 -12
- package/out/translator/tsp.js +0 -3
- package/out/translator/tsp.js.map +0 -1
- package/out/utils/index.d.ts +0 -37
- package/out/utils/index.js +0 -125
- package/out/utils/index.js.map +0 -1
- package/out/utils/logger.d.ts +0 -3
- package/out/utils/logger.js +0 -11
- package/out/utils/logger.js.map +0 -1
- package/out/utils/string.d.ts +0 -38
- package/out/utils/string.js +0 -95
- package/out/utils/string.js.map +0 -1
- package/out/utils/traverse.d.ts +0 -36
- package/out/utils/traverse.js +0 -132
- package/out/utils/traverse.js.map +0 -1
|
@@ -1,459 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.getSelectNextCompletionData = exports.getGlobalVariableIdentifier = exports.getVariableIdentifier = exports.getEnumsIdentifier = exports.getLiteralsIdentifier = exports.getMemberIdentifier = exports.formatVariableData = void 0;
|
|
7
|
-
const __1 = require("..");
|
|
8
|
-
const naslServer_1 = __importDefault(require("./naslServer"));
|
|
9
|
-
function getCompletionDetailType(displayParts) {
|
|
10
|
-
// 0: {text: 'let', kind: 'keyword'}
|
|
11
|
-
// 1: {text: ' ', kind: 'space'}
|
|
12
|
-
// 2: {text: 'bindRoles', kind: 'text'}
|
|
13
|
-
// 3: {text: ':', kind: 'punctuation'}
|
|
14
|
-
// 4: {text: ' ', kind: 'space'}
|
|
15
|
-
// 5: {text: 'roles', kind: 'moduleName'}
|
|
16
|
-
// 6: {text: '.', kind: 'punctuation'}
|
|
17
|
-
// 7: {text: 'DEV_AdminRole', kind: 'enumName'}
|
|
18
|
-
// 8: {text: '[', kind: 'punctuation'}
|
|
19
|
-
// 9: {text: ']', kind: 'punctuation'}
|
|
20
|
-
let str = '';
|
|
21
|
-
displayParts.forEach((item) => {
|
|
22
|
-
str += item.text;
|
|
23
|
-
});
|
|
24
|
-
const strTypes = str.split(': ');
|
|
25
|
-
const type = strTypes[1];
|
|
26
|
-
let typeAnnotation;
|
|
27
|
-
try {
|
|
28
|
-
if (type.includes('<') && type.includes('>')) {
|
|
29
|
-
// 泛型的处理
|
|
30
|
-
typeAnnotation = createGenericTypeAnnotation(type);
|
|
31
|
-
}
|
|
32
|
-
else {
|
|
33
|
-
typeAnnotation = createType2Annotation(type);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
catch (err) {
|
|
37
|
-
console.log(err);
|
|
38
|
-
}
|
|
39
|
-
return typeAnnotation;
|
|
40
|
-
}
|
|
41
|
-
function createGenericTypeAnnotation(type) {
|
|
42
|
-
// 取出匹配的内容
|
|
43
|
-
const childType = type.substring(0, type.indexOf('<'));
|
|
44
|
-
const typeAnnotation = createType2Annotation(childType);
|
|
45
|
-
// 如果还有匹配到的多层泛型;
|
|
46
|
-
// 取出匹配到的内容
|
|
47
|
-
const types = /\<([^()]+)\>/g.exec(type);
|
|
48
|
-
const newtext = types[1];
|
|
49
|
-
// 把匹配的值,的内容在,检索一遍,看是不是泛型套泛型
|
|
50
|
-
const newTypes = /\<([^()]+)\>/g.exec(newtext);
|
|
51
|
-
// 如果是的话就去递归
|
|
52
|
-
if (newTypes) {
|
|
53
|
-
const argTypeAnnotation = createGenericTypeAnnotation(newtext);
|
|
54
|
-
typeAnnotation.typeArguments = [argTypeAnnotation];
|
|
55
|
-
}
|
|
56
|
-
else {
|
|
57
|
-
// 如果不是就创造内部的真正类型
|
|
58
|
-
const argTypeAnnotation = createType2Annotation(newtext);
|
|
59
|
-
typeAnnotation.typeArguments = [argTypeAnnotation];
|
|
60
|
-
}
|
|
61
|
-
return typeAnnotation;
|
|
62
|
-
}
|
|
63
|
-
function createType2Annotation(type) {
|
|
64
|
-
let typeAnnotation;
|
|
65
|
-
// 没有泛型类型的
|
|
66
|
-
const types = type.split('.');
|
|
67
|
-
if (types.length === 1) {
|
|
68
|
-
typeAnnotation = __1.TypeAnnotation.createPrimitive(types[0]);
|
|
69
|
-
}
|
|
70
|
-
else {
|
|
71
|
-
if (type.startsWith('nasl.core')) {
|
|
72
|
-
typeAnnotation = __1.TypeAnnotation.createPrimitive(types[types.length - 1]);
|
|
73
|
-
}
|
|
74
|
-
else if (type.startsWith('nasl.ui')) {
|
|
75
|
-
typeAnnotation = __1.TypeAnnotation.createReference(types[types.length - 1], {
|
|
76
|
-
typeNamespace: 'nasl.ui',
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
else if (type.startsWith('nasl.process')) {
|
|
80
|
-
typeAnnotation = __1.TypeAnnotation.createReference(types[types.length - 1], {
|
|
81
|
-
typeNamespace: 'nasl.process',
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
else if (type.startsWith('nasl.collection')) {
|
|
85
|
-
typeAnnotation = __1.TypeAnnotation.createGeneric(types[types.length - 1], {
|
|
86
|
-
typeNamespace: 'nasl.collection',
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
else if (type.startsWith('entities.')) {
|
|
90
|
-
typeAnnotation = __1.TypeAnnotation.createReference(types[types.length - 1], {
|
|
91
|
-
typeNamespace: 'app.entities',
|
|
92
|
-
});
|
|
93
|
-
}
|
|
94
|
-
else if (type.startsWith('structures.')) {
|
|
95
|
-
typeAnnotation = __1.TypeAnnotation.createReference(types[types.length - 1], {
|
|
96
|
-
typeNamespace: 'app.structures',
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
else if (type.startsWith('enums.')) {
|
|
100
|
-
typeAnnotation = __1.TypeAnnotation.createReference(types[types.length - 1], {
|
|
101
|
-
typeNamespace: 'app.enums',
|
|
102
|
-
});
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
return typeAnnotation;
|
|
106
|
-
}
|
|
107
|
-
/**
|
|
108
|
-
* 把要返回去的数据做一下排序
|
|
109
|
-
* @param result 要返回数据
|
|
110
|
-
* @param node 当前内容的上下级
|
|
111
|
-
* @returns 返回排序后的数组
|
|
112
|
-
* 因为ts会按照 a-z的顺序进行排序
|
|
113
|
-
* 但是影响用户体验,需要先按照页面排序,其次按照logic进行排序
|
|
114
|
-
* 流程的韬哥自己解决了,所以先解决这两部分
|
|
115
|
-
*/
|
|
116
|
-
function sortFirstVariableData(result, node) {
|
|
117
|
-
const newResult = [];
|
|
118
|
-
const logic = node.logic;
|
|
119
|
-
const view = node.view;
|
|
120
|
-
if (view) {
|
|
121
|
-
const { params, variables } = view;
|
|
122
|
-
const list = [...params, ...variables];
|
|
123
|
-
list.forEach((item) => {
|
|
124
|
-
const findIndex = result.findIndex((findItem) => findItem.name === item.name);
|
|
125
|
-
if (findIndex === 0 || findIndex) {
|
|
126
|
-
newResult.push(result[findIndex]);
|
|
127
|
-
result.splice(findIndex, 1);
|
|
128
|
-
}
|
|
129
|
-
});
|
|
130
|
-
}
|
|
131
|
-
if (logic) {
|
|
132
|
-
const { params, returns, variables } = logic;
|
|
133
|
-
const list = [...params, ...returns, ...variables];
|
|
134
|
-
list.forEach((item) => {
|
|
135
|
-
const findIndex = result.findIndex((findItem) => findItem.name === item.name);
|
|
136
|
-
if (findIndex === 0 || findIndex) {
|
|
137
|
-
newResult.push(result[findIndex]);
|
|
138
|
-
result.splice(findIndex, 1);
|
|
139
|
-
}
|
|
140
|
-
});
|
|
141
|
-
}
|
|
142
|
-
newResult.push(...result);
|
|
143
|
-
return newResult;
|
|
144
|
-
}
|
|
145
|
-
// 格式化变量数据
|
|
146
|
-
function formatVariableData(data, node, parent) {
|
|
147
|
-
if (Array.isArray(data)) {
|
|
148
|
-
let result = data.map((item) => {
|
|
149
|
-
// value需要拼接生成
|
|
150
|
-
item.value = parent ? `${parent.value}.${item.text}` : item.text;
|
|
151
|
-
item.name = item.text;
|
|
152
|
-
// 当前结构的typeAnnotation
|
|
153
|
-
const typeAnnotation = item.completionDetail && getCompletionDetailType(item.completionDetail.displayParts);
|
|
154
|
-
// 如果没有父节点就是Identifier
|
|
155
|
-
if (!parent) {
|
|
156
|
-
const identifier = new __1.Identifier({ name: item.name });
|
|
157
|
-
// 携带上当前的类型
|
|
158
|
-
identifier.typeAnnotation = typeAnnotation;
|
|
159
|
-
item.expression = identifier;
|
|
160
|
-
}
|
|
161
|
-
else {
|
|
162
|
-
const memberExpression = new __1.MemberExpression({
|
|
163
|
-
object: parent.expression,
|
|
164
|
-
property: new __1.Identifier({ name: item.name }),
|
|
165
|
-
});
|
|
166
|
-
// 携带上当前的类型
|
|
167
|
-
memberExpression.typeAnnotation = typeAnnotation;
|
|
168
|
-
item.expression = memberExpression;
|
|
169
|
-
}
|
|
170
|
-
if (item.children) {
|
|
171
|
-
item.children = formatVariableData(item.children, node, item);
|
|
172
|
-
}
|
|
173
|
-
if (!parent) {
|
|
174
|
-
const completionProperty = new __1.CompletionProperty(item);
|
|
175
|
-
// 变量 param return 在这里添加图标
|
|
176
|
-
completionProperty.icon = getNodeiconFromLogic(completionProperty, node);
|
|
177
|
-
return completionProperty;
|
|
178
|
-
}
|
|
179
|
-
else {
|
|
180
|
-
const completionProperty = new __1.CompletionProperty(item);
|
|
181
|
-
completionProperty.icon = 'refProperty';
|
|
182
|
-
return completionProperty;
|
|
183
|
-
}
|
|
184
|
-
});
|
|
185
|
-
/**
|
|
186
|
-
* 排序result
|
|
187
|
-
* 如果没有父级就是第一集就排序一下当前result,用户体验优化
|
|
188
|
-
*/
|
|
189
|
-
if (!parent) {
|
|
190
|
-
result = sortFirstVariableData(result, node);
|
|
191
|
-
}
|
|
192
|
-
return result;
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
exports.formatVariableData = formatVariableData;
|
|
196
|
-
// 从logic获取节点的icon
|
|
197
|
-
function getNodeiconFromLogic(completionProperty, node) {
|
|
198
|
-
const logic = node.logic;
|
|
199
|
-
const view = node.view;
|
|
200
|
-
if (view) {
|
|
201
|
-
const { params } = view;
|
|
202
|
-
if (params.find((item) => item.name === completionProperty.name))
|
|
203
|
-
return 'param';
|
|
204
|
-
}
|
|
205
|
-
if (logic) {
|
|
206
|
-
const { params, returns } = logic;
|
|
207
|
-
if (params.find((item) => item.name === completionProperty.name))
|
|
208
|
-
return 'param';
|
|
209
|
-
if (returns.find((item) => item.name === completionProperty.name))
|
|
210
|
-
return 'return';
|
|
211
|
-
// if (variables.find((item) => item.name === completionProperty.name))
|
|
212
|
-
// return 'variable';
|
|
213
|
-
// 其余的全部按variable展示
|
|
214
|
-
return 'variable';
|
|
215
|
-
}
|
|
216
|
-
return 'variable';
|
|
217
|
-
}
|
|
218
|
-
// 简单实现一版本的格式化nums
|
|
219
|
-
function formatEnums(enums) {
|
|
220
|
-
const result = enums.map((item) => {
|
|
221
|
-
const namespace = item.getNamespace();
|
|
222
|
-
const newItem = {
|
|
223
|
-
name: item.name,
|
|
224
|
-
value: item.name,
|
|
225
|
-
expression: new __1.Identifier({
|
|
226
|
-
name: item.name,
|
|
227
|
-
namespace,
|
|
228
|
-
}),
|
|
229
|
-
children: [],
|
|
230
|
-
};
|
|
231
|
-
newItem.children = item.enumItems.map((enumItem) => {
|
|
232
|
-
const newEnumItem = { ...enumItem };
|
|
233
|
-
newEnumItem.expression = new __1.MemberExpression({
|
|
234
|
-
object: newItem.expression,
|
|
235
|
-
property: new __1.Identifier({ name: newEnumItem.value }),
|
|
236
|
-
});
|
|
237
|
-
newEnumItem.name = newEnumItem.value;
|
|
238
|
-
newEnumItem.value = newItem.value + '.' + newEnumItem.value;
|
|
239
|
-
const completionProperty = new __1.CompletionProperty(newEnumItem);
|
|
240
|
-
completionProperty.icon = 'enumItem';
|
|
241
|
-
return completionProperty;
|
|
242
|
-
});
|
|
243
|
-
const completionProperty = new __1.CompletionProperty(newItem);
|
|
244
|
-
completionProperty.icon = 'enum';
|
|
245
|
-
return completionProperty;
|
|
246
|
-
});
|
|
247
|
-
return result;
|
|
248
|
-
}
|
|
249
|
-
function formatLiterals() {
|
|
250
|
-
// const list: Array<LiteralDefination> = [
|
|
251
|
-
// { name: 'null', value: 'null' },
|
|
252
|
-
// { name: 'true', value: 'true' },
|
|
253
|
-
// { name: 'false', value: 'false' },
|
|
254
|
-
// ];
|
|
255
|
-
// const newList = list.map((item) => {
|
|
256
|
-
// item.expression = new Identifier({ name: item.name });
|
|
257
|
-
// const completionProperty = new CompletionProperty(item);
|
|
258
|
-
// completionProperty.icon = 'literal';
|
|
259
|
-
// return completionProperty;
|
|
260
|
-
// });
|
|
261
|
-
// return newList;
|
|
262
|
-
const list = [
|
|
263
|
-
new __1.CompletionProperty({
|
|
264
|
-
name: 'null',
|
|
265
|
-
value: 'null',
|
|
266
|
-
expression: new __1.NullLiteral(),
|
|
267
|
-
}),
|
|
268
|
-
new __1.CompletionProperty({
|
|
269
|
-
name: 'true',
|
|
270
|
-
value: 'true',
|
|
271
|
-
expression: new __1.BooleanLiteral({ value: 'true' }),
|
|
272
|
-
}),
|
|
273
|
-
new __1.CompletionProperty({
|
|
274
|
-
name: 'false',
|
|
275
|
-
value: 'false',
|
|
276
|
-
expression: new __1.BooleanLiteral({ value: 'false' }),
|
|
277
|
-
}),
|
|
278
|
-
];
|
|
279
|
-
list.forEach((l) => {
|
|
280
|
-
l.icon = 'literal';
|
|
281
|
-
});
|
|
282
|
-
return list;
|
|
283
|
-
}
|
|
284
|
-
function formatGlobalVariable() {
|
|
285
|
-
const newList = [];
|
|
286
|
-
const globalVariable = {
|
|
287
|
-
name: 'userInfo',
|
|
288
|
-
value: 'userInfo',
|
|
289
|
-
children: [
|
|
290
|
-
{ name: 'Status', value: 'userInfo.Status' },
|
|
291
|
-
{ name: 'UserInfoExtend',
|
|
292
|
-
value: 'userInfo.UserInfoExtend',
|
|
293
|
-
children: [
|
|
294
|
-
{ name: 'Company', value: 'userInfo.UserInfoExtend.Company' },
|
|
295
|
-
{ name: 'JobLevel', value: 'userInfo.UserInfoExtend.JobLevel' },
|
|
296
|
-
{ name: 'JobNum', value: 'userInfo.UserInfoExtend.JobNum' },
|
|
297
|
-
{ name: 'JobYear', value: 'userInfo.UserInfoExtend.JobYear' },
|
|
298
|
-
{ name: 'RealName', value: 'userInfo.UserInfoExtend.RealName' },
|
|
299
|
-
{ name: 'NickName', value: 'userInfo.UserInfoExtend.NickName' },
|
|
300
|
-
{ name: 'NameAndEmail', value: 'userInfo.UserInfoExtend.NameAndEmail' },
|
|
301
|
-
{ name: 'Position', value: 'userInfo.UserInfoExtend.Position' },
|
|
302
|
-
{ name: 'Department', value: 'userInfo.UserInfoExtend.Department' },
|
|
303
|
-
{ name: 'EmployeeId', value: 'userInfo.UserInfoExtend.EmployeeId' },
|
|
304
|
-
] },
|
|
305
|
-
{ name: 'UserName', value: 'userInfo.UserName' },
|
|
306
|
-
{ name: 'Email', value: 'userInfo.Email' },
|
|
307
|
-
{ name: 'UserId', value: 'userInfo.UserId' },
|
|
308
|
-
{ name: 'Phone', value: 'userInfo.Phone' },
|
|
309
|
-
{ name: 'CreateTime', value: 'userInfo.CreateTime' },
|
|
310
|
-
{ name: 'UpdateTime', value: 'userInfo.UpdateTime' },
|
|
311
|
-
{ name: 'LoginCount', value: 'userInfo.LoginCount' },
|
|
312
|
-
{ name: 'Source', value: 'userInfo.Source' },
|
|
313
|
-
],
|
|
314
|
-
};
|
|
315
|
-
const userInfoIdentifier = new __1.Identifier({
|
|
316
|
-
name: 'userInfo',
|
|
317
|
-
namespace: 'nasl.auth',
|
|
318
|
-
});
|
|
319
|
-
const userCompletionProperty = new __1.CompletionProperty({
|
|
320
|
-
name: 'userInfo',
|
|
321
|
-
expression: userInfoIdentifier,
|
|
322
|
-
children: [],
|
|
323
|
-
});
|
|
324
|
-
userCompletionProperty.icon = 'variable';
|
|
325
|
-
newList.push(userCompletionProperty);
|
|
326
|
-
globalVariable.children.forEach((item) => {
|
|
327
|
-
const expression = new __1.MemberExpression({
|
|
328
|
-
object: userInfoIdentifier,
|
|
329
|
-
property: new __1.Identifier({ name: item.name }),
|
|
330
|
-
});
|
|
331
|
-
item.expression = expression;
|
|
332
|
-
const completionProperty = new __1.CompletionProperty(item);
|
|
333
|
-
completionProperty.icon = 'literal';
|
|
334
|
-
if (item.children) {
|
|
335
|
-
const children = [];
|
|
336
|
-
item.children.forEach((child) => {
|
|
337
|
-
const childExpression = new __1.MemberExpression({
|
|
338
|
-
object: expression,
|
|
339
|
-
property: new __1.Identifier({ name: child.name }),
|
|
340
|
-
});
|
|
341
|
-
child.expression = childExpression;
|
|
342
|
-
const childProperty = new __1.CompletionProperty(child);
|
|
343
|
-
childProperty.icon = 'literal';
|
|
344
|
-
children.push(childProperty);
|
|
345
|
-
});
|
|
346
|
-
completionProperty.children = children;
|
|
347
|
-
}
|
|
348
|
-
userCompletionProperty.children.push(completionProperty);
|
|
349
|
-
});
|
|
350
|
-
return newList;
|
|
351
|
-
}
|
|
352
|
-
// 获取当前可选的逻辑
|
|
353
|
-
function getCurrentLogic(node, result) {
|
|
354
|
-
// 只有data-source可以
|
|
355
|
-
if (node instanceof __1.Identifier && node.parentNode instanceof __1.BindAttribute && (node.parentNode.name === 'data-source' || node.parentNode.name === 'check-file')) {
|
|
356
|
-
const view = node.view;
|
|
357
|
-
const viewLogics = view.logics;
|
|
358
|
-
const logicVariable = viewLogics.map((item) => {
|
|
359
|
-
const newLogic = {
|
|
360
|
-
name: item.name,
|
|
361
|
-
value: item.name,
|
|
362
|
-
};
|
|
363
|
-
newLogic.expression = new __1.Identifier({ name: item.name });
|
|
364
|
-
const completionProperty = new __1.CompletionProperty(newLogic);
|
|
365
|
-
completionProperty.icon = 'logic';
|
|
366
|
-
return completionProperty;
|
|
367
|
-
});
|
|
368
|
-
result.push({ name: '逻辑', children: logicVariable, expanded: true, icon: 'category' });
|
|
369
|
-
}
|
|
370
|
-
}
|
|
371
|
-
async function getMemberIdentifier(node) {
|
|
372
|
-
if (node) {
|
|
373
|
-
// 获取字面量
|
|
374
|
-
const literals = getLiteralsIdentifier();
|
|
375
|
-
if (node.getAncestor('CallQueryComponent'))
|
|
376
|
-
literals.shift(); // 去除 null
|
|
377
|
-
// 获取枚举
|
|
378
|
-
const newEnums = getEnumsIdentifier(node);
|
|
379
|
-
// extensionModules(state) {
|
|
380
|
-
// return state.app?.dependencies?.filter((module) => module.type === 'extension') || {};
|
|
381
|
-
// },
|
|
382
|
-
// 如果之前有选好的值就需要的把之前那一列的内容渲染出来
|
|
383
|
-
// 先去获取
|
|
384
|
-
// 获取变量
|
|
385
|
-
const completionData = await getVariableIdentifier(node);
|
|
386
|
-
// 获取公共变量
|
|
387
|
-
const globalVariable = await getGlobalVariableIdentifier(node);
|
|
388
|
-
// 这个可能需要自己算一下
|
|
389
|
-
const result = [
|
|
390
|
-
{ name: '字面量', children: literals, expanded: true, icon: 'category' },
|
|
391
|
-
{ name: '枚举', children: newEnums, expanded: true, icon: 'category' },
|
|
392
|
-
{ name: '变量', children: completionData, expanded: true, icon: 'category' },
|
|
393
|
-
{ name: '公共变量', children: globalVariable, expanded: true, icon: 'category' },
|
|
394
|
-
// { name: '流程变量', children: [] },
|
|
395
|
-
];
|
|
396
|
-
getCurrentLogic(node, result);
|
|
397
|
-
return result;
|
|
398
|
-
}
|
|
399
|
-
}
|
|
400
|
-
exports.getMemberIdentifier = getMemberIdentifier;
|
|
401
|
-
// 获取字面量
|
|
402
|
-
function getLiteralsIdentifier() {
|
|
403
|
-
return formatLiterals();
|
|
404
|
-
}
|
|
405
|
-
exports.getLiteralsIdentifier = getLiteralsIdentifier;
|
|
406
|
-
// 获取枚举
|
|
407
|
-
function getEnumsIdentifier(node) {
|
|
408
|
-
const app = node.rootNode;
|
|
409
|
-
const enums = app?.enums;
|
|
410
|
-
const newEnums = enums ? formatEnums(enums) : [];
|
|
411
|
-
return newEnums;
|
|
412
|
-
}
|
|
413
|
-
exports.getEnumsIdentifier = getEnumsIdentifier;
|
|
414
|
-
// 获取变量
|
|
415
|
-
async function getVariableIdentifier(node) {
|
|
416
|
-
let completionData = [new __1.CompletionProperty({})];
|
|
417
|
-
if (node instanceof __1.Identifier || node instanceof __1.MemberExpression) {
|
|
418
|
-
const value = node.getValue();
|
|
419
|
-
if (value) {
|
|
420
|
-
const completion = (await naslServer_1.default.getValueSelectCompletion(node, value));
|
|
421
|
-
completionData = formatVariableData(completion, node);
|
|
422
|
-
}
|
|
423
|
-
else {
|
|
424
|
-
const nextCompletion = await naslServer_1.default.getFieldKeySelectCompletion(node, '');
|
|
425
|
-
completionData = formatVariableData(nextCompletion, node);
|
|
426
|
-
}
|
|
427
|
-
}
|
|
428
|
-
else {
|
|
429
|
-
const nextCompletion = await naslServer_1.default.getFieldKeySelectCompletion(node, '');
|
|
430
|
-
completionData = formatVariableData(nextCompletion, node);
|
|
431
|
-
}
|
|
432
|
-
return completionData;
|
|
433
|
-
}
|
|
434
|
-
exports.getVariableIdentifier = getVariableIdentifier;
|
|
435
|
-
// 获取公共变量
|
|
436
|
-
async function getGlobalVariableIdentifier(node) {
|
|
437
|
-
let globalVariable = [];
|
|
438
|
-
// 公共变量修改
|
|
439
|
-
if (node.view) {
|
|
440
|
-
globalVariable = formatGlobalVariable();
|
|
441
|
-
}
|
|
442
|
-
return globalVariable;
|
|
443
|
-
}
|
|
444
|
-
exports.getGlobalVariableIdentifier = getGlobalVariableIdentifier;
|
|
445
|
-
async function getSelectNextCompletionData(node, completionProperty) {
|
|
446
|
-
if (node) {
|
|
447
|
-
let fieldKey = '';
|
|
448
|
-
if (completionProperty) {
|
|
449
|
-
const exp = __1.BaseNode.from(completionProperty.expression);
|
|
450
|
-
const value = exp.getValue();
|
|
451
|
-
fieldKey = value;
|
|
452
|
-
}
|
|
453
|
-
const nextCompletion = await naslServer_1.default.getFieldKeySelectCompletion(node, fieldKey);
|
|
454
|
-
const completionData = formatVariableData(nextCompletion, node, completionProperty);
|
|
455
|
-
return completionData;
|
|
456
|
-
}
|
|
457
|
-
}
|
|
458
|
-
exports.getSelectNextCompletionData = getSelectNextCompletionData;
|
|
459
|
-
//# sourceMappingURL=getMemberIdentifier.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getMemberIdentifier.js","sourceRoot":"","sources":["../../src/server/getMemberIdentifier.ts"],"names":[],"mappings":";;;;;;AAAA,0BAAyK;AACzK,8DAAsC;AAWtC,SAAS,uBAAuB,CAAC,YAAmD;IAChF,oCAAoC;IACpC,gCAAgC;IAChC,uCAAuC;IACvC,sCAAsC;IACtC,gCAAgC;IAChC,yCAAyC;IACzC,sCAAsC;IACtC,+CAA+C;IAC/C,sCAAsC;IACtC,sCAAsC;IACtC,IAAI,GAAG,GAAG,EAAE,CAAC;IACb,YAAY,CAAC,OAAO,CAAC,CAAC,IAAI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2BAA2B,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;QACpF,MAAM,cAAc,GAAG,kBAAkB,CAAC,cAAc,EAAE,IAAI,EAAE,kBAAkB,CAAC,CAAC;QACpF,OAAO,cAAc,CAAC;KACzB;AACL,CAAC;AAbD,kEAaC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getProcessComponent = exports.getProcessComponents = void 0;
|
|
4
|
-
const __1 = require("..");
|
|
5
|
-
function getProcessComponents() {
|
|
6
|
-
return __1.stdlibNamespace.findChild('process');
|
|
7
|
-
}
|
|
8
|
-
exports.getProcessComponents = getProcessComponents;
|
|
9
|
-
function getProcessComponent(name) {
|
|
10
|
-
return getProcessComponents().processComponents.find((component) => component.name === name);
|
|
11
|
-
}
|
|
12
|
-
exports.getProcessComponent = getProcessComponent;
|
|
13
|
-
//# sourceMappingURL=getProcessComponents.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getProcessComponents.js","sourceRoot":"","sources":["../../src/server/getProcessComponents.ts"],"names":[],"mappings":";;;AAAA,0BAAqC;AAErC,SAAgB,oBAAoB;IAChC,OAAO,mBAAe,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;AAChD,CAAC;AAFD,oDAEC;AAED,SAAgB,mBAAmB,CAAC,IAAY;IAC5C,OAAO,oBAAoB,EAAE,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC;AACjG,CAAC;AAFD,kDAEC"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import Constant from '@nasl/concepts/Constant__';
|
|
2
|
-
import { CompletionProperty, Process, ProcessElement, Namespace, Logic, Return, Variable, StructureProperty, Param, MemberExpression, EntityProperty } from '..';
|
|
3
|
-
export declare function genLaunchProcess(process: Process): Logic;
|
|
4
|
-
export declare function process2LogicNamespace(process: Process): Namespace;
|
|
5
|
-
export declare function returnToParam(r: Return): Param;
|
|
6
|
-
export declare function constantToParam(v: Constant): Param;
|
|
7
|
-
export declare function genUserTaskLogic(userTask: ProcessElement): Logic;
|
|
8
|
-
export declare function userTask2LogicNamespace(userTask: ProcessElement): Namespace;
|
|
9
|
-
declare type CompletionData = {
|
|
10
|
-
name: string;
|
|
11
|
-
concept: string;
|
|
12
|
-
value: string;
|
|
13
|
-
selectable?: boolean;
|
|
14
|
-
children: Array<CompletionData>;
|
|
15
|
-
};
|
|
16
|
-
declare type Suggestion = {
|
|
17
|
-
name: string;
|
|
18
|
-
children: Array<CompletionProperty | CompletionData>;
|
|
19
|
-
};
|
|
20
|
-
declare type VariableSuggestion = Array<Suggestion>;
|
|
21
|
-
export declare function travelDown(node: any, callback: (node: any) => void): void;
|
|
22
|
-
export declare function syncMemberExpression(elem: ProcessElement | Process, callback: (node: MemberExpression) => void): void;
|
|
23
|
-
export declare function genMemberExpression(path: string): MemberExpression;
|
|
24
|
-
export declare function genCompletionProperty(prefix?: string[]): (v: Variable | Param | Return | Constant | EntityProperty | StructureProperty) => CompletionProperty;
|
|
25
|
-
export declare function getPreviousTask(node: ProcessElement): ProcessElement[];
|
|
26
|
-
export declare function getProcessVariableSuggestions(node: Logic, abandonConstant?: boolean): CompletionProperty;
|
|
27
|
-
export declare function getProcessVaraibleSelections(node: Logic, list: VariableSuggestion): void;
|
|
28
|
-
export declare function getProcessVariableSuggestionsAll(node: ProcessElement): CompletionProperty;
|
|
29
|
-
export declare function getFlowAfterElements(el: ProcessElement): ProcessElement[];
|
|
30
|
-
export declare function getFlowBeforeElements(el: ProcessElement): ProcessElement[];
|
|
31
|
-
export declare function isFromStartNode(el: ProcessElement): boolean;
|
|
32
|
-
export declare function findNodeAfterNodeInFlow(el: ProcessElement): unknown[];
|
|
33
|
-
export {};
|