@lcap/nasl 3.6.0-alpha.1 → 3.6.0-alpha.2

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 (245) hide show
  1. package/out/bak/translator.js +119 -39
  2. package/out/bak/translator.js.map +1 -1
  3. package/out/breakpoint/generator/BreakpointNode.d.ts +3 -0
  4. package/out/breakpoint/generator/BreakpointNode.js +9 -0
  5. package/out/breakpoint/generator/BreakpointNode.js.map +1 -1
  6. package/out/breakpoint/shared/constants.js +1 -0
  7. package/out/breakpoint/shared/constants.js.map +1 -1
  8. package/out/breakpoint/shared/utils.js +12 -6
  9. package/out/breakpoint/shared/utils.js.map +1 -1
  10. package/out/breakpoint/store/core.js +1 -1
  11. package/out/breakpoint/store/core.js.map +1 -1
  12. package/out/common/BaseNode.d.ts +1 -4
  13. package/out/common/BaseNode.js +23 -37
  14. package/out/common/BaseNode.js.map +1 -1
  15. package/out/concepts/AnonymousFunction__.d.ts +6 -1
  16. package/out/concepts/AnonymousFunction__.js +34 -16
  17. package/out/concepts/AnonymousFunction__.js.map +1 -1
  18. package/out/concepts/App__.d.ts +55 -51
  19. package/out/concepts/App__.js +76 -80
  20. package/out/concepts/App__.js.map +1 -1
  21. package/out/concepts/BackendVariable__.js +10 -2
  22. package/out/concepts/BackendVariable__.js.map +1 -1
  23. package/out/concepts/BindAttribute__.js +16 -6
  24. package/out/concepts/BindAttribute__.js.map +1 -1
  25. package/out/concepts/BindDirective__.d.ts +1 -0
  26. package/out/concepts/BindDirective__.js +19 -4
  27. package/out/concepts/BindDirective__.js.map +1 -1
  28. package/out/concepts/BindEvent__.d.ts +3 -1
  29. package/out/concepts/BindEvent__.js +39 -14
  30. package/out/concepts/BindEvent__.js.map +1 -1
  31. package/out/concepts/BusinessComponent__.d.ts +641 -0
  32. package/out/concepts/BusinessComponent__.js +1921 -0
  33. package/out/concepts/BusinessComponent__.js.map +1 -0
  34. package/out/concepts/BusinessLogic__.d.ts +38 -0
  35. package/out/concepts/BusinessLogic__.js +358 -0
  36. package/out/concepts/BusinessLogic__.js.map +1 -0
  37. package/out/concepts/CallEvent__.d.ts +101 -0
  38. package/out/concepts/CallEvent__.js +280 -0
  39. package/out/concepts/CallEvent__.js.map +1 -0
  40. package/out/concepts/CallFunction__.d.ts +0 -1
  41. package/out/concepts/CallFunction__.js +10 -10
  42. package/out/concepts/CallFunction__.js.map +1 -1
  43. package/out/concepts/CallLogic__.d.ts +2 -0
  44. package/out/concepts/CallLogic__.js +38 -27
  45. package/out/concepts/CallLogic__.js.map +1 -1
  46. package/out/concepts/Constant__.js +7 -6
  47. package/out/concepts/Constant__.js.map +1 -1
  48. package/out/concepts/Destination__.d.ts +1 -1
  49. package/out/concepts/Destination__.js +7 -5
  50. package/out/concepts/Destination__.js.map +1 -1
  51. package/out/concepts/End__.js +2 -1
  52. package/out/concepts/End__.js.map +1 -1
  53. package/out/concepts/Event__.d.ts +14 -0
  54. package/out/concepts/Event__.js +61 -0
  55. package/out/concepts/Event__.js.map +1 -1
  56. package/out/concepts/FrontendType__.d.ts +308 -0
  57. package/out/concepts/FrontendType__.js +605 -0
  58. package/out/concepts/FrontendType__.js.map +1 -0
  59. package/out/concepts/Frontend__.d.ts +0 -88
  60. package/out/concepts/Frontend__.js +1 -143
  61. package/out/concepts/Frontend__.js.map +1 -1
  62. package/out/concepts/Identifier__.d.ts +5 -0
  63. package/out/concepts/Identifier__.js +19 -9
  64. package/out/concepts/Identifier__.js.map +1 -1
  65. package/out/concepts/LogicItem__.d.ts +1 -1
  66. package/out/concepts/LogicItem__.js.map +1 -1
  67. package/out/concepts/Logic__.d.ts +3 -1
  68. package/out/concepts/Logic__.js +31 -21
  69. package/out/concepts/Logic__.js.map +1 -1
  70. package/out/concepts/Match__.d.ts +1 -1
  71. package/out/concepts/MemberExpression__.d.ts +1 -1
  72. package/out/concepts/MemberExpression__.js +3 -3
  73. package/out/concepts/MemberExpression__.js.map +1 -1
  74. package/out/concepts/NewComposite__.js.map +1 -1
  75. package/out/concepts/ParamWithGroup__.d.ts +39 -0
  76. package/out/concepts/ParamWithGroup__.js +85 -0
  77. package/out/concepts/ParamWithGroup__.js.map +1 -0
  78. package/out/concepts/Param__.js +11 -3
  79. package/out/concepts/Param__.js.map +1 -1
  80. package/out/concepts/ProcessElement__.js +9 -1
  81. package/out/concepts/ProcessElement__.js.map +1 -1
  82. package/out/concepts/Return__.js +17 -9
  83. package/out/concepts/Return__.js.map +1 -1
  84. package/out/concepts/ValidationRule__.js +2 -1
  85. package/out/concepts/ValidationRule__.js.map +1 -1
  86. package/out/concepts/Variable__.js +17 -8
  87. package/out/concepts/Variable__.js.map +1 -1
  88. package/out/concepts/ViewElement__.d.ts +17 -1
  89. package/out/concepts/ViewElement__.js +145 -16
  90. package/out/concepts/ViewElement__.js.map +1 -1
  91. package/out/concepts/View__.js +21 -20
  92. package/out/concepts/View__.js.map +1 -1
  93. package/out/concepts/index__.d.ts +5 -0
  94. package/out/concepts/index__.js +5 -0
  95. package/out/concepts/index__.js.map +1 -1
  96. package/out/concepts/utils/asserts.d.ts +258 -3
  97. package/out/concepts/utils/asserts.js +351 -13
  98. package/out/concepts/utils/asserts.js.map +1 -1
  99. package/out/concepts/utils/types.d.ts +20 -3
  100. package/out/generator/genBundleFiles.js +25 -11
  101. package/out/generator/genBundleFiles.js.map +1 -1
  102. package/out/generator/genReleaseBody.js +12 -3
  103. package/out/generator/genReleaseBody.js.map +1 -1
  104. package/out/generator/permission.js +3 -3
  105. package/out/generator/permission.js.map +1 -1
  106. package/out/natural/transformTSCode.js +1 -1
  107. package/out/natural/transformTSCode.js.map +1 -1
  108. package/out/server/extendBaseNode.js +6 -4
  109. package/out/server/extendBaseNode.js.map +1 -1
  110. package/out/server/getLogics.js +62 -27
  111. package/out/server/getLogics.js.map +1 -1
  112. package/out/server/getMemberIdentifier.js +6 -1
  113. package/out/server/getMemberIdentifier.js.map +1 -1
  114. package/out/server/getProcesses.js +3 -3
  115. package/out/server/getProcesses.js.map +1 -1
  116. package/out/server/naslServer.js +40 -19
  117. package/out/server/naslServer.js.map +1 -1
  118. package/out/server/translator.js +6 -1
  119. package/out/server/translator.js.map +1 -1
  120. package/out/service/storage/init.js +1 -2
  121. package/out/service/storage/init.js.map +1 -1
  122. package/out/templator/genCreateBlock.js +6 -6
  123. package/out/templator/genCreateBlock.js.map +1 -1
  124. package/out/templator/genCurdEditMultipleKeyBlock.js +16 -16
  125. package/out/templator/genCurdEditMultipleKeyBlock.js.map +1 -1
  126. package/out/templator/genCurdMultipleKeyBlock.js +36 -36
  127. package/out/templator/genCurdMultipleKeyBlock.js.map +1 -1
  128. package/out/templator/genGetBlock.js +6 -5
  129. package/out/templator/genGetBlock.js.map +1 -1
  130. package/out/templator/genGridViewBlock.js +12 -12
  131. package/out/templator/genGridViewBlock.js.map +1 -1
  132. package/out/templator/genListViewBlock.js +4 -4
  133. package/out/templator/genListViewBlock.js.map +1 -1
  134. package/out/templator/genSelectBlock.js +3 -3
  135. package/out/templator/genSelectBlock.js.map +1 -1
  136. package/out/templator/genTableBlock.js +10 -10
  137. package/out/templator/genTableBlock.js.map +1 -1
  138. package/out/templator/genUpdateBlock.js +10 -9
  139. package/out/templator/genUpdateBlock.js.map +1 -1
  140. package/out/templator/utils.d.ts +2 -2
  141. package/out/templator/utils.js.map +1 -1
  142. package/out/translator/utils.js +12 -1
  143. package/out/translator/utils.js.map +1 -1
  144. package/out/utils/i18nInfo.js +7 -2
  145. package/out/utils/i18nInfo.js.map +1 -1
  146. package/out/utils/index.d.ts +17 -0
  147. package/out/utils/index.js +184 -1
  148. package/out/utils/index.js.map +1 -1
  149. package/package.json +2 -2
  150. package/src/bak/translator.js +121 -43
  151. package/src/breakpoint/generator/BreakpointNode.ts +12 -0
  152. package/src/breakpoint/shared/constants.ts +1 -0
  153. package/src/breakpoint/shared/utils.ts +13 -8
  154. package/src/breakpoint/store/core.ts +1 -1
  155. package/src/common/BaseNode.ts +22 -41
  156. package/src/concepts/AnonymousFunction__.ts +36 -18
  157. package/src/concepts/App__.ts +129 -130
  158. package/src/concepts/BackendVariable__.ts +10 -2
  159. package/src/concepts/BindAttribute__.ts +14 -6
  160. package/src/concepts/BindDirective__.ts +19 -4
  161. package/src/concepts/BindEvent__.ts +41 -13
  162. package/src/concepts/BusinessComponent__.ts +2693 -0
  163. package/src/concepts/BusinessLogic__.ts +376 -0
  164. package/src/concepts/CallEvent__.ts +351 -0
  165. package/src/concepts/CallFunction__.ts +10 -13
  166. package/src/concepts/CallLogic__.ts +45 -32
  167. package/src/concepts/Constant__.ts +5 -7
  168. package/src/concepts/Destination__.ts +7 -5
  169. package/src/concepts/End__.ts +1 -0
  170. package/src/concepts/Event__.ts +70 -0
  171. package/src/concepts/FrontendType__.ts +919 -0
  172. package/src/concepts/Frontend__.ts +3 -251
  173. package/src/concepts/Identifier__.ts +29 -13
  174. package/src/concepts/LogicItem__.ts +1 -0
  175. package/src/concepts/Logic__.ts +36 -23
  176. package/src/concepts/MemberExpression__.ts +3 -3
  177. package/src/concepts/NewComposite__.ts +4 -6
  178. package/src/concepts/ParamWithGroup__.ts +101 -0
  179. package/src/concepts/Param__.ts +11 -3
  180. package/src/concepts/ProcessElement__.ts +8 -1
  181. package/src/concepts/Return__.ts +15 -12
  182. package/src/concepts/ValidationRule__.ts +6 -1
  183. package/src/concepts/Variable__.ts +17 -9
  184. package/src/concepts/ViewElement__.ts +168 -33
  185. package/src/concepts/View__.ts +23 -20
  186. package/src/concepts/index__.ts +5 -0
  187. package/src/concepts/utils/asserts.ts +367 -4
  188. package/src/concepts/utils/types.ts +28 -0
  189. package/src/generator/genBundleFiles.ts +33 -15
  190. package/src/generator/genReleaseBody.ts +14 -3
  191. package/src/generator/permission.ts +8 -6
  192. package/src/natural/transformTSCode.ts +1 -1
  193. package/src/server/extendBaseNode.ts +22 -20
  194. package/src/server/getLogics.ts +79 -41
  195. package/src/server/getMemberIdentifier.ts +7 -1
  196. package/src/server/getProcesses.ts +3 -3
  197. package/src/server/naslServer.ts +44 -20
  198. package/src/server/translator.ts +7 -1
  199. package/src/service/storage/init.ts +1 -2
  200. package/src/templator/genCreateBlock.ts +6 -6
  201. package/src/templator/genCurdEditMultipleKeyBlock.ts +16 -16
  202. package/src/templator/genCurdMultipleKeyBlock.ts +36 -36
  203. package/src/templator/genGetBlock.ts +6 -5
  204. package/src/templator/genGridViewBlock.ts +12 -12
  205. package/src/templator/genListViewBlock.ts +4 -4
  206. package/src/templator/genSelectBlock.ts +3 -3
  207. package/src/templator/genTableBlock.ts +10 -10
  208. package/src/templator/genUpdateBlock.ts +10 -9
  209. package/src/templator/utils.ts +2 -2
  210. package/src/translator/utils.ts +12 -1
  211. package/src/utils/i18nInfo.ts +7 -2
  212. package/src/utils/index.ts +211 -1
  213. package/test/concepts/call-function/fixtures/from-string.json +68 -59
  214. package/test/concepts/call-function/fixtures/to-string-global-tz.json +67 -58
  215. package/test/concepts/call-function/fixtures/to-string-no-tz.json +57 -48
  216. package/test/concepts/call-function/fixtures/to-string-user-tz.json +69 -60
  217. package/test/concepts/call-function/fixtures/to-string-utc-tz.json +69 -60
  218. package/test/concepts/call-interface/fixtures/only-interface.json +81 -72
  219. package/test/concepts/call-interface/fixtures/with-body-complex-argument.json +223 -214
  220. package/test/concepts/call-interface/fixtures/with-body-no-argument.json +85 -76
  221. package/test/concepts/call-interface/fixtures/with-body-simple-argument.json +100 -91
  222. package/test/concepts/call-interface/fixtures/with-headers-no-argument.json +88 -79
  223. package/test/concepts/call-interface/fixtures/with-headers.json +90 -81
  224. package/test/concepts/call-interface/fixtures/with-query-no-argument.json +88 -79
  225. package/test/concepts/call-interface/fixtures/with-query.json +90 -81
  226. package/test/concepts/call-logic/__snapshots__/getQuickInfoOffset.spec.ts.snap +4 -2
  227. package/test/concepts/call-logic/fixtures/entries-get-with-arguments.json +104 -95
  228. package/test/concepts/call-logic/fixtures/entries-update-with-arguments.json +209 -200
  229. package/test/concepts/call-logic/fixtures/global-logic-argument-no-expression.json +97 -88
  230. package/test/concepts/call-logic/fixtures/global-logic-argument-some-expression.json +124 -115
  231. package/test/concepts/call-logic/fixtures/json-deserialize.json +120 -111
  232. package/test/concepts/call-logic/fixtures/json-serialize-with-string.json +124 -115
  233. package/test/concepts/call-logic/fixtures/json-serialize.json +124 -115
  234. package/test/concepts/call-logic/fixtures/view-buildin-logic-with-argument.json +91 -82
  235. package/test/concepts/call-logic/fixtures/view-component-logic-no-argument.json +88 -79
  236. package/test/concepts/call-logic/fixtures/view-component-with-validation.json +144 -135
  237. package/test/concepts/identifier/fixtures/view-variable.json +145 -136
  238. package/test/concepts/view-element/__snapshots__/toVue.spec.ts.snap +1 -1
  239. package/test/concepts/view-element/fixtures/default-login.json +221 -212
  240. package/test/concepts/view-element/fixtures/default-not-found.json +183 -174
  241. package/test/concepts/view-element/fixtures/with-role-auth.json +91 -82
  242. package/test/concepts/view-element/fixtures/with-table.json +1894 -1885
  243. package/test/concepts/view-element/toVue.spec.ts +1 -0
  244. package/ts-worker/package.json +1 -1
  245. package/ts-worker/src/index.js +1 -0
