@lcap/nasl 3.5.0-beta.4 → 3.6.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (238) hide show
  1. package/out/bak/translator.js +39 -119
  2. package/out/bak/translator.js.map +1 -1
  3. package/out/breakpoint/generator/BreakpointNode.d.ts +0 -3
  4. package/out/breakpoint/generator/BreakpointNode.js +0 -9
  5. package/out/breakpoint/generator/BreakpointNode.js.map +1 -1
  6. package/out/breakpoint/shared/constants.js +0 -1
  7. package/out/breakpoint/shared/constants.js.map +1 -1
  8. package/out/breakpoint/shared/utils.js +7 -31
  9. package/out/breakpoint/shared/utils.js.map +1 -1
  10. package/out/common/BaseNode.d.ts +13 -1
  11. package/out/common/BaseNode.js +52 -23
  12. package/out/common/BaseNode.js.map +1 -1
  13. package/out/common/Command.js +1 -0
  14. package/out/common/Command.js.map +1 -1
  15. package/out/common/EventEmitter.d.ts +1 -1
  16. package/out/common/EventEmitter.js +0 -4
  17. package/out/common/EventEmitter.js.map +1 -1
  18. package/out/concepts/App__.d.ts +76 -51
  19. package/out/concepts/App__.js +190 -87
  20. package/out/concepts/App__.js.map +1 -1
  21. package/out/concepts/BackendVariable__.js +2 -10
  22. package/out/concepts/BackendVariable__.js.map +1 -1
  23. package/out/concepts/BindAttribute__.js +6 -16
  24. package/out/concepts/BindAttribute__.js.map +1 -1
  25. package/out/concepts/BindDirective__.d.ts +0 -1
  26. package/out/concepts/BindDirective__.js +4 -19
  27. package/out/concepts/BindDirective__.js.map +1 -1
  28. package/out/concepts/BindEvent__.d.ts +1 -3
  29. package/out/concepts/BindEvent__.js +13 -38
  30. package/out/concepts/BindEvent__.js.map +1 -1
  31. package/out/concepts/CallFunction__.js +2 -10
  32. package/out/concepts/CallFunction__.js.map +1 -1
  33. package/out/concepts/CallLogic__.d.ts +0 -2
  34. package/out/concepts/CallLogic__.js +27 -38
  35. package/out/concepts/CallLogic__.js.map +1 -1
  36. package/out/concepts/Constant__.js +6 -7
  37. package/out/concepts/Constant__.js.map +1 -1
  38. package/out/concepts/Destination__.d.ts +1 -1
  39. package/out/concepts/Destination__.js +4 -6
  40. package/out/concepts/Destination__.js.map +1 -1
  41. package/out/concepts/End__.js +1 -2
  42. package/out/concepts/End__.js.map +1 -1
  43. package/out/concepts/Entity__.d.ts +1 -1
  44. package/out/concepts/Entity__.js +2 -0
  45. package/out/concepts/Entity__.js.map +1 -1
  46. package/out/concepts/Event__.d.ts +0 -14
  47. package/out/concepts/Event__.js +0 -61
  48. package/out/concepts/Event__.js.map +1 -1
  49. package/out/concepts/Frontend__.d.ts +88 -0
  50. package/out/concepts/Frontend__.js +143 -1
  51. package/out/concepts/Frontend__.js.map +1 -1
  52. package/out/concepts/Identifier__.d.ts +0 -5
  53. package/out/concepts/Identifier__.js +9 -19
  54. package/out/concepts/Identifier__.js.map +1 -1
  55. package/out/concepts/LogicItem__.d.ts +1 -1
  56. package/out/concepts/LogicItem__.js.map +1 -1
  57. package/out/concepts/Logic__.d.ts +1 -3
  58. package/out/concepts/Logic__.js +13 -16
  59. package/out/concepts/Logic__.js.map +1 -1
  60. package/out/concepts/MemberExpression__.d.ts +1 -1
  61. package/out/concepts/MemberExpression__.js +3 -3
  62. package/out/concepts/MemberExpression__.js.map +1 -1
  63. package/out/concepts/NewComposite__.js.map +1 -1
  64. package/out/concepts/Param__.js +3 -11
  65. package/out/concepts/Param__.js.map +1 -1
  66. package/out/concepts/ProcessElement__.js +1 -9
  67. package/out/concepts/ProcessElement__.js.map +1 -1
  68. package/out/concepts/Return__.js +9 -17
  69. package/out/concepts/Return__.js.map +1 -1
  70. package/out/concepts/Variable__.js +8 -17
  71. package/out/concepts/Variable__.js.map +1 -1
  72. package/out/concepts/ViewElement__.d.ts +2 -17
  73. package/out/concepts/ViewElement__.js +31 -143
  74. package/out/concepts/ViewElement__.js.map +1 -1
  75. package/out/concepts/View__.js +6 -6
  76. package/out/concepts/View__.js.map +1 -1
  77. package/out/concepts/index__.d.ts +0 -5
  78. package/out/concepts/index__.js +0 -5
  79. package/out/concepts/index__.js.map +1 -1
  80. package/out/concepts/utils/asserts.d.ts +3 -258
  81. package/out/concepts/utils/asserts.js +13 -351
  82. package/out/concepts/utils/asserts.js.map +1 -1
  83. package/out/concepts/utils/types.d.ts +3 -20
  84. package/out/generator/genBundleFiles.js +11 -25
  85. package/out/generator/genBundleFiles.js.map +1 -1
  86. package/out/generator/genReleaseBody.js +3 -12
  87. package/out/generator/genReleaseBody.js.map +1 -1
  88. package/out/generator/permission.js +3 -3
  89. package/out/generator/permission.js.map +1 -1
  90. package/out/natural/transformTSCode.js +1 -1
  91. package/out/natural/transformTSCode.js.map +1 -1
  92. package/out/server/extendBaseNode.js +22 -6
  93. package/out/server/extendBaseNode.js.map +1 -1
  94. package/out/server/getLogics.js +27 -62
  95. package/out/server/getLogics.js.map +1 -1
  96. package/out/server/getMemberIdentifier.js +1 -6
  97. package/out/server/getMemberIdentifier.js.map +1 -1
  98. package/out/server/naslServer.js +11 -28
  99. package/out/server/naslServer.js.map +1 -1
  100. package/out/server/translator.js +1 -6
  101. package/out/server/translator.js.map +1 -1
  102. package/out/service/storage/init.js +26 -2
  103. package/out/service/storage/init.js.map +1 -1
  104. package/out/templator/genCreateBlock.js +6 -6
  105. package/out/templator/genCreateBlock.js.map +1 -1
  106. package/out/templator/genCurdEditMultipleKeyBlock.js +16 -16
  107. package/out/templator/genCurdEditMultipleKeyBlock.js.map +1 -1
  108. package/out/templator/genCurdMultipleKeyBlock.d.ts +27 -0
  109. package/out/templator/genCurdMultipleKeyBlock.js +709 -37
  110. package/out/templator/genCurdMultipleKeyBlock.js.map +1 -1
  111. package/out/templator/genGetBlock.js +4 -4
  112. package/out/templator/genGetBlock.js.map +1 -1
  113. package/out/templator/genGridViewBlock.js +12 -12
  114. package/out/templator/genGridViewBlock.js.map +1 -1
  115. package/out/templator/genListViewBlock.js +4 -4
  116. package/out/templator/genListViewBlock.js.map +1 -1
  117. package/out/templator/genSelectBlock.js +3 -3
  118. package/out/templator/genSelectBlock.js.map +1 -1
  119. package/out/templator/genTableBlock.d.ts +2 -0
  120. package/out/templator/genTableBlock.js +124 -11
  121. package/out/templator/genTableBlock.js.map +1 -1
  122. package/out/templator/genUpdateBlock.js +8 -8
  123. package/out/templator/genUpdateBlock.js.map +1 -1
  124. package/out/templator/utils.d.ts +2 -2
  125. package/out/templator/utils.js.map +1 -1
  126. package/out/translator/utils.js +18 -0
  127. package/out/translator/utils.js.map +1 -1
  128. package/out/utils/i18nInfo.js +2 -7
  129. package/out/utils/i18nInfo.js.map +1 -1
  130. package/package.json +2 -2
  131. package/src/bak/translator.js +43 -121
  132. package/src/breakpoint/generator/BreakpointNode.ts +0 -12
  133. package/src/breakpoint/shared/constants.ts +0 -1
  134. package/src/breakpoint/shared/utils.ts +10 -37
  135. package/src/common/BaseNode.ts +60 -22
  136. package/src/common/Command.ts +1 -0
  137. package/src/common/EventEmitter.ts +1 -6
  138. package/src/concepts/App__.ts +251 -139
  139. package/src/concepts/BackendVariable__.ts +2 -10
  140. package/src/concepts/BindAttribute__.ts +6 -15
  141. package/src/concepts/BindDirective__.ts +4 -19
  142. package/src/concepts/BindEvent__.ts +12 -40
  143. package/src/concepts/CallFunction__.ts +2 -10
  144. package/src/concepts/CallLogic__.ts +32 -45
  145. package/src/concepts/Constant__.ts +7 -5
  146. package/src/concepts/Destination__.ts +4 -6
  147. package/src/concepts/End__.ts +0 -1
  148. package/src/concepts/Entity__.ts +3 -1
  149. package/src/concepts/Event__.ts +0 -70
  150. package/src/concepts/Frontend__.ts +251 -3
  151. package/src/concepts/Identifier__.ts +13 -29
  152. package/src/concepts/LogicItem__.ts +0 -1
  153. package/src/concepts/Logic__.ts +14 -21
  154. package/src/concepts/MemberExpression__.ts +3 -3
  155. package/src/concepts/NewComposite__.ts +6 -4
  156. package/src/concepts/Param__.ts +3 -11
  157. package/src/concepts/ProcessElement__.ts +1 -8
  158. package/src/concepts/Return__.ts +12 -15
  159. package/src/concepts/Variable__.ts +9 -17
  160. package/src/concepts/ViewElement__.ts +54 -166
  161. package/src/concepts/View__.ts +6 -8
  162. package/src/concepts/index__.ts +0 -5
  163. package/src/concepts/utils/asserts.ts +4 -367
  164. package/src/concepts/utils/types.ts +0 -28
  165. package/src/generator/genBundleFiles.ts +15 -33
  166. package/src/generator/genReleaseBody.ts +3 -14
  167. package/src/generator/permission.ts +6 -8
  168. package/src/natural/transformTSCode.ts +1 -1
  169. package/src/server/extendBaseNode.ts +41 -22
  170. package/src/server/getLogics.ts +41 -79
  171. package/src/server/getMemberIdentifier.ts +1 -7
  172. package/src/server/naslServer.ts +12 -30
  173. package/src/server/translator.ts +1 -7
  174. package/src/service/storage/init.ts +33 -2
  175. package/src/templator/genCreateBlock.ts +6 -6
  176. package/src/templator/genCurdEditMultipleKeyBlock.ts +16 -16
  177. package/src/templator/genCurdMultipleKeyBlock.ts +817 -93
  178. package/src/templator/genGetBlock.ts +4 -4
  179. package/src/templator/genGridViewBlock.ts +12 -12
  180. package/src/templator/genListViewBlock.ts +4 -4
  181. package/src/templator/genSelectBlock.ts +3 -3
  182. package/src/templator/genTableBlock.ts +137 -12
  183. package/src/templator/genUpdateBlock.ts +8 -8
  184. package/src/templator/utils.ts +2 -2
  185. package/src/translator/utils.ts +20 -0
  186. package/src/utils/i18nInfo.ts +2 -7
  187. package/test/concepts/call-function/fixtures/from-string.json +59 -68
  188. package/test/concepts/call-function/fixtures/to-string-global-tz.json +58 -67
  189. package/test/concepts/call-function/fixtures/to-string-no-tz.json +48 -57
  190. package/test/concepts/call-function/fixtures/to-string-user-tz.json +60 -69
  191. package/test/concepts/call-function/fixtures/to-string-utc-tz.json +60 -69
  192. package/test/concepts/call-interface/fixtures/only-interface.json +72 -81
  193. package/test/concepts/call-interface/fixtures/with-body-complex-argument.json +214 -223
  194. package/test/concepts/call-interface/fixtures/with-body-no-argument.json +76 -85
  195. package/test/concepts/call-interface/fixtures/with-body-simple-argument.json +91 -100
  196. package/test/concepts/call-interface/fixtures/with-headers-no-argument.json +79 -88
  197. package/test/concepts/call-interface/fixtures/with-headers.json +81 -90
  198. package/test/concepts/call-interface/fixtures/with-query-no-argument.json +79 -88
  199. package/test/concepts/call-interface/fixtures/with-query.json +81 -90
  200. package/test/concepts/call-logic/__snapshots__/getQuickInfoOffset.spec.ts.snap +2 -4
  201. package/test/concepts/call-logic/fixtures/entries-get-with-arguments.json +95 -104
  202. package/test/concepts/call-logic/fixtures/entries-update-with-arguments.json +200 -209
  203. package/test/concepts/call-logic/fixtures/global-logic-argument-no-expression.json +88 -97
  204. package/test/concepts/call-logic/fixtures/global-logic-argument-some-expression.json +115 -124
  205. package/test/concepts/call-logic/fixtures/json-deserialize.json +111 -120
  206. package/test/concepts/call-logic/fixtures/json-serialize-with-string.json +115 -124
  207. package/test/concepts/call-logic/fixtures/json-serialize.json +115 -124
  208. package/test/concepts/call-logic/fixtures/view-buildin-logic-with-argument.json +82 -91
  209. package/test/concepts/call-logic/fixtures/view-component-logic-no-argument.json +79 -88
  210. package/test/concepts/call-logic/fixtures/view-component-with-validation.json +135 -144
  211. package/test/concepts/identifier/fixtures/view-variable.json +136 -145
  212. package/test/concepts/view-element/__snapshots__/toVue.spec.ts.snap +1 -1
  213. package/test/concepts/view-element/fixtures/default-login.json +212 -221
  214. package/test/concepts/view-element/fixtures/default-not-found.json +174 -183
  215. package/test/concepts/view-element/fixtures/with-role-auth.json +82 -91
  216. package/test/concepts/view-element/fixtures/with-table.json +1834 -1843
  217. package/test/concepts/view-element/toVue.spec.ts +0 -1
  218. package/ts-worker/package.json +1 -1
  219. package/out/concepts/BusinessComponent__.d.ts +0 -641
  220. package/out/concepts/BusinessComponent__.js +0 -1901
  221. package/out/concepts/BusinessComponent__.js.map +0 -1
  222. package/out/concepts/BusinessLogic__.d.ts +0 -38
  223. package/out/concepts/BusinessLogic__.js +0 -358
  224. package/out/concepts/BusinessLogic__.js.map +0 -1
  225. package/out/concepts/CallEvent__.d.ts +0 -97
  226. package/out/concepts/CallEvent__.js +0 -263
  227. package/out/concepts/CallEvent__.js.map +0 -1
  228. package/out/concepts/FrontendType__.d.ts +0 -308
  229. package/out/concepts/FrontendType__.js +0 -605
  230. package/out/concepts/FrontendType__.js.map +0 -1
  231. package/out/concepts/ParamWithGroup__.d.ts +0 -39
  232. package/out/concepts/ParamWithGroup__.js +0 -85
  233. package/out/concepts/ParamWithGroup__.js.map +0 -1
  234. package/src/concepts/BusinessComponent__.ts +0 -2669
  235. package/src/concepts/BusinessLogic__.ts +0 -376
  236. package/src/concepts/CallEvent__.ts +0 -334
  237. package/src/concepts/FrontendType__.ts +0 -919
  238. package/src/concepts/ParamWithGroup__.ts +0 -101
