form-imagining 0.0.5 → 0.0.7
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/README.md +13 -16
- package/dist/abap-5361cc9f.js +1314 -0
- package/dist/apex-f9413e6f.js +315 -0
- package/dist/assets/css.worker-c3850ceb.js +88 -0
- package/dist/assets/editor.worker-94ffd778.js +12 -0
- package/dist/assets/html.worker-88b237e1.js +460 -0
- package/dist/assets/json.worker-8dd963f3.js +43 -0
- package/dist/assets/ts.worker-184cdfdf.js +37022 -0
- package/dist/azcli-36f2cb5e.js +74 -0
- package/dist/bat-6b05202d.js +95 -0
- package/dist/bicep-788415e3.js +108 -0
- package/dist/cameligo-4e85ec93.js +168 -0
- package/dist/clojure-40fa5799.js +754 -0
- package/dist/coffee-f557f5e0.js +228 -0
- package/dist/cpp-ebbf7759.js +390 -0
- package/dist/csharp-1616f566.js +320 -0
- package/dist/csp-5f0bc3c4.js +57 -0
- package/dist/css-2b1aec9b.js +186 -0
- package/dist/cssMode-8c659100.js +1447 -0
- package/dist/cypher-b12b4ba8.js +262 -0
- package/dist/dart-e0d70030.js +270 -0
- package/dist/dockerfile-f9d4b2b0.js +132 -0
- package/dist/ecl-5b91fdec.js +454 -0
- package/dist/elixir-deffd5a6.js +489 -0
- package/dist/flow9-84cd00d7.js +141 -0
- package/dist/form-imagining.js +3 -16340
- package/dist/form-imagining.umd.cjs +1974 -101
- package/dist/freemarker2-0d5627bc.js +644 -0
- package/dist/fsharp-d296151f.js +210 -0
- package/dist/go-7e72ff3b.js +208 -0
- package/dist/graphql-a93568a1.js +141 -0
- package/dist/handlebars-f4513b36.js +392 -0
- package/dist/hcl-b3994d8f.js +177 -0
- package/dist/html-8bedbbe0.js +282 -0
- package/dist/htmlMode-659c9ca3.js +1457 -0
- package/dist/index-dfad4f82.js +122025 -0
- package/dist/ini-df84509a.js +68 -0
- package/dist/java-fba3d046.js +221 -0
- package/dist/javascript-b0034508.js +77 -0
- package/dist/jsonMode-92a1ff9b.js +1868 -0
- package/dist/julia-cefd45f6.js +496 -0
- package/dist/kotlin-b87b6942.js +245 -0
- package/dist/less-8a7f37bc.js +168 -0
- package/dist/lexon-cb95cd13.js +151 -0
- package/dist/liquid-ce28d1ae.js +239 -0
- package/dist/lua-6d5b3ea4.js +157 -0
- package/dist/m3-d0daf5d0.js +210 -0
- package/dist/markdown-48bb0c6f.js +202 -0
- package/dist/mdx-470c6c12.js +172 -0
- package/dist/mips-20dcf886.js +194 -0
- package/dist/msdax-e9759e23.js +377 -0
- package/dist/mysql-95f335b2.js +876 -0
- package/dist/objective-c-ad0cfb47.js +188 -0
- package/dist/pascal-eda19dc3.js +245 -0
- package/dist/pascaligo-b7e0c89b.js +158 -0
- package/dist/perl-bbe5d32a.js +599 -0
- package/dist/pgsql-7ebaee1c.js +847 -0
- package/dist/php-2526756d.js +471 -0
- package/dist/pla-9ebd6f68.js +131 -0
- package/dist/postiats-9ac05cf6.js +544 -0
- package/dist/powerquery-1cae399d.js +890 -0
- package/dist/powershell-093b5b87.js +233 -0
- package/dist/protobuf-37993cbc.js +422 -0
- package/dist/pug-c2a5db5f.js +393 -0
- package/dist/python-8f0249df.js +260 -0
- package/dist/qsharp-1450aac5.js +282 -0
- package/dist/r-a0642b90.js +245 -0
- package/dist/razor-e4b6515c.js +513 -0
- package/dist/redis-405cb63d.js +298 -0
- package/dist/redshift-830f82de.js +806 -0
- package/dist/restructuredtext-d81f5ef4.js +162 -0
- package/dist/ruby-d607b87e.js +444 -0
- package/dist/rust-86e74dbb.js +337 -0
- package/dist/sb-b7e5010d.js +110 -0
- package/dist/scala-a4d4a3c6.js +353 -0
- package/dist/scheme-81927e94.js +114 -0
- package/dist/scss-3f112fcd.js +244 -0
- package/dist/shell-d795bcaa.js +224 -0
- package/dist/solidity-5b556d3e.js +1351 -0
- package/dist/sophia-1da55998.js +190 -0
- package/dist/sparql-ac34318e.js +193 -0
- package/dist/sql-eef6393b.js +818 -0
- package/dist/st-758b1972.js +415 -0
- package/dist/style.css +1 -1
- package/dist/swift-63cb1847.js +315 -0
- package/dist/systemverilog-2538c608.js +556 -0
- package/dist/tcl-53e6282a.js +232 -0
- package/dist/tsMode-ddb992e8.js +815 -0
- package/dist/twig-80c3dc23.js +323 -0
- package/dist/typescript-7135e9ac.js +329 -0
- package/dist/vb-32089525.js +364 -0
- package/dist/wgsl-e681d5a0.js +420 -0
- package/dist/xml-1e98ce31.js +96 -0
- package/dist/yaml-ad99967d.js +185 -0
- package/package.json +11 -18
- package/dist/components/generate/GenerateForm.vue.d.ts +0 -2
- package/dist/components/index.d.ts +0 -9
- package/dist/components/model/baseModel.d.ts +0 -8
- package/dist/components/model/dataSourceModel.d.ts +0 -19
- package/dist/components/model/gridModel.d.ts +0 -55
- package/dist/components/model/inputModel.d.ts +0 -14
- package/dist/components/model/reportModel.d.ts +0 -43
- package/dist/components/model/scriptModel.d.ts +0 -6
- package/dist/components/model/sqlModel.d.ts +0 -7
- package/dist/components/model/tableModel.d.ts +0 -16
- package/dist/components/model/textModel.d.ts +0 -14
- package/dist/components/monaco/monacoEditorType.d.ts +0 -56
- package/dist/components/registerGlobComp.d.ts +0 -3
- package/dist/components/wonderform/HelloWord.vue.d.ts +0 -2
- package/dist/components/wonderform/config/index.vue.d.ts +0 -14
- package/dist/components/wonderform/config/modules/Col.vue.d.ts +0 -14
- package/dist/components/wonderform/config/modules/DataSource.vue.d.ts +0 -2
- package/dist/components/wonderform/config/modules/Form.vue.d.ts +0 -2
- package/dist/components/wonderform/config/modules/Grid.vue.d.ts +0 -14
- package/dist/components/wonderform/config/modules/Properties.vue.d.ts +0 -14
- package/dist/components/wonderform/config/modules/Table.vue.d.ts +0 -14
- package/dist/components/wonderform/config/modules/TypeScript.vue.d.ts +0 -2
- package/dist/components/wonderform/design/index.vue.d.ts +0 -6
- package/dist/components/wonderform/design/modules/FormGrid.vue.d.ts +0 -38
- package/dist/components/wonderform/design/modules/FormInput.vue.d.ts +0 -26
- package/dist/components/wonderform/design/modules/FormReport.vue.d.ts +0 -32
- package/dist/components/wonderform/design/modules/FormTable.vue.d.ts +0 -32
- package/dist/components/wonderform/dsource/index.vue.d.ts +0 -14
- package/dist/components/wonderform/dsource/modules/SqlModule.vue.d.ts +0 -40
- package/dist/components/wonderform/header/Header.vue.d.ts +0 -2
- package/dist/components/wonderform/header/modules/Code.vue.d.ts +0 -23
- package/dist/components/wonderform/header/modules/events.d.ts +0 -1
- package/dist/components/wonderform/index.vue.d.ts +0 -2
- package/dist/components/wonderform/tool/index.vue.d.ts +0 -2
- package/dist/enums/httpEnum.d.ts +0 -37
- package/dist/main.d.ts +0 -1
- package/dist/mock/dict.d.ts +0 -8
- package/dist/router/guard/index.d.ts +0 -2
- package/dist/router/guard/permissionGuard.d.ts +0 -2
- package/dist/router/index.d.ts +0 -3
- package/dist/router/routes/basicRoutes.d.ts +0 -8
- package/dist/stores/index.d.ts +0 -4
- package/dist/stores/modules/data.d.ts +0 -7177
- package/dist/stores/modules/form.d.ts +0 -2060
- package/dist/utils/form/commonUtils.d.ts +0 -8
- package/dist/utils/form/config.d.ts +0 -107
- package/dist/utils/form/generatecode.d.ts +0 -23
- package/dist/utils/form/validateUtil.d.ts +0 -13
- package/dist/utils/form/wonder1.0.1.d.ts +0 -29
- package/dist/utils/http/axios/axios.d.ts +0 -48
- package/dist/utils/http/axios/axiosModel.d.ts +0 -8
- package/dist/utils/http/axios/index.d.ts +0 -2
- package/dist/utils/utils.d.ts +0 -1
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
/*!-----------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
|
4
|
+
* Released under the MIT license
|
|
5
|
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
|
+
*-----------------------------------------------------------------------------*/
|
|
7
|
+
var e = {
|
|
8
|
+
comments: {
|
|
9
|
+
lineComment: "//",
|
|
10
|
+
blockComment: ["/*", "*/"]
|
|
11
|
+
},
|
|
12
|
+
brackets: [
|
|
13
|
+
["{", "}"],
|
|
14
|
+
["[", "]"],
|
|
15
|
+
["(", ")"]
|
|
16
|
+
],
|
|
17
|
+
autoClosingPairs: [
|
|
18
|
+
{ open: "{", close: "}" },
|
|
19
|
+
{ open: "[", close: "]" },
|
|
20
|
+
{ open: "(", close: ")" },
|
|
21
|
+
{ open: '"', close: '"' },
|
|
22
|
+
{ open: "'", close: "'" },
|
|
23
|
+
{ open: "`", close: "`" }
|
|
24
|
+
],
|
|
25
|
+
surroundingPairs: [
|
|
26
|
+
{ open: "{", close: "}" },
|
|
27
|
+
{ open: "[", close: "]" },
|
|
28
|
+
{ open: "(", close: ")" },
|
|
29
|
+
{ open: '"', close: '"' },
|
|
30
|
+
{ open: "'", close: "'" },
|
|
31
|
+
{ open: "`", close: "`" }
|
|
32
|
+
]
|
|
33
|
+
}, i = {
|
|
34
|
+
defaultToken: "",
|
|
35
|
+
tokenPostfix: ".cypher",
|
|
36
|
+
ignoreCase: !0,
|
|
37
|
+
brackets: [
|
|
38
|
+
{ open: "{", close: "}", token: "delimiter.curly" },
|
|
39
|
+
{ open: "[", close: "]", token: "delimiter.bracket" },
|
|
40
|
+
{ open: "(", close: ")", token: "delimiter.parenthesis" }
|
|
41
|
+
],
|
|
42
|
+
keywords: [
|
|
43
|
+
"ALL",
|
|
44
|
+
"AND",
|
|
45
|
+
"AS",
|
|
46
|
+
"ASC",
|
|
47
|
+
"ASCENDING",
|
|
48
|
+
"BY",
|
|
49
|
+
"CALL",
|
|
50
|
+
"CASE",
|
|
51
|
+
"CONTAINS",
|
|
52
|
+
"CREATE",
|
|
53
|
+
"DELETE",
|
|
54
|
+
"DESC",
|
|
55
|
+
"DESCENDING",
|
|
56
|
+
"DETACH",
|
|
57
|
+
"DISTINCT",
|
|
58
|
+
"ELSE",
|
|
59
|
+
"END",
|
|
60
|
+
"ENDS",
|
|
61
|
+
"EXISTS",
|
|
62
|
+
"IN",
|
|
63
|
+
"IS",
|
|
64
|
+
"LIMIT",
|
|
65
|
+
"MANDATORY",
|
|
66
|
+
"MATCH",
|
|
67
|
+
"MERGE",
|
|
68
|
+
"NOT",
|
|
69
|
+
"ON",
|
|
70
|
+
"ON",
|
|
71
|
+
"OPTIONAL",
|
|
72
|
+
"OR",
|
|
73
|
+
"ORDER",
|
|
74
|
+
"REMOVE",
|
|
75
|
+
"RETURN",
|
|
76
|
+
"SET",
|
|
77
|
+
"SKIP",
|
|
78
|
+
"STARTS",
|
|
79
|
+
"THEN",
|
|
80
|
+
"UNION",
|
|
81
|
+
"UNWIND",
|
|
82
|
+
"WHEN",
|
|
83
|
+
"WHERE",
|
|
84
|
+
"WITH",
|
|
85
|
+
"XOR",
|
|
86
|
+
"YIELD"
|
|
87
|
+
],
|
|
88
|
+
builtinLiterals: ["true", "TRUE", "false", "FALSE", "null", "NULL"],
|
|
89
|
+
builtinFunctions: [
|
|
90
|
+
"abs",
|
|
91
|
+
"acos",
|
|
92
|
+
"asin",
|
|
93
|
+
"atan",
|
|
94
|
+
"atan2",
|
|
95
|
+
"avg",
|
|
96
|
+
"ceil",
|
|
97
|
+
"coalesce",
|
|
98
|
+
"collect",
|
|
99
|
+
"cos",
|
|
100
|
+
"cot",
|
|
101
|
+
"count",
|
|
102
|
+
"degrees",
|
|
103
|
+
"e",
|
|
104
|
+
"endNode",
|
|
105
|
+
"exists",
|
|
106
|
+
"exp",
|
|
107
|
+
"floor",
|
|
108
|
+
"head",
|
|
109
|
+
"id",
|
|
110
|
+
"keys",
|
|
111
|
+
"labels",
|
|
112
|
+
"last",
|
|
113
|
+
"left",
|
|
114
|
+
"length",
|
|
115
|
+
"log",
|
|
116
|
+
"log10",
|
|
117
|
+
"lTrim",
|
|
118
|
+
"max",
|
|
119
|
+
"min",
|
|
120
|
+
"nodes",
|
|
121
|
+
"percentileCont",
|
|
122
|
+
"percentileDisc",
|
|
123
|
+
"pi",
|
|
124
|
+
"properties",
|
|
125
|
+
"radians",
|
|
126
|
+
"rand",
|
|
127
|
+
"range",
|
|
128
|
+
"relationships",
|
|
129
|
+
"replace",
|
|
130
|
+
"reverse",
|
|
131
|
+
"right",
|
|
132
|
+
"round",
|
|
133
|
+
"rTrim",
|
|
134
|
+
"sign",
|
|
135
|
+
"sin",
|
|
136
|
+
"size",
|
|
137
|
+
"split",
|
|
138
|
+
"sqrt",
|
|
139
|
+
"startNode",
|
|
140
|
+
"stDev",
|
|
141
|
+
"stDevP",
|
|
142
|
+
"substring",
|
|
143
|
+
"sum",
|
|
144
|
+
"tail",
|
|
145
|
+
"tan",
|
|
146
|
+
"timestamp",
|
|
147
|
+
"toBoolean",
|
|
148
|
+
"toFloat",
|
|
149
|
+
"toInteger",
|
|
150
|
+
"toLower",
|
|
151
|
+
"toString",
|
|
152
|
+
"toUpper",
|
|
153
|
+
"trim",
|
|
154
|
+
"type"
|
|
155
|
+
],
|
|
156
|
+
operators: [
|
|
157
|
+
"+",
|
|
158
|
+
"-",
|
|
159
|
+
"*",
|
|
160
|
+
"/",
|
|
161
|
+
"%",
|
|
162
|
+
"^",
|
|
163
|
+
"=",
|
|
164
|
+
"<>",
|
|
165
|
+
"<",
|
|
166
|
+
">",
|
|
167
|
+
"<=",
|
|
168
|
+
">=",
|
|
169
|
+
"->",
|
|
170
|
+
"<-",
|
|
171
|
+
"-->",
|
|
172
|
+
"<--"
|
|
173
|
+
],
|
|
174
|
+
escapes: /\\(?:[tbnrf\\"'`]|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
|
175
|
+
digits: /\d+/,
|
|
176
|
+
octaldigits: /[0-7]+/,
|
|
177
|
+
hexdigits: /[0-9a-fA-F]+/,
|
|
178
|
+
tokenizer: {
|
|
179
|
+
root: [[/[{}[\]()]/, "@brackets"], { include: "common" }],
|
|
180
|
+
common: [
|
|
181
|
+
{ include: "@whitespace" },
|
|
182
|
+
{ include: "@numbers" },
|
|
183
|
+
{ include: "@strings" },
|
|
184
|
+
[/:[a-zA-Z_][\w]*/, "type.identifier"],
|
|
185
|
+
[
|
|
186
|
+
/[a-zA-Z_][\w]*(?=\()/,
|
|
187
|
+
{
|
|
188
|
+
cases: {
|
|
189
|
+
"@builtinFunctions": "predefined.function"
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
],
|
|
193
|
+
[
|
|
194
|
+
/[a-zA-Z_$][\w$]*/,
|
|
195
|
+
{
|
|
196
|
+
cases: {
|
|
197
|
+
"@keywords": "keyword",
|
|
198
|
+
"@builtinLiterals": "predefined.literal",
|
|
199
|
+
"@default": "identifier"
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
],
|
|
203
|
+
[/`/, "identifier.escape", "@identifierBacktick"],
|
|
204
|
+
[/[;,.:|]/, "delimiter"],
|
|
205
|
+
[
|
|
206
|
+
/[<>=%+\-*/^]+/,
|
|
207
|
+
{
|
|
208
|
+
cases: {
|
|
209
|
+
"@operators": "delimiter",
|
|
210
|
+
"@default": ""
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
]
|
|
214
|
+
],
|
|
215
|
+
numbers: [
|
|
216
|
+
[/-?(@digits)[eE](-?(@digits))?/, "number.float"],
|
|
217
|
+
[/-?(@digits)?\.(@digits)([eE]-?(@digits))?/, "number.float"],
|
|
218
|
+
[/-?0x(@hexdigits)/, "number.hex"],
|
|
219
|
+
[/-?0(@octaldigits)/, "number.octal"],
|
|
220
|
+
[/-?(@digits)/, "number"]
|
|
221
|
+
],
|
|
222
|
+
strings: [
|
|
223
|
+
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
|
224
|
+
[/'([^'\\]|\\.)*$/, "string.invalid"],
|
|
225
|
+
[/"/, "string", "@stringDouble"],
|
|
226
|
+
[/'/, "string", "@stringSingle"]
|
|
227
|
+
],
|
|
228
|
+
whitespace: [
|
|
229
|
+
[/[ \t\r\n]+/, "white"],
|
|
230
|
+
[/\/\*/, "comment", "@comment"],
|
|
231
|
+
[/\/\/.*$/, "comment"]
|
|
232
|
+
],
|
|
233
|
+
comment: [
|
|
234
|
+
[/\/\/.*/, "comment"],
|
|
235
|
+
[/[^/*]+/, "comment"],
|
|
236
|
+
[/\*\//, "comment", "@pop"],
|
|
237
|
+
[/[/*]/, "comment"]
|
|
238
|
+
],
|
|
239
|
+
stringDouble: [
|
|
240
|
+
[/[^\\"]+/, "string"],
|
|
241
|
+
[/@escapes/, "string"],
|
|
242
|
+
[/\\./, "string.invalid"],
|
|
243
|
+
[/"/, "string", "@pop"]
|
|
244
|
+
],
|
|
245
|
+
stringSingle: [
|
|
246
|
+
[/[^\\']+/, "string"],
|
|
247
|
+
[/@escapes/, "string"],
|
|
248
|
+
[/\\./, "string.invalid"],
|
|
249
|
+
[/'/, "string", "@pop"]
|
|
250
|
+
],
|
|
251
|
+
identifierBacktick: [
|
|
252
|
+
[/[^\\`]+/, "identifier.escape"],
|
|
253
|
+
[/@escapes/, "identifier.escape"],
|
|
254
|
+
[/\\./, "identifier.escape.invalid"],
|
|
255
|
+
[/`/, "identifier.escape", "@pop"]
|
|
256
|
+
]
|
|
257
|
+
}
|
|
258
|
+
};
|
|
259
|
+
export {
|
|
260
|
+
e as conf,
|
|
261
|
+
i as language
|
|
262
|
+
};
|
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
/*!-----------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
|
4
|
+
* Released under the MIT license
|
|
5
|
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
|
+
*-----------------------------------------------------------------------------*/
|
|
7
|
+
var e = {
|
|
8
|
+
comments: {
|
|
9
|
+
lineComment: "//",
|
|
10
|
+
blockComment: ["/*", "*/"]
|
|
11
|
+
},
|
|
12
|
+
brackets: [
|
|
13
|
+
["{", "}"],
|
|
14
|
+
["[", "]"],
|
|
15
|
+
["(", ")"]
|
|
16
|
+
],
|
|
17
|
+
autoClosingPairs: [
|
|
18
|
+
{ open: "{", close: "}" },
|
|
19
|
+
{ open: "[", close: "]" },
|
|
20
|
+
{ open: "(", close: ")" },
|
|
21
|
+
{ open: "'", close: "'", notIn: ["string", "comment"] },
|
|
22
|
+
{ open: '"', close: '"', notIn: ["string"] },
|
|
23
|
+
{ open: "`", close: "`", notIn: ["string", "comment"] },
|
|
24
|
+
{ open: "/**", close: " */", notIn: ["string"] }
|
|
25
|
+
],
|
|
26
|
+
surroundingPairs: [
|
|
27
|
+
{ open: "{", close: "}" },
|
|
28
|
+
{ open: "[", close: "]" },
|
|
29
|
+
{ open: "(", close: ")" },
|
|
30
|
+
{ open: "<", close: ">" },
|
|
31
|
+
{ open: "'", close: "'" },
|
|
32
|
+
{ open: "(", close: ")" },
|
|
33
|
+
{ open: '"', close: '"' },
|
|
34
|
+
{ open: "`", close: "`" }
|
|
35
|
+
],
|
|
36
|
+
folding: {
|
|
37
|
+
markers: {
|
|
38
|
+
start: /^\s*\s*#?region\b/,
|
|
39
|
+
end: /^\s*\s*#?endregion\b/
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}, n = {
|
|
43
|
+
defaultToken: "invalid",
|
|
44
|
+
tokenPostfix: ".dart",
|
|
45
|
+
keywords: [
|
|
46
|
+
"abstract",
|
|
47
|
+
"dynamic",
|
|
48
|
+
"implements",
|
|
49
|
+
"show",
|
|
50
|
+
"as",
|
|
51
|
+
"else",
|
|
52
|
+
"import",
|
|
53
|
+
"static",
|
|
54
|
+
"assert",
|
|
55
|
+
"enum",
|
|
56
|
+
"in",
|
|
57
|
+
"super",
|
|
58
|
+
"async",
|
|
59
|
+
"export",
|
|
60
|
+
"interface",
|
|
61
|
+
"switch",
|
|
62
|
+
"await",
|
|
63
|
+
"extends",
|
|
64
|
+
"is",
|
|
65
|
+
"sync",
|
|
66
|
+
"break",
|
|
67
|
+
"external",
|
|
68
|
+
"library",
|
|
69
|
+
"this",
|
|
70
|
+
"case",
|
|
71
|
+
"factory",
|
|
72
|
+
"mixin",
|
|
73
|
+
"throw",
|
|
74
|
+
"catch",
|
|
75
|
+
"false",
|
|
76
|
+
"new",
|
|
77
|
+
"true",
|
|
78
|
+
"class",
|
|
79
|
+
"final",
|
|
80
|
+
"null",
|
|
81
|
+
"try",
|
|
82
|
+
"const",
|
|
83
|
+
"finally",
|
|
84
|
+
"on",
|
|
85
|
+
"typedef",
|
|
86
|
+
"continue",
|
|
87
|
+
"for",
|
|
88
|
+
"operator",
|
|
89
|
+
"var",
|
|
90
|
+
"covariant",
|
|
91
|
+
"Function",
|
|
92
|
+
"part",
|
|
93
|
+
"void",
|
|
94
|
+
"default",
|
|
95
|
+
"get",
|
|
96
|
+
"rethrow",
|
|
97
|
+
"while",
|
|
98
|
+
"deferred",
|
|
99
|
+
"hide",
|
|
100
|
+
"return",
|
|
101
|
+
"with",
|
|
102
|
+
"do",
|
|
103
|
+
"if",
|
|
104
|
+
"set",
|
|
105
|
+
"yield"
|
|
106
|
+
],
|
|
107
|
+
typeKeywords: ["int", "double", "String", "bool"],
|
|
108
|
+
operators: [
|
|
109
|
+
"+",
|
|
110
|
+
"-",
|
|
111
|
+
"*",
|
|
112
|
+
"/",
|
|
113
|
+
"~/",
|
|
114
|
+
"%",
|
|
115
|
+
"++",
|
|
116
|
+
"--",
|
|
117
|
+
"==",
|
|
118
|
+
"!=",
|
|
119
|
+
">",
|
|
120
|
+
"<",
|
|
121
|
+
">=",
|
|
122
|
+
"<=",
|
|
123
|
+
"=",
|
|
124
|
+
"-=",
|
|
125
|
+
"/=",
|
|
126
|
+
"%=",
|
|
127
|
+
">>=",
|
|
128
|
+
"^=",
|
|
129
|
+
"+=",
|
|
130
|
+
"*=",
|
|
131
|
+
"~/=",
|
|
132
|
+
"<<=",
|
|
133
|
+
"&=",
|
|
134
|
+
"!=",
|
|
135
|
+
"||",
|
|
136
|
+
"&&",
|
|
137
|
+
"&",
|
|
138
|
+
"|",
|
|
139
|
+
"^",
|
|
140
|
+
"~",
|
|
141
|
+
"<<",
|
|
142
|
+
">>",
|
|
143
|
+
"!",
|
|
144
|
+
">>>",
|
|
145
|
+
"??",
|
|
146
|
+
"?",
|
|
147
|
+
":",
|
|
148
|
+
"|="
|
|
149
|
+
],
|
|
150
|
+
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
|
151
|
+
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
|
152
|
+
digits: /\d+(_+\d+)*/,
|
|
153
|
+
octaldigits: /[0-7]+(_+[0-7]+)*/,
|
|
154
|
+
binarydigits: /[0-1]+(_+[0-1]+)*/,
|
|
155
|
+
hexdigits: /[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,
|
|
156
|
+
regexpctl: /[(){}\[\]\$\^|\-*+?\.]/,
|
|
157
|
+
regexpesc: /\\(?:[bBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})/,
|
|
158
|
+
tokenizer: {
|
|
159
|
+
root: [[/[{}]/, "delimiter.bracket"], { include: "common" }],
|
|
160
|
+
common: [
|
|
161
|
+
[
|
|
162
|
+
/[a-z_$][\w$]*/,
|
|
163
|
+
{
|
|
164
|
+
cases: {
|
|
165
|
+
"@typeKeywords": "type.identifier",
|
|
166
|
+
"@keywords": "keyword",
|
|
167
|
+
"@default": "identifier"
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
],
|
|
171
|
+
[/[A-Z_$][\w\$]*/, "type.identifier"],
|
|
172
|
+
{ include: "@whitespace" },
|
|
173
|
+
[
|
|
174
|
+
/\/(?=([^\\\/]|\\.)+\/([gimsuy]*)(\s*)(\.|;|,|\)|\]|\}|$))/,
|
|
175
|
+
{ token: "regexp", bracket: "@open", next: "@regexp" }
|
|
176
|
+
],
|
|
177
|
+
[/@[a-zA-Z]+/, "annotation"],
|
|
178
|
+
[/[()\[\]]/, "@brackets"],
|
|
179
|
+
[/[<>](?!@symbols)/, "@brackets"],
|
|
180
|
+
[/!(?=([^=]|$))/, "delimiter"],
|
|
181
|
+
[
|
|
182
|
+
/@symbols/,
|
|
183
|
+
{
|
|
184
|
+
cases: {
|
|
185
|
+
"@operators": "delimiter",
|
|
186
|
+
"@default": ""
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
],
|
|
190
|
+
[/(@digits)[eE]([\-+]?(@digits))?/, "number.float"],
|
|
191
|
+
[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/, "number.float"],
|
|
192
|
+
[/0[xX](@hexdigits)n?/, "number.hex"],
|
|
193
|
+
[/0[oO]?(@octaldigits)n?/, "number.octal"],
|
|
194
|
+
[/0[bB](@binarydigits)n?/, "number.binary"],
|
|
195
|
+
[/(@digits)n?/, "number"],
|
|
196
|
+
[/[;,.]/, "delimiter"],
|
|
197
|
+
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
|
198
|
+
[/'([^'\\]|\\.)*$/, "string.invalid"],
|
|
199
|
+
[/"/, "string", "@string_double"],
|
|
200
|
+
[/'/, "string", "@string_single"]
|
|
201
|
+
],
|
|
202
|
+
whitespace: [
|
|
203
|
+
[/[ \t\r\n]+/, ""],
|
|
204
|
+
[/\/\*\*(?!\/)/, "comment.doc", "@jsdoc"],
|
|
205
|
+
[/\/\*/, "comment", "@comment"],
|
|
206
|
+
[/\/\/\/.*$/, "comment.doc"],
|
|
207
|
+
[/\/\/.*$/, "comment"]
|
|
208
|
+
],
|
|
209
|
+
comment: [
|
|
210
|
+
[/[^\/*]+/, "comment"],
|
|
211
|
+
[/\*\//, "comment", "@pop"],
|
|
212
|
+
[/[\/*]/, "comment"]
|
|
213
|
+
],
|
|
214
|
+
jsdoc: [
|
|
215
|
+
[/[^\/*]+/, "comment.doc"],
|
|
216
|
+
[/\*\//, "comment.doc", "@pop"],
|
|
217
|
+
[/[\/*]/, "comment.doc"]
|
|
218
|
+
],
|
|
219
|
+
regexp: [
|
|
220
|
+
[
|
|
221
|
+
/(\{)(\d+(?:,\d*)?)(\})/,
|
|
222
|
+
["regexp.escape.control", "regexp.escape.control", "regexp.escape.control"]
|
|
223
|
+
],
|
|
224
|
+
[
|
|
225
|
+
/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,
|
|
226
|
+
["regexp.escape.control", { token: "regexp.escape.control", next: "@regexrange" }]
|
|
227
|
+
],
|
|
228
|
+
[/(\()(\?:|\?=|\?!)/, ["regexp.escape.control", "regexp.escape.control"]],
|
|
229
|
+
[/[()]/, "regexp.escape.control"],
|
|
230
|
+
[/@regexpctl/, "regexp.escape.control"],
|
|
231
|
+
[/[^\\\/]/, "regexp"],
|
|
232
|
+
[/@regexpesc/, "regexp.escape"],
|
|
233
|
+
[/\\\./, "regexp.invalid"],
|
|
234
|
+
[/(\/)([gimsuy]*)/, [{ token: "regexp", bracket: "@close", next: "@pop" }, "keyword.other"]]
|
|
235
|
+
],
|
|
236
|
+
regexrange: [
|
|
237
|
+
[/-/, "regexp.escape.control"],
|
|
238
|
+
[/\^/, "regexp.invalid"],
|
|
239
|
+
[/@regexpesc/, "regexp.escape"],
|
|
240
|
+
[/[^\]]/, "regexp"],
|
|
241
|
+
[
|
|
242
|
+
/\]/,
|
|
243
|
+
{
|
|
244
|
+
token: "regexp.escape.control",
|
|
245
|
+
next: "@pop",
|
|
246
|
+
bracket: "@close"
|
|
247
|
+
}
|
|
248
|
+
]
|
|
249
|
+
],
|
|
250
|
+
string_double: [
|
|
251
|
+
[/[^\\"\$]+/, "string"],
|
|
252
|
+
[/[^\\"]+/, "string"],
|
|
253
|
+
[/@escapes/, "string.escape"],
|
|
254
|
+
[/\\./, "string.escape.invalid"],
|
|
255
|
+
[/"/, "string", "@pop"],
|
|
256
|
+
[/\$\w+/, "identifier"]
|
|
257
|
+
],
|
|
258
|
+
string_single: [
|
|
259
|
+
[/[^\\'\$]+/, "string"],
|
|
260
|
+
[/@escapes/, "string.escape"],
|
|
261
|
+
[/\\./, "string.escape.invalid"],
|
|
262
|
+
[/'/, "string", "@pop"],
|
|
263
|
+
[/\$\w+/, "identifier"]
|
|
264
|
+
]
|
|
265
|
+
}
|
|
266
|
+
};
|
|
267
|
+
export {
|
|
268
|
+
e as conf,
|
|
269
|
+
n as language
|
|
270
|
+
};
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
/*!-----------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
|
4
|
+
* Released under the MIT license
|
|
5
|
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
|
+
*-----------------------------------------------------------------------------*/
|
|
7
|
+
var e = {
|
|
8
|
+
brackets: [
|
|
9
|
+
["{", "}"],
|
|
10
|
+
["[", "]"],
|
|
11
|
+
["(", ")"]
|
|
12
|
+
],
|
|
13
|
+
autoClosingPairs: [
|
|
14
|
+
{ open: "{", close: "}" },
|
|
15
|
+
{ open: "[", close: "]" },
|
|
16
|
+
{ open: "(", close: ")" },
|
|
17
|
+
{ open: '"', close: '"' },
|
|
18
|
+
{ open: "'", close: "'" }
|
|
19
|
+
],
|
|
20
|
+
surroundingPairs: [
|
|
21
|
+
{ open: "{", close: "}" },
|
|
22
|
+
{ open: "[", close: "]" },
|
|
23
|
+
{ open: "(", close: ")" },
|
|
24
|
+
{ open: '"', close: '"' },
|
|
25
|
+
{ open: "'", close: "'" }
|
|
26
|
+
]
|
|
27
|
+
}, o = {
|
|
28
|
+
defaultToken: "",
|
|
29
|
+
tokenPostfix: ".dockerfile",
|
|
30
|
+
variable: /\${?[\w]+}?/,
|
|
31
|
+
tokenizer: {
|
|
32
|
+
root: [
|
|
33
|
+
{ include: "@whitespace" },
|
|
34
|
+
{ include: "@comment" },
|
|
35
|
+
[/(ONBUILD)(\s+)/, ["keyword", ""]],
|
|
36
|
+
[/(ENV)(\s+)([\w]+)/, ["keyword", "", { token: "variable", next: "@arguments" }]],
|
|
37
|
+
[
|
|
38
|
+
/(FROM|MAINTAINER|RUN|EXPOSE|ENV|ADD|ARG|VOLUME|LABEL|USER|WORKDIR|COPY|CMD|STOPSIGNAL|SHELL|HEALTHCHECK|ENTRYPOINT)/,
|
|
39
|
+
{ token: "keyword", next: "@arguments" }
|
|
40
|
+
]
|
|
41
|
+
],
|
|
42
|
+
arguments: [
|
|
43
|
+
{ include: "@whitespace" },
|
|
44
|
+
{ include: "@strings" },
|
|
45
|
+
[
|
|
46
|
+
/(@variable)/,
|
|
47
|
+
{
|
|
48
|
+
cases: {
|
|
49
|
+
"@eos": { token: "variable", next: "@popall" },
|
|
50
|
+
"@default": "variable"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
[
|
|
55
|
+
/\\/,
|
|
56
|
+
{
|
|
57
|
+
cases: {
|
|
58
|
+
"@eos": "",
|
|
59
|
+
"@default": ""
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
],
|
|
63
|
+
[
|
|
64
|
+
/./,
|
|
65
|
+
{
|
|
66
|
+
cases: {
|
|
67
|
+
"@eos": { token: "", next: "@popall" },
|
|
68
|
+
"@default": ""
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
],
|
|
73
|
+
whitespace: [
|
|
74
|
+
[
|
|
75
|
+
/\s+/,
|
|
76
|
+
{
|
|
77
|
+
cases: {
|
|
78
|
+
"@eos": { token: "", next: "@popall" },
|
|
79
|
+
"@default": ""
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
]
|
|
83
|
+
],
|
|
84
|
+
comment: [[/(^#.*$)/, "comment", "@popall"]],
|
|
85
|
+
strings: [
|
|
86
|
+
[/\\'$/, "", "@popall"],
|
|
87
|
+
[/\\'/, ""],
|
|
88
|
+
[/'$/, "string", "@popall"],
|
|
89
|
+
[/'/, "string", "@stringBody"],
|
|
90
|
+
[/"$/, "string", "@popall"],
|
|
91
|
+
[/"/, "string", "@dblStringBody"]
|
|
92
|
+
],
|
|
93
|
+
stringBody: [
|
|
94
|
+
[
|
|
95
|
+
/[^\\\$']/,
|
|
96
|
+
{
|
|
97
|
+
cases: {
|
|
98
|
+
"@eos": { token: "string", next: "@popall" },
|
|
99
|
+
"@default": "string"
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
],
|
|
103
|
+
[/\\./, "string.escape"],
|
|
104
|
+
[/'$/, "string", "@popall"],
|
|
105
|
+
[/'/, "string", "@pop"],
|
|
106
|
+
[/(@variable)/, "variable"],
|
|
107
|
+
[/\\$/, "string"],
|
|
108
|
+
[/$/, "string", "@popall"]
|
|
109
|
+
],
|
|
110
|
+
dblStringBody: [
|
|
111
|
+
[
|
|
112
|
+
/[^\\\$"]/,
|
|
113
|
+
{
|
|
114
|
+
cases: {
|
|
115
|
+
"@eos": { token: "string", next: "@popall" },
|
|
116
|
+
"@default": "string"
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
],
|
|
120
|
+
[/\\./, "string.escape"],
|
|
121
|
+
[/"$/, "string", "@popall"],
|
|
122
|
+
[/"/, "string", "@pop"],
|
|
123
|
+
[/(@variable)/, "variable"],
|
|
124
|
+
[/\\$/, "string"],
|
|
125
|
+
[/$/, "string", "@popall"]
|
|
126
|
+
]
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
export {
|
|
130
|
+
e as conf,
|
|
131
|
+
o as language
|
|
132
|
+
};
|