@@ -16,75 +16,38 @@
16
16
  "logics": [],
17
17
  "overriddenLogics": [],
18
18
  "interfaces": [],
19
- "frontends": [
19
+ "frontendTypes": [
20
20
  {
21
- "concept": "Frontend",
21
+ "concept": "FrontendType",
22
22
  "name": "pc",
23
- "title": "PC端",
24
- "type": "pc",
25
- "path": "/",
26
- "documentTitle": null,
27
- "documentIcon": null,
28
- "bindEvents": [],
29
- "views": [
23
+ "kind": "pc",
24
+ "frontends": [
30
25
  {
31
- "concept": "View",
32
- "name": "notFound",
33
- "uuid": null,
34
- "title": "找不到页面",
35
- "auth": false,
36
- "isIndex": false,
37
- "script": "",
38
- "elements": [
26
+ "concept": "Frontend",
27
+ "name": "pc",
28
+ "title": "PC端",
29
+ "type": "pc",
30
+ "path": "/",
31
+ "documentTitle": null,
32
+ "documentIcon": null,
33
+ "bindEvents": [],
34
+ "views": [
39
35
  {
40
- "__$Selected": true,
41
- "concept": "ViewElement",
42
- "name": "uLinearLayout1",
43
- "type": 0,
44
- "tag": "u-linear-layout",
45
- "staticStyle": "height: 100vh;",
46
- "bindAttrs": [
47
- {
48
- "concept": "BindAttribute",
49
- "name": "justify",
50
- "type": "string",
51
- "value": "center",
52
- "rules": [],
53
- "model": false,
54
- "sync": false,
55
- "playground": []
56
- },
57
- {
58
- "concept": "BindAttribute",
59
- "name": "type",
60
- "type": "string",
61
- "value": "flex",
62
- "rules": [],
63
- "model": false,
64
- "sync": false,
65
- "playground": []
66
- },
67
- {
68
- "concept": "BindAttribute",
69
- "name": "alignment",
70
- "type": "string",
71
- "value": "center",
72
- "rules": [],
73
- "model": false,
74
- "sync": false,
75
- "playground": []
76
- }
77
- ],
78
- "bindEvents": [],
79
- "bindDirectives": [],
80
- "bindRoles": [],
81
- "bindStyles": [],
82
- "children": [
36
+ "concept": "View",
37
+ "name": "notFound",
38
+ "uuid": null,
39
+ "title": "找不到页面",
40
+ "auth": false,
41
+ "isIndex": false,
42
+ "script": "",
43
+ "elements": [
83
44
  {
45
+ "__$Selected": true,
84
46
  "concept": "ViewElement",
85
- "name": "uLinearLayout2",
47
+ "name": "uLinearLayout1",
86
48
  "type": 0,
87
49
  "tag": "u-linear-layout",
50
+ "staticStyle": "height: 100vh;",
88
51
  "bindAttrs": [
89
52
  {
90
53
  "concept": "BindAttribute",
@@ -98,9 +61,19 @@
98
61
  },
99
62
  {
100
63
  "concept": "BindAttribute",
101
- "name": "direction",
64
+ "name": "type",
102
65
  "type": "string",
103
- "value": "vertical",
66
+ "value": "flex",
67
+ "rules": [],
68
+ "model": false,
69
+ "sync": false,
70
+ "playground": []
71
+ },
72
+ {
73
+ "concept": "BindAttribute",
74
+ "name": "alignment",
75
+ "type": "string",
76
+ "value": "center",
104
77
  "rules": [],
105
78
  "model": false,
106
79
  "sync": false,
@@ -114,15 +87,15 @@
114
87
  "children": [
115
88
  {
116
89
  "concept": "ViewElement",
117
- "name": "img1",
90
+ "name": "uLinearLayout2",
118
91
  "type": 0,
119
- "tag": "img",
92
+ "tag": "u-linear-layout",
120
93
  "bindAttrs": [
121
94
  {
122
95
  "concept": "BindAttribute",
123
- "name": "width",
96
+ "name": "justify",
124
97
  "type": "string",
125
- "value": "240",
98
+ "value": "center",
126
99
  "rules": [],
127
100
  "model": false,
128
101
  "sync": false,
@@ -130,9 +103,9 @@
130
103
  },
131
104
  {
132
105
  "concept": "BindAttribute",
133
- "name": "src",
106
+ "name": "direction",
134
107
  "type": "string",
135
- "value": "/assets/error-code.svg",
108
+ "value": "vertical",
136
109
  "rules": [],
137
110
  "model": false,
138
111
  "sync": false,
@@ -143,31 +116,28 @@
143
116
  "bindDirectives": [],
144
117
  "bindRoles": [],
145
118
  "bindStyles": [],
146
- "children": []
147
- },
148
- {
149
- "concept": "ViewElement",
150
- "name": "h11",
151
- "type": 0,
152
- "tag": "h1",
153
- "staticStyle": "margin: 0; margin-top: -15px; padding-bottom: 20px; font-family: Geneva, 'Arial Black', Verdana, Tahoma, sans-serif; font-size: 64px;",
154
- "bindAttrs": [],
155
- "bindEvents": [],
156
- "bindDirectives": [],
157
- "bindRoles": [],
158
- "bindStyles": [],
159
119
  "children": [
160
120
  {
161
121
  "concept": "ViewElement",
162
- "name": "uText1",
122
+ "name": "img1",
163
123
  "type": 0,
164
- "tag": "u-text",
124
+ "tag": "img",
165
125
  "bindAttrs": [
166
126
  {
167
127
  "concept": "BindAttribute",
168
- "name": "text",
128
+ "name": "width",
129
+ "type": "string",
130
+ "value": "240",
131
+ "rules": [],
132
+ "model": false,
133
+ "sync": false,
134
+ "playground": []
135
+ },
136
+ {
137
+ "concept": "BindAttribute",
138
+ "name": "src",
169
139
  "type": "string",
170
- "value": "404",
140
+ "value": "/assets/error-code.svg",
171
141
  "rules": [],
172
142
  "model": false,
173
143
  "sync": false,
@@ -179,32 +149,122 @@
179
149
  "bindRoles": [],
180
150
  "bindStyles": [],
181
151
  "children": []
182
- }
183
- ]
184
- },
185
- {
186
- "concept": "ViewElement",
187
- "name": "h21",
188
- "type": 0,
189
- "tag": "h2",
190
- "staticStyle": "color: var(--color-light);",
191
- "bindAttrs": [],
192
- "bindEvents": [],
193
- "bindDirectives": [],
194
- "bindRoles": [],
195
- "bindStyles": [],
196
- "children": [
152
+ },
197
153
  {
198
154
  "concept": "ViewElement",
199
- "name": "uText2",
155
+ "name": "h11",
200
156
  "type": 0,
201
- "tag": "u-text",
157
+ "tag": "h1",
158
+ "staticStyle": "margin: 0; margin-top: -15px; padding-bottom: 20px; font-family: Geneva, 'Arial Black', Verdana, Tahoma, sans-serif; font-size: 64px;",
159
+ "bindAttrs": [],
160
+ "bindEvents": [],
161
+ "bindDirectives": [],
162
+ "bindRoles": [],
163
+ "bindStyles": [],
164
+ "children": [
165
+ {
166
+ "concept": "ViewElement",
167
+ "name": "uText1",
168
+ "type": 0,
169
+ "tag": "u-text",
170
+ "bindAttrs": [
171
+ {
172
+ "concept": "BindAttribute",
173
+ "name": "text",
174
+ "type": "string",
175
+ "value": "404",
176
+ "rules": [],
177
+ "model": false,
178
+ "sync": false,
179
+ "playground": []
180
+ }
181
+ ],
182
+ "bindEvents": [],
183
+ "bindDirectives": [],
184
+ "bindRoles": [],
185
+ "bindStyles": [],
186
+ "children": []
187
+ }
188
+ ]
189
+ },
190
+ {
191
+ "concept": "ViewElement",
192
+ "name": "h21",
193
+ "type": 0,
194
+ "tag": "h2",
195
+ "staticStyle": "color: var(--color-light);",
196
+ "bindAttrs": [],
197
+ "bindEvents": [],
198
+ "bindDirectives": [],
199
+ "bindRoles": [],
200
+ "bindStyles": [],
201
+ "children": [
202
+ {
203
+ "concept": "ViewElement",
204
+ "name": "uText2",
205
+ "type": 0,
206
+ "tag": "u-text",
207
+ "bindAttrs": [
208
+ {
209
+ "concept": "BindAttribute",
210
+ "name": "text",
211
+ "type": "string",
212
+ "value": "抱歉,你访问的页面不存在",
213
+ "rules": [],
214
+ "model": false,
215
+ "sync": false,
216
+ "playground": []
217
+ }
218
+ ],
219
+ "bindEvents": [],
220
+ "bindDirectives": [],
221
+ "bindRoles": [],
222
+ "bindStyles": [],
223
+ "children": []
224
+ }
225
+ ]
226
+ },
227
+ {
228
+ "concept": "ViewElement",
229
+ "name": "uButton1",
230
+ "type": 0,
231
+ "tag": "u-button",
202
232
  "bindAttrs": [
203
233
  {
204
234
  "concept": "BindAttribute",
205
235
  "name": "text",
206
236
  "type": "string",
207
- "value": "抱歉,你访问的页面不存在",
237
+ "value": "返回首页",
238
+ "rules": [],
239
+ "model": false,
240
+ "sync": false,
241
+ "playground": []
242
+ },
243
+ {
244
+ "concept": "BindAttribute",
245
+ "name": "color",
246
+ "type": "string",
247
+ "value": "primary",
248
+ "rules": [],
249
+ "model": false,
250
+ "sync": false,
251
+ "playground": []
252
+ },
253
+ {
254
+ "concept": "BindAttribute",
255
+ "name": "href",
256
+ "type": "string",
257
+ "value": "/",
258
+ "rules": [],
259
+ "model": false,
260
+ "sync": false,
261
+ "playground": []
262
+ },
263
+ {
264
+ "concept": "BindAttribute",
265
+ "name": "shape",
266
+ "type": "string",
267
+ "value": "round",
208
268
  "rules": [],
209
269
  "model": false,
210
270
  "sync": false,
@@ -218,83 +278,32 @@
218
278
  "children": []
219
279
  }
220
280
  ]
221
- },
222
- {
223
- "concept": "ViewElement",
224
- "name": "uButton1",
225
- "type": 0,
226
- "tag": "u-button",
227
- "bindAttrs": [
228
- {
229
- "concept": "BindAttribute",
230
- "name": "text",
231
- "type": "string",
232
- "value": "返回首页",
233
- "rules": [],
234
- "model": false,
235
- "sync": false,
236
- "playground": []
237
- },
238
- {
239
- "concept": "BindAttribute",
240
- "name": "color",
241
- "type": "string",
242
- "value": "primary",
243
- "rules": [],
244
- "model": false,
245
- "sync": false,
246
- "playground": []
247
- },
248
- {
249
- "concept": "BindAttribute",
250
- "name": "href",
251
- "type": "string",
252
- "value": "/",
253
- "rules": [],
254
- "model": false,
255
- "sync": false,
256
- "playground": []
257
- },
258
- {
259
- "concept": "BindAttribute",
260
- "name": "shape",
261
- "type": "string",
262
- "value": "round",
263
- "rules": [],
264
- "model": false,
265
- "sync": false,
266
- "playground": []
267
- }
268
- ],
269
- "bindEvents": [],
270
- "bindDirectives": [],
271
- "bindRoles": [],
272
- "bindStyles": [],
273
- "children": []
274
281
  }
275
282
  ]
276
283
  }
277
- ]
284
+ ],
285
+ "params": [],
286
+ "variables": [],
287
+ "logics": [],
288
+ "bindEvents": [],
289
+ "bindRoles": [],
290
+ "children": []
278
291
  }
279
292
  ],
280
- "params": [],
281
293
  "variables": [],
282
- "logics": [],
283
- "bindEvents": [],
284
- "bindRoles": [],
285
- "children": []
294
+ "theme": {
295
+ "concept": "Theme",
296
+ "name": "",
297
+ "title": "默认主题样式",
298
+ "variableMap": {}
299
+ },
300
+ "componentDependencies": [],
301
+ "globalScaleEnabled": false,
302
+ "canvasWidth": 0
286
303
  }
287
304
  ],
288
- "variables": [],
289
- "theme": {
290
- "concept": "Theme",
291
- "name": "",
292
- "title": "默认主题样式",
293
- "variableMap": {}
294
- },
295
- "componentDependencies": [],
296
- "globalScaleEnabled": false,
297
- "canvasWidth": 0
305
+ "businessComponents": [],
306
+ "componentDependencies": []
298
307
  }
299
308
  ],
300
309
  "backend": {
@@ -319,4 +328,4 @@
319
328
  "onDemandInterfaceGeneration": "true",
320
329
  "serverValidationRules": "custom"
321
330
  }
322
- }
331
+ }
@@ -16,103 +16,112 @@
16
16
  "logics": [],
17
17
  "overriddenLogics": [],
18
18
  "interfaces": [],
19
- "frontends": [
19
+ "frontendTypes": [
20
20
  {
21
- "concept": "Frontend",
21
+ "concept": "FrontendType",
22
22
  "name": "pc",
23
- "title": "PC端",
24
- "type": "pc",
25
- "path": "/",
26
- "documentTitle": null,
27
- "documentIcon": null,
28
- "bindEvents": [],
29
- "views": [
23
+ "kind": "pc",
24
+ "frontends": [
30
25
  {
31
- "concept": "View",
32
- "name": "test_2",
33
- "crumb": null,
34
- "auth": false,
35
- "isIndex": false,
36
- "script": "",
37
- "elements": [
26
+ "concept": "Frontend",
27
+ "name": "pc",
28
+ "title": "PC端",
29
+ "type": "pc",
30
+ "path": "/",
31
+ "documentTitle": null,
32
+ "documentIcon": null,
33
+ "bindEvents": [],
34
+ "views": [
38
35
  {
39
- "__$Selected": true,
40
- "concept": "ViewElement",
41
- "name": "uLinearLayout1",
42
- "type": 0,
43
- "tag": "u-linear-layout",
44
- "staticClass": null,
45
- "staticStyle": "height:100%; --custom-start: auto; min-height: 200px;",
46
- "slotTarget": null,
47
- "slotScope": null,
48
- "bindAttrs": [
49
- {
50
- "concept": "BindAttribute",
51
- "name": "type",
52
- "type": "string",
53
- "value": "root",
54
- "rules": [],
55
- "playground": []
56
- },
36
+ "concept": "View",
37
+ "name": "test_2",
38
+ "crumb": null,
39
+ "auth": false,
40
+ "isIndex": false,
41
+ "script": "",
42
+ "elements": [
57
43
  {
58
- "concept": "BindAttribute",
59
- "name": "gap",
60
- "type": "string",
61
- "value": "none",
62
- "rules": [],
63
- "playground": []
44
+ "__$Selected": true,
45
+ "concept": "ViewElement",
46
+ "name": "uLinearLayout1",
47
+ "type": 0,
48
+ "tag": "u-linear-layout",
49
+ "staticClass": null,
50
+ "staticStyle": "height:100%; --custom-start: auto; min-height: 200px;",
51
+ "slotTarget": null,
52
+ "slotScope": null,
53
+ "bindAttrs": [
54
+ {
55
+ "concept": "BindAttribute",
56
+ "name": "type",
57
+ "type": "string",
58
+ "value": "root",
59
+ "rules": [],
60
+ "playground": []
61
+ },
62
+ {
63
+ "concept": "BindAttribute",
64
+ "name": "gap",
65
+ "type": "string",
66
+ "value": "none",
67
+ "rules": [],
68
+ "playground": []
69
+ }
70
+ ],
71
+ "bindEvents": [],
72
+ "bindDirectives": [
73
+ {
74
+ "concept": "BindDirective",
75
+ "name": "auth",
76
+ "rawName": "v-auth",
77
+ "value": "true",
78
+ "modifiers": null,
79
+ "playground": []
80
+ }
81
+ ],
82
+ "bindRoles": [
83
+ "DEV-AdminRole"
84
+ ],
85
+ "bindStyles": [],
86
+ "children": [
87
+ {
88
+ "concept": "ViewElement",
89
+ "name": "router_view1",
90
+ "tag": "u-router-view",
91
+ "bindAttrs": [],
92
+ "bindEvents": [],
93
+ "bindDirectives": [],
94
+ "bindRoles": [],
95
+ "bindStyles": [],
96
+ "children": []
97
+ }
98
+ ]
64
99
  }
65
100
  ],
101
+ "params": [],
102
+ "variables": [],
103
+ "logics": [],
66
104
  "bindEvents": [],
67
- "bindDirectives": [
68
- {
69
- "concept": "BindDirective",
70
- "name": "auth",
71
- "rawName": "v-auth",
72
- "value": "true",
73
- "modifiers": null,
74
- "playground": []
75
- }
76
- ],
77
105
  "bindRoles": [
78
106
  "DEV-AdminRole"
79
107
  ],
80
- "bindStyles": [],
81
- "children": [
82
- {
83
- "concept": "ViewElement",
84
- "name": "router_view1",
85
- "tag": "u-router-view",
86
- "bindAttrs": [],
87
- "bindEvents": [],
88
- "bindDirectives": [],
89
- "bindRoles": [],
90
- "bindStyles": [],
91
- "children": []
92
- }
93
- ]
108
+ "children": []
94
109
  }
95
110
  ],
96
- "params": [],
97
111
  "variables": [],
98
- "logics": [],
99
- "bindEvents": [],
100
- "bindRoles": [
101
- "DEV-AdminRole"
102
- ],
103
- "children": []
112
+ "theme": {
113
+ "concept": "Theme",
114
+ "name": "",
115
+ "title": "默认主题样式",
116
+ "variableMap": {}
117
+ },
118
+ "componentDependencies": [],
119
+ "globalScaleEnabled": false,
120
+ "canvasWidth": 0
104
121
  }
105
122
  ],
106
- "variables": [],
107
- "theme": {
108
- "concept": "Theme",
109
- "name": "",
110
- "title": "默认主题样式",
111
- "variableMap": {}
112
- },
113
- "componentDependencies": [],
114
- "globalScaleEnabled": false,
115
- "canvasWidth": 0
123
+ "businessComponents": [],
124
+ "componentDependencies": []
116
125
  }
117
126
  ],
118
127
  "backend": {
@@ -145,4 +154,4 @@
145
154
  "onDemandInterfaceGeneration": "true",
146
155
  "serverValidationRules": "custom"
147
156
  }
148
- }
157
+ }