@lcap/nasl 3.2.0-beta.3 → 3.2.0-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (153) hide show
  1. package/out/automate/engine/utils.js +4 -0
  2. package/out/automate/engine/utils.js.map +1 -1
  3. package/out/common/BaseNode.d.ts +1 -1
  4. package/out/common/BaseNode.js +7 -4
  5. package/out/common/BaseNode.js.map +1 -1
  6. package/out/concepts/App__.js +5 -3
  7. package/out/concepts/App__.js.map +1 -1
  8. package/out/concepts/Assignment__.js +1 -1
  9. package/out/concepts/Assignment__.js.map +1 -1
  10. package/out/concepts/BindAttribute__.js +1 -10
  11. package/out/concepts/BindAttribute__.js.map +1 -1
  12. package/out/concepts/BindEvent__.js +55 -13
  13. package/out/concepts/BindEvent__.js.map +1 -1
  14. package/out/concepts/CallInterface__.js +50 -62
  15. package/out/concepts/CallInterface__.js.map +1 -1
  16. package/out/concepts/CallLogic__.d.ts +4 -1
  17. package/out/concepts/CallLogic__.js +59 -115
  18. package/out/concepts/CallLogic__.js.map +1 -1
  19. package/out/concepts/CompletionProperty__.js +8 -1
  20. package/out/concepts/CompletionProperty__.js.map +1 -1
  21. package/out/concepts/Logic__.js +1 -1
  22. package/out/concepts/Logic__.js.map +1 -1
  23. package/out/concepts/Module__.d.ts +4 -0
  24. package/out/concepts/Module__.js.map +1 -1
  25. package/out/concepts/ViewElement__.d.ts +1 -0
  26. package/out/concepts/ViewElement__.js +49 -63
  27. package/out/concepts/ViewElement__.js.map +1 -1
  28. package/out/concepts/View__.js +41 -6
  29. package/out/concepts/View__.js.map +1 -1
  30. package/out/concepts/basics/stdlib/index.js +17 -1
  31. package/out/concepts/basics/stdlib/index.js.map +1 -1
  32. package/out/concepts/basics/stdlib/nasl.browser.js +36 -0
  33. package/out/concepts/basics/stdlib/nasl.browser.js.map +1 -1
  34. package/out/concepts/basics/stdlib/nasl.event.d.ts +3 -0
  35. package/out/concepts/basics/stdlib/nasl.event.js +23 -0
  36. package/out/concepts/basics/stdlib/nasl.event.js.map +1 -0
  37. package/out/concepts/basics/stdlib/nasl.ui.js +45 -0
  38. package/out/concepts/basics/stdlib/nasl.ui.js.map +1 -1
  39. package/out/concepts/basics/stdlib/nasl.util.js +6 -22
  40. package/out/concepts/basics/stdlib/nasl.util.js.map +1 -1
  41. package/out/generator/permission.js +18 -19
  42. package/out/generator/permission.js.map +1 -1
  43. package/out/server/event.d.ts +12 -0
  44. package/out/server/event.js +52 -28
  45. package/out/server/event.js.map +1 -1
  46. package/out/server/getLogics.js +30 -1
  47. package/out/server/getLogics.js.map +1 -1
  48. package/out/server/naslServer.js +5 -4
  49. package/out/server/naslServer.js.map +1 -1
  50. package/out/server/naslStdlibMap.js +2 -0
  51. package/out/server/naslStdlibMap.js.map +1 -1
  52. package/out/templator/genCreateBlock.js +1 -1
  53. package/out/templator/genCurdEditMultipleKeyBlock.js +4 -4
  54. package/out/templator/genCurdEditMultipleKeyBlock.js.map +1 -1
  55. package/out/templator/genCurdMultipleKeyBlock.js +4 -4
  56. package/out/templator/genCurdMultipleKeyBlock.js.map +1 -1
  57. package/out/templator/genEditTableBlock.d.ts +1 -1
  58. package/out/templator/genEditTableBlock.js +3 -7
  59. package/out/templator/genEditTableBlock.js.map +1 -1
  60. package/out/templator/genGridViewBlock.d.ts +2 -2
  61. package/out/templator/genGridViewBlock.js +8 -14
  62. package/out/templator/genGridViewBlock.js.map +1 -1
  63. package/out/templator/genListViewBlock.d.ts +2 -2
  64. package/out/templator/genListViewBlock.js +5 -9
  65. package/out/templator/genListViewBlock.js.map +1 -1
  66. package/out/templator/genSelectBlock.d.ts +2 -2
  67. package/out/templator/genSelectBlock.js +9 -15
  68. package/out/templator/genSelectBlock.js.map +1 -1
  69. package/out/templator/genTableBlock.d.ts +1 -1
  70. package/out/templator/genTableBlock.js +3 -7
  71. package/out/templator/genTableBlock.js.map +1 -1
  72. package/out/templator/genUpdateBlock.js +1 -1
  73. package/out/templator/utils.d.ts +7 -0
  74. package/out/templator/utils.js +1 -0
  75. package/out/templator/utils.js.map +1 -1
  76. package/package.json +14 -16
  77. package/sandbox/stdlib/nasl.browser.ts +1 -0
  78. package/sandbox/stdlib/nasl.event.ts +4 -0
  79. package/sandbox/stdlib/nasl.ui.ts +11 -0
  80. package/src/automate/engine/utils.js +3 -0
  81. package/src/common/BaseNode.ts +10 -5
  82. package/src/concepts/App__.ts +6 -4
  83. package/src/concepts/Assignment__.ts +2 -1
  84. package/src/concepts/BindAttribute__.ts +3 -8
  85. package/src/concepts/BindEvent__.ts +64 -19
  86. package/src/concepts/CallInterface__.ts +57 -61
  87. package/src/concepts/CallLogic__.ts +92 -124
  88. package/src/concepts/CompletionProperty__.ts +6 -1
  89. package/src/concepts/ConfigPropertyValue__.ts +2 -2
  90. package/src/concepts/Logic__.ts +1 -1
  91. package/src/concepts/Module__.ts +4 -1
  92. package/src/concepts/ViewElement__.ts +72 -74
  93. package/src/concepts/View__.ts +45 -8
  94. package/src/concepts/basics/stdlib/index.ts +17 -1
  95. package/src/concepts/basics/stdlib/nasl.browser.ts +36 -0
  96. package/src/concepts/basics/stdlib/nasl.event.ts +18 -0
  97. package/src/concepts/basics/stdlib/nasl.ui.ts +45 -0
  98. package/src/concepts/basics/stdlib/nasl.util.ts +6 -22
  99. package/src/generator/permission.ts +22 -22
  100. package/src/server/event.js +52 -28
  101. package/src/server/getLogics.ts +34 -1
  102. package/src/server/naslServer.ts +8 -4
  103. package/src/server/naslStdlibMap.ts +2 -0
  104. package/src/templator/genCreateBlock.ts +1 -1
  105. package/src/templator/genCurdEditMultipleKeyBlock.ts +4 -4
  106. package/src/templator/genCurdMultipleKeyBlock.ts +4 -4
  107. package/src/templator/genEditTableBlock.ts +4 -7
  108. package/src/templator/genGridViewBlock.ts +8 -14
  109. package/src/templator/genListViewBlock.ts +5 -10
  110. package/src/templator/genSelectBlock.ts +10 -15
  111. package/src/templator/genTableBlock.ts +4 -7
  112. package/src/templator/genUpdateBlock.ts +1 -1
  113. package/src/templator/utils.ts +2 -0
  114. package/test/concepts/call-interface/__snapshots__/toEmbeddedTS.spec.ts.snap +71 -0
  115. package/test/concepts/call-interface/__snapshots__/toJS.spec.ts.snap +140 -0
  116. package/test/concepts/call-interface/constant.ts +5 -0
  117. package/test/concepts/call-interface/fixtures/only-interface.json +158 -0
  118. package/test/concepts/call-interface/fixtures/with-body-complex-argument.json +455 -0
  119. package/test/concepts/call-interface/fixtures/with-body-no-argument.json +187 -0
  120. package/test/concepts/call-interface/fixtures/with-body-simple-argument.json +225 -0
  121. package/test/concepts/call-interface/fixtures/with-headers-no-argument.json +213 -0
  122. package/test/concepts/call-interface/fixtures/with-headers.json +192 -0
  123. package/test/concepts/call-interface/fixtures/with-query-no-argument.json +213 -0
  124. package/test/concepts/call-interface/fixtures/with-query.json +192 -0
  125. package/test/concepts/call-interface/toEmbeddedTS.spec.ts +14 -0
  126. package/test/concepts/call-interface/toJS.spec.ts +14 -0
  127. package/test/concepts/call-logic/__snapshots__/toEmbeddedTS.spec.ts.snap +74 -0
  128. package/test/concepts/call-logic/__snapshots__/toJS.spec.ts.snap +141 -0
  129. package/test/concepts/call-logic/constant.ts +5 -0
  130. package/test/concepts/call-logic/fixtures/entries-get-with-arguments.json +223 -0
  131. package/test/concepts/call-logic/fixtures/entries-update-with-arguments.json +359 -0
  132. package/test/concepts/call-logic/fixtures/global-logic-argument-no-expression.json +209 -0
  133. package/test/concepts/call-logic/fixtures/global-logic-argument-some-expression.json +311 -0
  134. package/test/concepts/call-logic/fixtures/only-call-logic.json +10 -0
  135. package/test/concepts/call-logic/fixtures/view-buildin-logic-with-argument.json +128 -0
  136. package/test/concepts/call-logic/fixtures/view-component-logic-no-argument.json +126 -0
  137. package/test/concepts/call-logic/fixtures/view-component-with-validation.json +244 -0
  138. package/test/concepts/call-logic/toEmbeddedTS.spec.ts +14 -0
  139. package/test/concepts/call-logic/toJS.spec.ts +14 -0
  140. package/test/concepts/utils.ts +76 -3
  141. package/test/concepts/validation-rule/__snapshots__/toEmbeddedTS.spec.ts.snap +3 -3
  142. package/test/concepts/validation-rule/__snapshots__/toJS.spec.ts.snap +16 -0
  143. package/test/concepts/validation-rule/constant.ts +5 -0
  144. package/test/concepts/validation-rule/toEmbeddedTS.spec.ts +10 -17
  145. package/test/concepts/validation-rule/toJS.spec.ts +14 -0
  146. package/test/concepts/view-element/__snapshots__/toEmbeddedTS.spec.ts.snap +68 -0
  147. package/test/concepts/view-element/__snapshots__/toVue.spec.ts.snap +44 -0
  148. package/test/concepts/view-element/constant.ts +5 -0
  149. package/test/concepts/view-element/fixtures/default-not-found.json +322 -0
  150. package/test/concepts/view-element/toEmbeddedTS.spec.ts +14 -0
  151. package/test/concepts/view-element/toVue.spec.ts +14 -0
  152. package/test/setup.ts +6 -0
  153. package/bin/naslc +0 -3
