@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.
- package/out/bak/translator.js +119 -39
- package/out/bak/translator.js.map +1 -1
- package/out/breakpoint/generator/BreakpointNode.d.ts +3 -0
- package/out/breakpoint/generator/BreakpointNode.js +9 -0
- package/out/breakpoint/generator/BreakpointNode.js.map +1 -1
- package/out/breakpoint/shared/constants.js +1 -0
- package/out/breakpoint/shared/constants.js.map +1 -1
- package/out/breakpoint/shared/utils.js +12 -6
- package/out/breakpoint/shared/utils.js.map +1 -1
- package/out/breakpoint/store/core.js +1 -1
- package/out/breakpoint/store/core.js.map +1 -1
- package/out/common/BaseNode.d.ts +1 -4
- package/out/common/BaseNode.js +23 -37
- package/out/common/BaseNode.js.map +1 -1
- package/out/concepts/AnonymousFunction__.d.ts +6 -1
- package/out/concepts/AnonymousFunction__.js +34 -16
- package/out/concepts/AnonymousFunction__.js.map +1 -1
- package/out/concepts/App__.d.ts +55 -51
- package/out/concepts/App__.js +76 -80
- package/out/concepts/App__.js.map +1 -1
- package/out/concepts/BackendVariable__.js +10 -2
- package/out/concepts/BackendVariable__.js.map +1 -1
- package/out/concepts/BindAttribute__.js +16 -6
- package/out/concepts/BindAttribute__.js.map +1 -1
- package/out/concepts/BindDirective__.d.ts +1 -0
- package/out/concepts/BindDirective__.js +19 -4
- package/out/concepts/BindDirective__.js.map +1 -1
- package/out/concepts/BindEvent__.d.ts +3 -1
- package/out/concepts/BindEvent__.js +39 -14
- package/out/concepts/BindEvent__.js.map +1 -1
- package/out/concepts/BusinessComponent__.d.ts +641 -0
- package/out/concepts/BusinessComponent__.js +1921 -0
- package/out/concepts/BusinessComponent__.js.map +1 -0
- package/out/concepts/BusinessLogic__.d.ts +38 -0
- package/out/concepts/BusinessLogic__.js +358 -0
- package/out/concepts/BusinessLogic__.js.map +1 -0
- package/out/concepts/CallEvent__.d.ts +101 -0
- package/out/concepts/CallEvent__.js +280 -0
- package/out/concepts/CallEvent__.js.map +1 -0
- package/out/concepts/CallFunction__.d.ts +0 -1
- package/out/concepts/CallFunction__.js +10 -10
- package/out/concepts/CallFunction__.js.map +1 -1
- package/out/concepts/CallLogic__.d.ts +2 -0
- package/out/concepts/CallLogic__.js +38 -27
- package/out/concepts/CallLogic__.js.map +1 -1
- package/out/concepts/Constant__.js +7 -6
- package/out/concepts/Constant__.js.map +1 -1
- package/out/concepts/Destination__.d.ts +1 -1
- package/out/concepts/Destination__.js +7 -5
- package/out/concepts/Destination__.js.map +1 -1
- package/out/concepts/End__.js +2 -1
- package/out/concepts/End__.js.map +1 -1
- package/out/concepts/Event__.d.ts +14 -0
- package/out/concepts/Event__.js +61 -0
- package/out/concepts/Event__.js.map +1 -1
- package/out/concepts/FrontendType__.d.ts +308 -0
- package/out/concepts/FrontendType__.js +605 -0
- package/out/concepts/FrontendType__.js.map +1 -0
- package/out/concepts/Frontend__.d.ts +0 -88
- package/out/concepts/Frontend__.js +1 -143
- package/out/concepts/Frontend__.js.map +1 -1
- package/out/concepts/Identifier__.d.ts +5 -0
- package/out/concepts/Identifier__.js +19 -9
- package/out/concepts/Identifier__.js.map +1 -1
- package/out/concepts/LogicItem__.d.ts +1 -1
- package/out/concepts/LogicItem__.js.map +1 -1
- package/out/concepts/Logic__.d.ts +3 -1
- package/out/concepts/Logic__.js +31 -21
- package/out/concepts/Logic__.js.map +1 -1
- package/out/concepts/Match__.d.ts +1 -1
- package/out/concepts/MemberExpression__.d.ts +1 -1
- package/out/concepts/MemberExpression__.js +3 -3
- package/out/concepts/MemberExpression__.js.map +1 -1
- package/out/concepts/NewComposite__.js.map +1 -1
- package/out/concepts/ParamWithGroup__.d.ts +39 -0
- package/out/concepts/ParamWithGroup__.js +85 -0
- package/out/concepts/ParamWithGroup__.js.map +1 -0
- package/out/concepts/Param__.js +11 -3
- package/out/concepts/Param__.js.map +1 -1
- package/out/concepts/ProcessElement__.js +9 -1
- package/out/concepts/ProcessElement__.js.map +1 -1
- package/out/concepts/Return__.js +17 -9
- package/out/concepts/Return__.js.map +1 -1
- package/out/concepts/ValidationRule__.js +2 -1
- package/out/concepts/ValidationRule__.js.map +1 -1
- package/out/concepts/Variable__.js +17 -8
- package/out/concepts/Variable__.js.map +1 -1
- package/out/concepts/ViewElement__.d.ts +17 -1
- package/out/concepts/ViewElement__.js +145 -16
- package/out/concepts/ViewElement__.js.map +1 -1
- package/out/concepts/View__.js +21 -20
- package/out/concepts/View__.js.map +1 -1
- package/out/concepts/index__.d.ts +5 -0
- package/out/concepts/index__.js +5 -0
- package/out/concepts/index__.js.map +1 -1
- package/out/concepts/utils/asserts.d.ts +258 -3
- package/out/concepts/utils/asserts.js +351 -13
- package/out/concepts/utils/asserts.js.map +1 -1
- package/out/concepts/utils/types.d.ts +20 -3
- package/out/generator/genBundleFiles.js +25 -11
- package/out/generator/genBundleFiles.js.map +1 -1
- package/out/generator/genReleaseBody.js +12 -3
- package/out/generator/genReleaseBody.js.map +1 -1
- package/out/generator/permission.js +3 -3
- package/out/generator/permission.js.map +1 -1
- package/out/natural/transformTSCode.js +1 -1
- package/out/natural/transformTSCode.js.map +1 -1
- package/out/server/extendBaseNode.js +6 -4
- package/out/server/extendBaseNode.js.map +1 -1
- package/out/server/getLogics.js +62 -27
- package/out/server/getLogics.js.map +1 -1
- package/out/server/getMemberIdentifier.js +6 -1
- package/out/server/getMemberIdentifier.js.map +1 -1
- package/out/server/getProcesses.js +3 -3
- package/out/server/getProcesses.js.map +1 -1
- package/out/server/naslServer.js +40 -19
- package/out/server/naslServer.js.map +1 -1
- package/out/server/translator.js +6 -1
- package/out/server/translator.js.map +1 -1
- package/out/service/storage/init.js +1 -2
- package/out/service/storage/init.js.map +1 -1
- package/out/templator/genCreateBlock.js +6 -6
- package/out/templator/genCreateBlock.js.map +1 -1
- package/out/templator/genCurdEditMultipleKeyBlock.js +16 -16
- package/out/templator/genCurdEditMultipleKeyBlock.js.map +1 -1
- package/out/templator/genCurdMultipleKeyBlock.js +36 -36
- package/out/templator/genCurdMultipleKeyBlock.js.map +1 -1
- package/out/templator/genGetBlock.js +6 -5
- package/out/templator/genGetBlock.js.map +1 -1
- package/out/templator/genGridViewBlock.js +12 -12
- package/out/templator/genGridViewBlock.js.map +1 -1
- package/out/templator/genListViewBlock.js +4 -4
- package/out/templator/genListViewBlock.js.map +1 -1
- package/out/templator/genSelectBlock.js +3 -3
- package/out/templator/genSelectBlock.js.map +1 -1
- package/out/templator/genTableBlock.js +10 -10
- package/out/templator/genTableBlock.js.map +1 -1
- package/out/templator/genUpdateBlock.js +10 -9
- package/out/templator/genUpdateBlock.js.map +1 -1
- package/out/templator/utils.d.ts +2 -2
- package/out/templator/utils.js.map +1 -1
- package/out/translator/utils.js +12 -1
- package/out/translator/utils.js.map +1 -1
- package/out/utils/i18nInfo.js +7 -2
- package/out/utils/i18nInfo.js.map +1 -1
- package/out/utils/index.d.ts +17 -0
- package/out/utils/index.js +184 -1
- package/out/utils/index.js.map +1 -1
- package/package.json +2 -2
- package/src/bak/translator.js +121 -43
- package/src/breakpoint/generator/BreakpointNode.ts +12 -0
- package/src/breakpoint/shared/constants.ts +1 -0
- package/src/breakpoint/shared/utils.ts +13 -8
- package/src/breakpoint/store/core.ts +1 -1
- package/src/common/BaseNode.ts +22 -41
- package/src/concepts/AnonymousFunction__.ts +36 -18
- package/src/concepts/App__.ts +129 -130
- package/src/concepts/BackendVariable__.ts +10 -2
- package/src/concepts/BindAttribute__.ts +14 -6
- package/src/concepts/BindDirective__.ts +19 -4
- package/src/concepts/BindEvent__.ts +41 -13
- package/src/concepts/BusinessComponent__.ts +2693 -0
- package/src/concepts/BusinessLogic__.ts +376 -0
- package/src/concepts/CallEvent__.ts +351 -0
- package/src/concepts/CallFunction__.ts +10 -13
- package/src/concepts/CallLogic__.ts +45 -32
- package/src/concepts/Constant__.ts +5 -7
- package/src/concepts/Destination__.ts +7 -5
- package/src/concepts/End__.ts +1 -0
- package/src/concepts/Event__.ts +70 -0
- package/src/concepts/FrontendType__.ts +919 -0
- package/src/concepts/Frontend__.ts +3 -251
- package/src/concepts/Identifier__.ts +29 -13
- package/src/concepts/LogicItem__.ts +1 -0
- package/src/concepts/Logic__.ts +36 -23
- package/src/concepts/MemberExpression__.ts +3 -3
- package/src/concepts/NewComposite__.ts +4 -6
- package/src/concepts/ParamWithGroup__.ts +101 -0
- package/src/concepts/Param__.ts +11 -3
- package/src/concepts/ProcessElement__.ts +8 -1
- package/src/concepts/Return__.ts +15 -12
- package/src/concepts/ValidationRule__.ts +6 -1
- package/src/concepts/Variable__.ts +17 -9
- package/src/concepts/ViewElement__.ts +168 -33
- package/src/concepts/View__.ts +23 -20
- package/src/concepts/index__.ts +5 -0
- package/src/concepts/utils/asserts.ts +367 -4
- package/src/concepts/utils/types.ts +28 -0
- package/src/generator/genBundleFiles.ts +33 -15
- package/src/generator/genReleaseBody.ts +14 -3
- package/src/generator/permission.ts +8 -6
- package/src/natural/transformTSCode.ts +1 -1
- package/src/server/extendBaseNode.ts +22 -20
- package/src/server/getLogics.ts +79 -41
- package/src/server/getMemberIdentifier.ts +7 -1
- package/src/server/getProcesses.ts +3 -3
- package/src/server/naslServer.ts +44 -20
- package/src/server/translator.ts +7 -1
- package/src/service/storage/init.ts +1 -2
- package/src/templator/genCreateBlock.ts +6 -6
- package/src/templator/genCurdEditMultipleKeyBlock.ts +16 -16
- package/src/templator/genCurdMultipleKeyBlock.ts +36 -36
- package/src/templator/genGetBlock.ts +6 -5
- package/src/templator/genGridViewBlock.ts +12 -12
- package/src/templator/genListViewBlock.ts +4 -4
- package/src/templator/genSelectBlock.ts +3 -3
- package/src/templator/genTableBlock.ts +10 -10
- package/src/templator/genUpdateBlock.ts +10 -9
- package/src/templator/utils.ts +2 -2
- package/src/translator/utils.ts +12 -1
- package/src/utils/i18nInfo.ts +7 -2
- package/src/utils/index.ts +211 -1
- package/test/concepts/call-function/fixtures/from-string.json +68 -59
- package/test/concepts/call-function/fixtures/to-string-global-tz.json +67 -58
- package/test/concepts/call-function/fixtures/to-string-no-tz.json +57 -48
- package/test/concepts/call-function/fixtures/to-string-user-tz.json +69 -60
- package/test/concepts/call-function/fixtures/to-string-utc-tz.json +69 -60
- package/test/concepts/call-interface/fixtures/only-interface.json +81 -72
- package/test/concepts/call-interface/fixtures/with-body-complex-argument.json +223 -214
- package/test/concepts/call-interface/fixtures/with-body-no-argument.json +85 -76
- package/test/concepts/call-interface/fixtures/with-body-simple-argument.json +100 -91
- package/test/concepts/call-interface/fixtures/with-headers-no-argument.json +88 -79
- package/test/concepts/call-interface/fixtures/with-headers.json +90 -81
- package/test/concepts/call-interface/fixtures/with-query-no-argument.json +88 -79
- package/test/concepts/call-interface/fixtures/with-query.json +90 -81
- package/test/concepts/call-logic/__snapshots__/getQuickInfoOffset.spec.ts.snap +4 -2
- package/test/concepts/call-logic/fixtures/entries-get-with-arguments.json +104 -95
- package/test/concepts/call-logic/fixtures/entries-update-with-arguments.json +209 -200
- package/test/concepts/call-logic/fixtures/global-logic-argument-no-expression.json +97 -88
- package/test/concepts/call-logic/fixtures/global-logic-argument-some-expression.json +124 -115
- package/test/concepts/call-logic/fixtures/json-deserialize.json +120 -111
- package/test/concepts/call-logic/fixtures/json-serialize-with-string.json +124 -115
- package/test/concepts/call-logic/fixtures/json-serialize.json +124 -115
- package/test/concepts/call-logic/fixtures/view-buildin-logic-with-argument.json +91 -82
- package/test/concepts/call-logic/fixtures/view-component-logic-no-argument.json +88 -79
- package/test/concepts/call-logic/fixtures/view-component-with-validation.json +144 -135
- package/test/concepts/identifier/fixtures/view-variable.json +145 -136
- package/test/concepts/view-element/__snapshots__/toVue.spec.ts.snap +1 -1
- package/test/concepts/view-element/fixtures/default-login.json +221 -212
- package/test/concepts/view-element/fixtures/default-not-found.json +183 -174
- package/test/concepts/view-element/fixtures/with-role-auth.json +91 -82
- package/test/concepts/view-element/fixtures/with-table.json +1894 -1885
- package/test/concepts/view-element/toVue.spec.ts +1 -0
- package/ts-worker/package.json +1 -1
- package/ts-worker/src/index.js +1 -0
|
@@ -16,75 +16,38 @@
|
|
|
16
16
|
"logics": [],
|
|
17
17
|
"overriddenLogics": [],
|
|
18
18
|
"interfaces": [],
|
|
19
|
-
"
|
|
19
|
+
"frontendTypes": [
|
|
20
20
|
{
|
|
21
|
-
"concept": "
|
|
21
|
+
"concept": "FrontendType",
|
|
22
22
|
"name": "pc",
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"path": "/",
|
|
26
|
-
"documentTitle": null,
|
|
27
|
-
"documentIcon": null,
|
|
28
|
-
"bindEvents": [],
|
|
29
|
-
"views": [
|
|
23
|
+
"kind": "pc",
|
|
24
|
+
"frontends": [
|
|
30
25
|
{
|
|
31
|
-
"concept": "
|
|
32
|
-
"name": "
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
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
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
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": "
|
|
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": "
|
|
64
|
+
"name": "type",
|
|
102
65
|
"type": "string",
|
|
103
|
-
"value": "
|
|
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": "
|
|
90
|
+
"name": "uLinearLayout2",
|
|
118
91
|
"type": 0,
|
|
119
|
-
"tag": "
|
|
92
|
+
"tag": "u-linear-layout",
|
|
120
93
|
"bindAttrs": [
|
|
121
94
|
{
|
|
122
95
|
"concept": "BindAttribute",
|
|
123
|
-
"name": "
|
|
96
|
+
"name": "justify",
|
|
124
97
|
"type": "string",
|
|
125
|
-
"value": "
|
|
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": "
|
|
106
|
+
"name": "direction",
|
|
134
107
|
"type": "string",
|
|
135
|
-
"value": "
|
|
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": "
|
|
122
|
+
"name": "img1",
|
|
163
123
|
"type": 0,
|
|
164
|
-
"tag": "
|
|
124
|
+
"tag": "img",
|
|
165
125
|
"bindAttrs": [
|
|
166
126
|
{
|
|
167
127
|
"concept": "BindAttribute",
|
|
168
|
-
"name": "
|
|
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": "
|
|
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": "
|
|
155
|
+
"name": "h11",
|
|
200
156
|
"type": 0,
|
|
201
|
-
"tag": "
|
|
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
|
-
"
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
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
|
-
"
|
|
289
|
-
"
|
|
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
|
-
"
|
|
19
|
+
"frontendTypes": [
|
|
20
20
|
{
|
|
21
|
-
"concept": "
|
|
21
|
+
"concept": "FrontendType",
|
|
22
22
|
"name": "pc",
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"path": "/",
|
|
26
|
-
"documentTitle": null,
|
|
27
|
-
"documentIcon": null,
|
|
28
|
-
"bindEvents": [],
|
|
29
|
-
"views": [
|
|
23
|
+
"kind": "pc",
|
|
24
|
+
"frontends": [
|
|
30
25
|
{
|
|
31
|
-
"concept": "
|
|
32
|
-
"name": "
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
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
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
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
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
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
|
-
"
|
|
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
|
-
"
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
"
|
|
102
|
-
|
|
103
|
-
|
|
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
|
-
"
|
|
107
|
-
"
|
|
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
|
+
}
|