@@ -16,51 +16,79 @@
16
16
  "logics": [],
17
17
  "overriddenLogics": [],
18
18
  "interfaces": [],
19
- "frontendTypes": [
19
+ "frontends": [
20
20
  {
21
- "concept": "FrontendType",
21
+ "concept": "Frontend",
22
22
  "name": "pc",
23
- "kind": "pc",
24
- "frontends": [
23
+ "title": "PC端",
24
+ "type": "pc",
25
+ "path": "/",
26
+ "documentTitle": null,
27
+ "documentIcon": null,
28
+ "bindEvents": [],
29
+ "views": [
25
30
  {
26
- "concept": "Frontend",
27
- "name": "pc",
28
- "title": "PC端",
29
- "type": "pc",
30
- "path": "/",
31
- "documentTitle": null,
32
- "documentIcon": null,
33
- "bindEvents": [],
34
- "views": [
31
+ "concept": "View",
32
+ "changedTime": 1666872844746,
33
+ "name": "login",
34
+ "uuid": null,
35
+ "title": "登录页",
36
+ "auth": false,
37
+ "isIndex": false,
38
+ "script": "export default {\n data() {\n const { tenant, domainName, env, nuimsDomain = 'user.lcap.163yun.com' } = window.appInfo;\n const envUri = env === 'dev' ? 'dev.' : '';\n return {\n // window 等变量暂时不支持变成 ASL\n tenantName: tenant,\n domainName,\n env,\n src: `${window.location.protocol}//${envUri}${tenant}.${nuimsDomain}`,\n };\n },\n methods: {\n onSuccess() {\n location.href = '/';\n },\n },\n};\n",
39
+ "elements": [
35
40
  {
36
- "concept": "View",
37
- "changedTime": 1666872844746,
38
- "name": "login",
39
- "uuid": null,
40
- "title": "登录页",
41
- "auth": false,
42
- "isIndex": false,
43
- "script": "export default {\n data() {\n const { tenant, domainName, env, nuimsDomain = 'user.lcap.163yun.com' } = window.appInfo;\n const envUri = env === 'dev' ? 'dev.' : '';\n return {\n // window 等变量暂时不支持变成 ASL\n tenantName: tenant,\n domainName,\n env,\n src: `${window.location.protocol}//${envUri}${tenant}.${nuimsDomain}`,\n };\n },\n methods: {\n onSuccess() {\n location.href = '/';\n },\n },\n};\n",
44
- "elements": [
41
+ "__$Selected": true,
42
+ "concept": "ViewElement",
43
+ "changedTime": 1666872844729,
44
+ "name": "uLinearLayout1",
45
+ "type": 0,
46
+ "tag": "u-linear-layout",
47
+ "staticStyle": "background: url('/assets/login-bg-1.jpg') no-repeat; background-size: cover; height: 100vh;",
48
+ "bindAttrs": [
49
+ {
50
+ "concept": "BindAttribute",
51
+ "name": "alignment",
52
+ "type": "string",
53
+ "value": "center",
54
+ "rules": [],
55
+ "model": false,
56
+ "sync": false,
57
+ "playground": []
58
+ },
59
+ {
60
+ "concept": "BindAttribute",
61
+ "name": "justify",
62
+ "type": "string",
63
+ "value": "center",
64
+ "rules": [],
65
+ "model": false,
66
+ "sync": false,
67
+ "playground": []
68
+ },
69
+ {
70
+ "concept": "BindAttribute",
71
+ "name": "type",
72
+ "type": "string",
73
+ "value": "flex",
74
+ "rules": [],
75
+ "model": false,
76
+ "sync": false,
77
+ "playground": []
78
+ }
79
+ ],
80
+ "bindEvents": [],
81
+ "bindDirectives": [],
82
+ "bindRoles": [],
83
+ "bindStyles": [],
84
+ "children": [
45
85
  {
46
- "__$Selected": true,
47
86
  "concept": "ViewElement",
48
- "changedTime": 1666872844729,
49
- "name": "uLinearLayout1",
87
+ "changedTime": 1666872844712,
88
+ "name": "uLinearLayout2",
50
89
  "type": 0,
51
90
  "tag": "u-linear-layout",
52
- "staticStyle": "background: url('/assets/login-bg-1.jpg') no-repeat; background-size: cover; height: 100vh;",
53
91
  "bindAttrs": [
54
- {
55
- "concept": "BindAttribute",
56
- "name": "alignment",
57
- "type": "string",
58
- "value": "center",
59
- "rules": [],
60
- "model": false,
61
- "sync": false,
62
- "playground": []
63
- },
64
92
  {
65
93
  "concept": "BindAttribute",
66
94
  "name": "justify",
@@ -73,9 +101,9 @@
73
101
  },
74
102
  {
75
103
  "concept": "BindAttribute",
76
- "name": "type",
104
+ "name": "direction",
77
105
  "type": "string",
78
- "value": "flex",
106
+ "value": "vertical",
79
107
  "rules": [],
80
108
  "model": false,
81
109
  "sync": false,
@@ -89,32 +117,10 @@
89
117
  "children": [
90
118
  {
91
119
  "concept": "ViewElement",
92
- "changedTime": 1666872844712,
93
- "name": "uLinearLayout2",
120
+ "name": "h11",
94
121
  "type": 0,
95
- "tag": "u-linear-layout",
96
- "bindAttrs": [
97
- {
98
- "concept": "BindAttribute",
99
- "name": "justify",
100
- "type": "string",
101
- "value": "center",
102
- "rules": [],
103
- "model": false,
104
- "sync": false,
105
- "playground": []
106
- },
107
- {
108
- "concept": "BindAttribute",
109
- "name": "direction",
110
- "type": "string",
111
- "value": "vertical",
112
- "rules": [],
113
- "model": false,
114
- "sync": false,
115
- "playground": []
116
- }
117
- ],
122
+ "tag": "h1",
123
+ "bindAttrs": [],
118
124
  "bindEvents": [],
119
125
  "bindDirectives": [],
120
126
  "bindRoles": [],
@@ -122,195 +128,180 @@
122
128
  "children": [
123
129
  {
124
130
  "concept": "ViewElement",
125
- "name": "h11",
131
+ "name": "uText1",
126
132
  "type": 0,
127
- "tag": "h1",
128
- "bindAttrs": [],
129
- "bindEvents": [],
130
- "bindDirectives": [],
131
- "bindRoles": [],
132
- "bindStyles": [],
133
- "children": [
134
- {
135
- "concept": "ViewElement",
136
- "name": "uText1",
137
- "type": 0,
138
- "tag": "u-text",
139
- "bindAttrs": [
140
- {
141
- "concept": "BindAttribute",
142
- "name": "text",
143
- "type": "string",
144
- "value": "登录",
145
- "rules": [],
146
- "model": false,
147
- "sync": false,
148
- "playground": []
149
- }
150
- ],
151
- "bindEvents": [],
152
- "bindDirectives": [],
153
- "bindRoles": [],
154
- "bindStyles": [],
155
- "children": []
156
- }
157
- ]
158
- },
159
- {
160
- "concept": "ViewElement",
161
- "changedTime": 1666872844695,
162
- "name": "lcap_login1",
163
- "tag": "lcap-login",
133
+ "tag": "u-text",
164
134
  "bindAttrs": [
165
135
  {
166
136
  "concept": "BindAttribute",
167
- "name": "src",
137
+ "name": "text",
168
138
  "type": "string",
169
- "value": "http://nuims.vusion.top",
170
- "rules": [],
171
- "playground": []
172
- },
173
- {
174
- "concept": "BindAttribute",
175
- "changedTime": 1666872844534,
176
- "name": "useRedirect",
177
- "type": "static",
178
- "value": true,
179
- "rules": [],
180
- "playground": []
181
- },
182
- {
183
- "concept": "BindAttribute",
184
- "changedTime": 1666872844674,
185
- "name": "mainLoginTypes",
186
- "type": "static",
187
- "value": "[{\"name\":\"Normal\",\"title\":\"普通登录\",\"type\":\"boolean\",\"default\":true,\"description\":\"是否开启普通登录,默认开启\",\"hidden\":true,\"plugin\":false,\"extendProperties\":{}}]",
139
+ "value": "登录",
188
140
  "rules": [],
141
+ "model": false,
142
+ "sync": false,
189
143
  "playground": []
190
144
  }
191
145
  ],
192
- "bindEvents": [
146
+ "bindEvents": [],
147
+ "bindDirectives": [],
148
+ "bindRoles": [],
149
+ "bindStyles": [],
150
+ "children": []
151
+ }
152
+ ]
153
+ },
154
+ {
155
+ "concept": "ViewElement",
156
+ "changedTime": 1666872844695,
157
+ "name": "lcap_login1",
158
+ "tag": "lcap-login",
159
+ "bindAttrs": [
160
+ {
161
+ "concept": "BindAttribute",
162
+ "name": "src",
163
+ "type": "string",
164
+ "value": "http://nuims.vusion.top",
165
+ "rules": [],
166
+ "playground": []
167
+ },
168
+ {
169
+ "concept": "BindAttribute",
170
+ "changedTime": 1666872844534,
171
+ "name": "useRedirect",
172
+ "type": "static",
173
+ "value": true,
174
+ "rules": [],
175
+ "playground": []
176
+ },
177
+ {
178
+ "concept": "BindAttribute",
179
+ "changedTime": 1666872844674,
180
+ "name": "mainLoginTypes",
181
+ "type": "static",
182
+ "value": "[{\"name\":\"Normal\",\"title\":\"普通登录\",\"type\":\"boolean\",\"default\":true,\"description\":\"是否开启普通登录,默认开启\",\"hidden\":true,\"plugin\":false,\"extendProperties\":{}}]",
183
+ "rules": [],
184
+ "playground": []
185
+ }
186
+ ],
187
+ "bindEvents": [
188
+ {
189
+ "concept": "BindEvent",
190
+ "name": "success",
191
+ "logics": [
193
192
  {
194
- "concept": "BindEvent",
193
+ "concept": "Logic",
195
194
  "name": "success",
196
- "logics": [
195
+ "typeParams": null,
196
+ "params": [],
197
+ "returns": [],
198
+ "variables": [],
199
+ "body": [
197
200
  {
198
- "concept": "Logic",
199
- "name": "success",
200
- "typeParams": null,
201
- "params": [],
202
- "returns": [],
203
- "variables": [],
204
- "body": [
205
- {
206
- "concept": "Start",
207
- "name": "",
208
- "label": "开始",
209
- "folded": false
210
- },
201
+ "concept": "Start",
202
+ "name": "",
203
+ "label": "开始",
204
+ "folded": false
205
+ },
206
+ {
207
+ "concept": "CallLogic",
208
+ "name": "",
209
+ "label": "输出日志",
210
+ "folded": false,
211
+ "uuid": "7101d7076eba42dcb38140f10d5fb8ef",
212
+ "calleeNamespace": "nasl.util",
213
+ "calleeName": "consoleLog",
214
+ "shortcut": true,
215
+ "typeArguments": null,
216
+ "arguments": [
211
217
  {
212
- "concept": "CallLogic",
218
+ "concept": "Argument",
213
219
  "name": "",
214
- "label": "输出日志",
215
220
  "folded": false,
216
- "uuid": "7101d7076eba42dcb38140f10d5fb8ef",
217
- "calleeNamespace": "nasl.util",
218
- "calleeName": "consoleLog",
219
- "shortcut": true,
220
- "typeArguments": null,
221
- "arguments": [
222
- {
223
- "concept": "Argument",
224
- "name": "",
225
- "folded": false,
226
- "keyword": "arg",
227
- "expression": {
228
- "concept": "StringInterpolation",
221
+ "keyword": "arg",
222
+ "expression": {
223
+ "concept": "StringInterpolation",
224
+ "name": "",
225
+ "folded": false,
226
+ "expressions": [
227
+ {
228
+ "concept": "StringLiteral",
229
229
  "name": "",
230
230
  "folded": false,
231
- "expressions": [
232
- {
233
- "concept": "StringLiteral",
234
- "name": "",
235
- "folded": false,
236
- "value": "成功登录"
237
- }
238
- ]
231
+ "value": "成功登录"
239
232
  }
240
- }
241
- ]
242
- },
243
- {
244
- "concept": "End",
245
- "name": "",
246
- "label": "结束",
247
- "folded": false
233
+ ]
234
+ }
248
235
  }
249
- ],
250
- "playground": []
236
+ ]
237
+ },
238
+ {
239
+ "concept": "End",
240
+ "name": "",
241
+ "label": "结束",
242
+ "folded": false
251
243
  }
252
244
  ],
253
- "arguments": []
245
+ "playground": []
254
246
  }
255
247
  ],
256
- "bindDirectives": [],
257
- "bindRoles": [],
258
- "bindStyles": [],
259
- "children": []
248
+ "arguments": []
260
249
  }
261
- ]
250
+ ],
251
+ "bindDirectives": [],
252
+ "bindRoles": [],
253
+ "bindStyles": [],
254
+ "children": []
262
255
  }
263
256
  ]
264
257
  }
265
- ],
266
- "params": [],
267
- "variables": [],
268
- "logics": [],
269
- "bindEvents": [],
270
- "bindRoles": [],
271
- "children": []
258
+ ]
272
259
  }
273
260
  ],
261
+ "params": [],
274
262
  "variables": [],
275
- "theme": {
276
- "concept": "Theme",
277
- "name": "",
278
- "title": "默认主题样式",
279
- "variableMap": {}
280
- },
281
- "componentDependencies": [
282
- {
283
- "concept": "Module",
284
- "name": "lcap-login",
285
- "type": "component",
286
- "version": "1.2.2",
287
- "title": null,
288
- "description": null,
289
- "externalDependencyMap": null,
290
- "compilerInfoMap": null,
291
- "dataSources": [],
292
- "structures": [],
293
- "enums": [],
294
- "logics": [],
295
- "interfaces": [],
296
- "views": [],
297
- "frontendVariables": [],
298
- "processes": [],
299
- "frontends": [],
300
- "configuration": null,
301
- "authLogics": null,
302
- "authLogicsForCallInterface": [],
303
- "triggerLaunchers": [],
304
- "connections": [],
305
- "dependencies": []
306
- }
307
- ],
308
- "globalScaleEnabled": false,
309
- "canvasWidth": 0
263
+ "logics": [],
264
+ "bindEvents": [],
265
+ "bindRoles": [],
266
+ "children": []
267
+ }
268
+ ],
269
+ "variables": [],
270
+ "theme": {
271
+ "concept": "Theme",
272
+ "name": "",
273
+ "title": "默认主题样式",
274
+ "variableMap": {}
275
+ },
276
+ "componentDependencies": [
277
+ {
278
+ "concept": "Module",
279
+ "name": "lcap-login",
280
+ "type": "component",
281
+ "version": "1.2.2",
282
+ "title": null,
283
+ "description": null,
284
+ "externalDependencyMap": null,
285
+ "compilerInfoMap": null,
286
+ "dataSources": [],
287
+ "structures": [],
288
+ "enums": [],
289
+ "logics": [],
290
+ "interfaces": [],
291
+ "views": [],
292
+ "frontendVariables": [],
293
+ "processes": [],
294
+ "frontends": [],
295
+ "configuration": null,
296
+ "authLogics": null,
297
+ "authLogicsForCallInterface": [],
298
+ "triggerLaunchers": [],
299
+ "connections": [],
300
+ "dependencies": []
310
301
  }
311
302
  ],
312
- "businessComponents": [],
313
- "componentDependencies": []
303
+ "globalScaleEnabled": false,
304
+ "canvasWidth": 0
314
305
  }
315
306
  ],
316
307
  "backend": {
@@ -339,4 +330,4 @@
339
330
  "onDemandInterfaceGeneration": "true",
340
331
  "serverValidationRules": "custom"
341
332
  }
342
- }
333
+ }