@@ -0,0 +1,209 @@
1
+ {
2
+ "concept": "App",
3
+ "changedTime": 1691388549021,
4
+ "name": "test",
5
+ "id": "823ddeb3-7da4-466e-be35-4a21ad73d5da",
6
+ "ideVersion": "3.1",
7
+ "title": "测试数据",
8
+ "dnsAddr": "http://defaulttenant.lcap.hatest.163yun.com",
9
+ "dataSources": [],
10
+ "structures": [],
11
+ "enums": [],
12
+ "logics": [
13
+ {
14
+ "concept": "Logic",
15
+ "changedTime": 1691388528574,
16
+ "name": "logic1",
17
+ "typeParams": null,
18
+ "params": [
19
+ {
20
+ "concept": "Param",
21
+ "changedTime": 1691388537290,
22
+ "name": "param1",
23
+ "typeAnnotation": {
24
+ "concept": "TypeAnnotation",
25
+ "name": "",
26
+ "typeKind": "primitive",
27
+ "typeNamespace": "nasl.core",
28
+ "typeName": "String",
29
+ "typeArguments": null,
30
+ "returnType": null,
31
+ "properties": null
32
+ },
33
+ "required": true,
34
+ "defaultValue": "",
35
+ "cascader": false
36
+ },
37
+ {
38
+ "concept": "Param",
39
+ "name": "param2",
40
+ "typeAnnotation": {
41
+ "concept": "TypeAnnotation",
42
+ "name": "",
43
+ "typeKind": "primitive",
44
+ "typeNamespace": "nasl.core",
45
+ "typeName": "Long",
46
+ "typeArguments": null,
47
+ "returnType": null,
48
+ "properties": null
49
+ },
50
+ "required": true,
51
+ "defaultValue": "",
52
+ "cascader": false
53
+ },
54
+ {
55
+ "concept": "Param",
56
+ "name": "param3",
57
+ "typeAnnotation": {
58
+ "concept": "TypeAnnotation",
59
+ "name": "",
60
+ "typeKind": "reference",
61
+ "typeNamespace": "app.dataSources.defaultDS.entities",
62
+ "typeName": "Entity1",
63
+ "typeArguments": null,
64
+ "returnType": null,
65
+ "properties": null
66
+ },
67
+ "required": true,
68
+ "defaultValue": "",
69
+ "cascader": false
70
+ }
71
+ ],
72
+ "returns": [],
73
+ "variables": [],
74
+ "body": [],
75
+ "playground": []
76
+ }
77
+ ],
78
+ "overriddenLogics": [],
79
+ "interfaces": [],
80
+ "frontends": [
81
+ {
82
+ "concept": "Frontend",
83
+ "name": "pc",
84
+ "title": "PC端",
85
+ "type": "pc",
86
+ "path": "/",
87
+ "documentTitle": null,
88
+ "documentIcon": null,
89
+ "bindEvents": [],
90
+ "views": [
91
+ {
92
+ "concept": "View",
93
+ "changedTime": 1691464240128,
94
+ "name": "test",
95
+ "title": "dsa",
96
+ "crumb": null,
97
+ "auth": false,
98
+ "isIndex": true,
99
+ "script": "",
100
+ "elements": [
101
+ {
102
+ "concept": "ViewElement",
103
+ "name": "uLinearLayout1",
104
+ "type": 0,
105
+ "tag": "u-linear-layout",
106
+ "staticClass": null,
107
+ "staticStyle": "",
108
+ "slotTarget": null,
109
+ "slotScope": null,
110
+ "bindAttrs": [],
111
+ "bindEvents": [
112
+ {
113
+ "concept": "BindEvent",
114
+ "name": "click",
115
+ "logics": [
116
+ {
117
+ "concept": "Logic",
118
+ "name": "click",
119
+ "typeParams": null,
120
+ "params": [],
121
+ "returns": [],
122
+ "variables": [],
123
+ "body": [
124
+ {
125
+ "concept": "Start",
126
+ "name": "",
127
+ "label": "开始",
128
+ "folded": false
129
+ },
130
+ {
131
+ "concept": "CallLogic",
132
+ "__$Selected": true,
133
+ "label": "调用逻辑",
134
+ "folded": false,
135
+ "uuid": "d71684092ec747ef9adce17209a47d94",
136
+ "calleeNamespace": "app.logics",
137
+ "calleeName": "logic1",
138
+ "handleError": false,
139
+ "typeArguments": null,
140
+ "arguments": [
141
+ {
142
+ "concept": "Argument",
143
+ "name": "",
144
+ "folded": false,
145
+ "keyword": "param1"
146
+ },
147
+ {
148
+ "concept": "Argument",
149
+ "name": "",
150
+ "folded": false,
151
+ "keyword": "param2"
152
+ },
153
+ {
154
+ "concept": "Argument",
155
+ "name": "",
156
+ "folded": false,
157
+ "keyword": "param3"
158
+ }
159
+ ]
160
+ },
161
+ {
162
+ "concept": "End",
163
+ "name": "",
164
+ "label": "结束",
165
+ "folded": false
166
+ }
167
+ ],
168
+ "playground": []
169
+ }
170
+ ],
171
+ "arguments": []
172
+ }
173
+ ],
174
+ "bindDirectives": [],
175
+ "bindRoles": [],
176
+ "bindStyles": [],
177
+ "children": []
178
+ }
179
+ ],
180
+ "params": [],
181
+ "variables": [],
182
+ "logics": [],
183
+ "bindEvents": [],
184
+ "bindRoles": [],
185
+ "children": []
186
+ }
187
+ ],
188
+ "variables": [],
189
+ "theme": {
190
+ "concept": "Theme",
191
+ "name": "",
192
+ "title": "默认主题样式",
193
+ "variableMap": {}
194
+ },
195
+ "componentDependencies": [],
196
+ "globalScaleEnabled": false,
197
+ "canvasWidth": 0
198
+ }
199
+ ],
200
+ "backend": {},
201
+ "processes": [],
202
+ "roles": [],
203
+ "configuration": {},
204
+ "dependencies": [],
205
+ "interfaceDependencies": [],
206
+ "authLogics": [],
207
+ "authLogicsForCallInterface": [],
208
+ "preferenceMap": {}
209
+ }
@@ -0,0 +1,311 @@
1
+ {
2
+ "concept": "App",
3
+ "changedTime": 1691388549021,
4
+ "name": "test",
5
+ "id": "823ddeb3-7da4-466e-be35-4a21ad73d5da",
6
+ "ideVersion": "3.1",
7
+ "title": "测试数据",
8
+ "dnsAddr": "http://defaulttenant.lcap.hatest.163yun.com",
9
+ "dataSources": [
10
+ {
11
+ "concept": "DataSource",
12
+ "name": "defaultDS",
13
+ "description": "默认数据源",
14
+ "entities": [
15
+ {
16
+ "concept": "Entity",
17
+ "changedTime": 1691499140251,
18
+ "name": "Entity1",
19
+ "uuid": "c0b085ac56614e09a5527b9570ac430f",
20
+ "tableName": "Entity1",
21
+ "origin": "ide",
22
+ "properties": [
23
+ {
24
+ "concept": "EntityProperty",
25
+ "name": "id",
26
+ "uuid": "db3354b54a8c4c3aa014b272e4559935",
27
+ "columnName": "id",
28
+ "label": "主键",
29
+ "description": "主键",
30
+ "typeAnnotation": {
31
+ "concept": "TypeAnnotation",
32
+ "name": "",
33
+ "typeKind": "primitive",
34
+ "typeNamespace": "nasl.core",
35
+ "typeName": "Long",
36
+ "typeArguments": null,
37
+ "returnType": null,
38
+ "properties": null
39
+ },
40
+ "required": true,
41
+ "primaryKey": true,
42
+ "display": {
43
+ "inTable": false,
44
+ "inFilter": false,
45
+ "inForm": false,
46
+ "inDetail": false
47
+ },
48
+ "rules": [],
49
+ "generationRule": "auto",
50
+ "sequence": "Entity13364888400",
51
+ "isLeaf": true
52
+ },
53
+ {
54
+ "concept": "EntityProperty",
55
+ "changedTime": 1691499159464,
56
+ "name": "value",
57
+ "uuid": "9be4beed0e0941168935b0a66b8b533a",
58
+ "columnName": "value",
59
+ "typeAnnotation": {
60
+ "concept": "TypeAnnotation",
61
+ "name": "",
62
+ "typeKind": "primitive",
63
+ "typeNamespace": "nasl.core",
64
+ "typeName": "String",
65
+ "typeArguments": null,
66
+ "returnType": null,
67
+ "properties": null
68
+ },
69
+ "display": {
70
+ "inDetail": true,
71
+ "inFilter": true,
72
+ "inForm": true,
73
+ "inTable": true
74
+ },
75
+ "rules": [],
76
+ "generationRule": "manual",
77
+ "isLeaf": true
78
+ }
79
+ ],
80
+ "indexes": []
81
+ }
82
+ ]
83
+ }
84
+ ],
85
+ "structures": [],
86
+ "enums": [],
87
+ "logics": [
88
+ {
89
+ "concept": "Logic",
90
+ "changedTime": 1691388528574,
91
+ "name": "logic1",
92
+ "typeParams": null,
93
+ "params": [
94
+ {
95
+ "concept": "Param",
96
+ "changedTime": 1691388537290,
97
+ "name": "param1",
98
+ "typeAnnotation": {
99
+ "concept": "TypeAnnotation",
100
+ "name": "",
101
+ "typeKind": "primitive",
102
+ "typeNamespace": "nasl.core",
103
+ "typeName": "String",
104
+ "typeArguments": null,
105
+ "returnType": null,
106
+ "properties": null
107
+ },
108
+ "required": true,
109
+ "defaultValue": "",
110
+ "cascader": false
111
+ },
112
+ {
113
+ "concept": "Param",
114
+ "name": "param2",
115
+ "typeAnnotation": {
116
+ "concept": "TypeAnnotation",
117
+ "name": "",
118
+ "typeKind": "primitive",
119
+ "typeNamespace": "nasl.core",
120
+ "typeName": "Long",
121
+ "typeArguments": null,
122
+ "returnType": null,
123
+ "properties": null
124
+ },
125
+ "required": true,
126
+ "defaultValue": "",
127
+ "cascader": false
128
+ },
129
+ {
130
+ "concept": "Param",
131
+ "name": "param3",
132
+ "typeAnnotation": {
133
+ "concept": "TypeAnnotation",
134
+ "name": "",
135
+ "typeKind": "reference",
136
+ "typeNamespace": "app.dataSources.defaultDS.entities",
137
+ "typeName": "Entity1",
138
+ "typeArguments": null,
139
+ "returnType": null,
140
+ "properties": null
141
+ },
142
+ "required": true,
143
+ "defaultValue": "",
144
+ "cascader": false
145
+ }
146
+ ],
147
+ "returns": [],
148
+ "variables": [],
149
+ "body": [],
150
+ "playground": []
151
+ }
152
+ ],
153
+ "overriddenLogics": [],
154
+ "interfaces": [],
155
+ "frontends": [
156
+ {
157
+ "concept": "Frontend",
158
+ "name": "pc",
159
+ "title": "PC端",
160
+ "type": "pc",
161
+ "path": "/",
162
+ "documentTitle": null,
163
+ "documentIcon": null,
164
+ "bindEvents": [],
165
+ "views": [
166
+ {
167
+ "concept": "View",
168
+ "changedTime": 1691464240128,
169
+ "name": "test",
170
+ "title": "dsa",
171
+ "crumb": null,
172
+ "auth": false,
173
+ "isIndex": true,
174
+ "script": "",
175
+ "elements": [
176
+ {
177
+ "concept": "ViewElement",
178
+ "name": "uLinearLayout1",
179
+ "type": 0,
180
+ "tag": "u-linear-layout",
181
+ "staticClass": null,
182
+ "staticStyle": "",
183
+ "slotTarget": null,
184
+ "slotScope": null,
185
+ "bindAttrs": [],
186
+ "bindEvents": [
187
+ {
188
+ "concept": "BindEvent",
189
+ "name": "click",
190
+ "logics": [
191
+ {
192
+ "concept": "Logic",
193
+ "name": "click",
194
+ "typeParams": null,
195
+ "params": [],
196
+ "returns": [],
197
+ "variables": [],
198
+ "body": [
199
+ {
200
+ "concept": "Start",
201
+ "name": "",
202
+ "label": "开始",
203
+ "folded": false
204
+ },
205
+ {
206
+ "concept": "CallLogic",
207
+ "__$Selected": true,
208
+ "label": "调用逻辑",
209
+ "folded": false,
210
+ "uuid": "d71684092ec747ef9adce17209a47d94",
211
+ "calleeNamespace": "app.logics",
212
+ "calleeName": "logic1",
213
+ "handleError": false,
214
+ "typeArguments": null,
215
+ "arguments": [
216
+ {
217
+ "concept": "Argument",
218
+ "name": "",
219
+ "folded": false,
220
+ "keyword": "param1",
221
+ "expression": {
222
+ "concept": "StringLiteral",
223
+ "name": "",
224
+ "folded": false,
225
+ "value": "123"
226
+ }
227
+ },
228
+ {
229
+ "concept": "Argument",
230
+ "name": "",
231
+ "folded": false,
232
+ "keyword": "param2"
233
+ },
234
+ {
235
+ "concept": "Argument",
236
+ "name": "",
237
+ "folded": false,
238
+ "keyword": "param3",
239
+ "expression": {
240
+ "concept": "CallFunction",
241
+ "name": "",
242
+ "label": "内置函数",
243
+ "folded": false,
244
+ "calleeNamespace": "nasl.util",
245
+ "calleeName": "New",
246
+ "typeArguments": [
247
+ {
248
+ "concept": "TypeAnnotation",
249
+ "name": "",
250
+ "typeKind": "reference",
251
+ "typeNamespace": "app.dataSources.defaultDS.entities",
252
+ "typeName": "Entity1",
253
+ "typeArguments": null,
254
+ "returnType": null,
255
+ "properties": null
256
+ }
257
+ ],
258
+ "arguments": []
259
+ }
260
+ }
261
+ ]
262
+ },
263
+ {
264
+ "concept": "End",
265
+ "name": "",
266
+ "label": "结束",
267
+ "folded": false
268
+ }
269
+ ],
270
+ "playground": []
271
+ }
272
+ ],
273
+ "arguments": []
274
+ }
275
+ ],
276
+ "bindDirectives": [],
277
+ "bindRoles": [],
278
+ "bindStyles": [],
279
+ "children": []
280
+ }
281
+ ],
282
+ "params": [],
283
+ "variables": [],
284
+ "logics": [],
285
+ "bindEvents": [],
286
+ "bindRoles": [],
287
+ "children": []
288
+ }
289
+ ],
290
+ "variables": [],
291
+ "theme": {
292
+ "concept": "Theme",
293
+ "name": "",
294
+ "title": "默认主题样式",
295
+ "variableMap": {}
296
+ },
297
+ "componentDependencies": [],
298
+ "globalScaleEnabled": false,
299
+ "canvasWidth": 0
300
+ }
301
+ ],
302
+ "backend": {},
303
+ "processes": [],
304
+ "roles": [],
305
+ "configuration": {},
306
+ "dependencies": [],
307
+ "interfaceDependencies": [],
308
+ "authLogics": [],
309
+ "authLogicsForCallInterface": [],
310
+ "preferenceMap": {}
311
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "concept": "CallLogic",
3
+ "name": "",
4
+ "label": "调用逻辑",
5
+ "folded": false,
6
+ "calleeNamespace": "nasl.auth",
7
+ "calleeName": "logout",
8
+ "typeArguments": null,
9
+ "arguments": []
10
+ }
@@ -0,0 +1,128 @@
1
+ {
2
+ "concept": "App",
3
+ "changedTime": 1691388549021,
4
+ "name": "test",
5
+ "id": "823ddeb3-7da4-466e-be35-4a21ad73d5da",
6
+ "ideVersion": "3.1",
7
+ "title": "测试数据",
8
+ "dnsAddr": "http://defaulttenant.lcap.hatest.163yun.com",
9
+ "dataSources": [],
10
+ "structures": [],
11
+ "enums": [],
12
+ "logics": [],
13
+ "overriddenLogics": [],
14
+ "interfaces": [],
15
+ "frontends": [
16
+ {
17
+ "concept": "Frontend",
18
+ "name": "pc",
19
+ "title": "PC端",
20
+ "type": "pc",
21
+ "path": "/",
22
+ "documentTitle": null,
23
+ "documentIcon": null,
24
+ "bindEvents": [],
25
+ "views": [
26
+ {
27
+ "concept": "View",
28
+ "changedTime": 1691464240128,
29
+ "name": "test",
30
+ "title": "dsa",
31
+ "crumb": null,
32
+ "auth": false,
33
+ "isIndex": true,
34
+ "script": "",
35
+ "elements": [
36
+ {
37
+ "concept": "ViewElement",
38
+ "name": "uLinearLayout1",
39
+ "type": 0,
40
+ "tag": "u-linear-layout",
41
+ "staticClass": null,
42
+ "staticStyle": "",
43
+ "slotTarget": null,
44
+ "slotScope": null,
45
+ "bindAttrs": [],
46
+ "bindEvents": [
47
+ {
48
+ "concept": "BindEvent",
49
+ "changedTime": 1691500258418,
50
+ "name": "click",
51
+ "logics": [
52
+ {
53
+ "concept": "CallLogic",
54
+ "__$Selected": true,
55
+ "label": "调用逻辑",
56
+ "folded": false,
57
+ "uuid": "050b4ece455845679874a48344f8540a",
58
+ "calleeNamespace": "nasl.io",
59
+ "calleeName": "downloadFile",
60
+ "handleError": false,
61
+ "typeArguments": null,
62
+ "arguments": [
63
+ {
64
+ "concept": "Argument",
65
+ "name": "",
66
+ "folded": false,
67
+ "keyword": "url",
68
+ "expression": {
69
+ "concept": "StringLiteral",
70
+ "name": "",
71
+ "folded": false,
72
+ "value": "www.baidu.com"
73
+ }
74
+ },
75
+ {
76
+ "concept": "Argument",
77
+ "name": "",
78
+ "folded": false,
79
+ "keyword": "fileName",
80
+ "expression": {
81
+ "concept": "StringLiteral",
82
+ "name": "",
83
+ "folded": false,
84
+ "value": "test.txt"
85
+ }
86
+ }
87
+ ]
88
+ }
89
+ ],
90
+ "arguments": []
91
+ }
92
+ ],
93
+ "bindDirectives": [],
94
+ "bindRoles": [],
95
+ "bindStyles": [],
96
+ "children": []
97
+ }
98
+ ],
99
+ "params": [],
100
+ "variables": [],
101
+ "logics": [],
102
+ "bindEvents": [],
103
+ "bindRoles": [],
104
+ "children": []
105
+ }
106
+ ],
107
+ "variables": [],
108
+ "theme": {
109
+ "concept": "Theme",
110
+ "name": "",
111
+ "title": "默认主题样式",
112
+ "variableMap": {}
113
+ },
114
+ "componentDependencies": [],
115
+ "globalScaleEnabled": false,
116
+ "canvasWidth": 0
117
+ }
118
+ ],
119
+ "backend": {},
120
+ "processes": [],
121
+ "roles": [],
122
+ "configuration": {},
123
+ "dependencies": [],
124
+ "interfaceDependencies": [],
125
+ "authLogics": [],
126
+ "authLogicsForCallInterface": [],
127
+ "preferenceMap": {}
128
+ }