online-compiler-widget 0.0.4 → 1.0.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/dist/abap-CrvW7_qN.js +1398 -0
- package/dist/apex-BAOI8p1v.js +327 -0
- package/dist/assets/css.worker-Cb0JI69t.js +93 -0
- package/dist/assets/html.worker-BNFZMwEc.js +470 -0
- package/dist/assets/json.worker-BCybXpia.js +58 -0
- package/dist/assets/ts.worker-DAVh1bw1.js +67731 -0
- package/dist/azcli-BlCk_UqW.js +68 -0
- package/dist/bat-DPoEelVx.js +100 -0
- package/dist/bicep-Cp1F394l.js +102 -0
- package/dist/cameligo-CWqtSlQs.js +174 -0
- package/dist/clojure-CKBp32Gf.js +761 -0
- package/dist/coffee-CDo6vc-J.js +232 -0
- package/dist/cpp-DokufPgf.js +389 -0
- package/dist/csharp-BQi3szM0.js +326 -0
- package/dist/csp-BSGtCCZ-.js +53 -0
- package/dist/css-DEPFDJfb.js +187 -0
- package/dist/cssMode-nHrB9Mnr.js +141 -0
- package/dist/cypher-DAb1vOxS.js +263 -0
- package/dist/dart-C8p4jewR.js +281 -0
- package/dist/dockerfile-DP0iLFPN.js +130 -0
- package/dist/ecl-BDQHA6fi.js +456 -0
- package/dist/elixir-D4II6kDM.js +569 -0
- package/dist/flow9-StcnL-VB.js +142 -0
- package/dist/freemarker2-BoiXdkJM.js +982 -0
- package/dist/fsharp-DdUVp3EN.js +217 -0
- package/dist/go-D1-I258M.js +218 -0
- package/dist/graphql-DWkL3f8U.js +151 -0
- package/dist/handlebars-C7PJzkmo.js +412 -0
- package/dist/hcl-D_0MNifv.js +183 -0
- package/dist/html-D_xe_tUa.js +301 -0
- package/dist/htmlMode-Dk_luXu_.js +152 -0
- package/dist/index-Ds0EJmOd.js +129200 -0
- package/dist/index.js +14 -0
- package/dist/ini-C4I2-MT7.js +71 -0
- package/dist/java-OBvaP_SS.js +232 -0
- package/dist/javascript-CUK67ITD.js +70 -0
- package/dist/jsonMode-BIAYTpVF.js +569 -0
- package/dist/julia-BmDH8Kkf.js +511 -0
- package/dist/kotlin-Dhu5AGOD.js +252 -0
- package/dist/less-CzmjXREq.js +162 -0
- package/dist/lexon-CV2c4pN9.js +157 -0
- package/dist/liquid-Cgsk8EmK.js +233 -0
- package/dist/lspLanguageFeatures-HqO1l9Me.js +1458 -0
- package/dist/lua-CFY5U8qF.js +162 -0
- package/dist/m3-BL_AnZVh.js +210 -0
- package/dist/markdown-CWKQPXCv.js +229 -0
- package/dist/mdx-QboWmT4M.js +158 -0
- package/dist/mips-ButYmJ5E.js +198 -0
- package/dist/msdax-C3cnXqDh.js +375 -0
- package/dist/mysql-YlSHaf6G.js +878 -0
- package/dist/objective-c-Dwnlproe.js +183 -0
- package/dist/pascal-UzGbSWEN.js +251 -0
- package/dist/pascaligo-CslTgu68.js +164 -0
- package/dist/perl-oj6r_mgw.js +626 -0
- package/dist/pgsql-DSBO0Mev.js +851 -0
- package/dist/php-YzCD--7j.js +500 -0
- package/dist/pla-CmylB8vQ.js +137 -0
- package/dist/postiats-CLFW5gNY.js +907 -0
- package/dist/powerquery-CmOWUvlh.js +890 -0
- package/dist/powershell-fHQcmBLK.js +239 -0
- package/dist/protobuf-p5BArb-9.js +420 -0
- package/dist/pug-gVdUDvqf.js +402 -0
- package/dist/python-kIZaMFF7.js +294 -0
- package/dist/qsharp-DnrWSUlt.js +301 -0
- package/dist/r-Cv309K2z.js +243 -0
- package/dist/razor-ms2cCMGp.js +543 -0
- package/dist/redis-DTcS4wMj.js +302 -0
- package/dist/redshift-hLxZVESM.js +809 -0
- package/dist/restructuredtext-C898lK4f.js +174 -0
- package/dist/ruby-CgKtnJIQ.js +511 -0
- package/dist/rust-bj8oxVnh.js +343 -0
- package/dist/sb-DWynz26l.js +115 -0
- package/dist/scala-BL5z1UEd.js +370 -0
- package/dist/scheme-DUJsH6VU.js +108 -0
- package/dist/scss-CxjmhvaL.js +262 -0
- package/dist/shell-D14Zs1dF.js +221 -0
- package/dist/solidity-WyRm-BGK.js +1367 -0
- package/dist/sophia-CKk-_Oa5.js +199 -0
- package/dist/sparql-DHtmINMZ.js +201 -0
- package/dist/sql-Dqaj5JHC.js +853 -0
- package/dist/st-Bj2IIaop.js +416 -0
- package/dist/style.css +1 -0
- package/dist/swift-DwxP72iM.js +312 -0
- package/dist/systemverilog-D7wJfuql.js +576 -0
- package/dist/tcl-0ApMt-eC.js +232 -0
- package/dist/tsMode-BiXWAJYS.js +946 -0
- package/dist/twig-DxwbdmvQ.js +392 -0
- package/dist/typescript-ByMmjZ38.js +336 -0
- package/dist/typespec-Fd-JwSuS.js +117 -0
- package/dist/vb-CxuyYE1I.js +372 -0
- package/dist/wgsl-DoEGc31J.js +439 -0
- package/dist/xml-iOXTZgNN.js +88 -0
- package/dist/yaml-RRlyy-QW.js +199 -0
- package/package.json +41 -36
- package/FileStorage/obj/FileStorage.csproj.EntityFrameworkCore.targets +0 -28
- package/README.md +0 -1
- package/eslint.config.js +0 -26
- package/index.html +0 -13
- package/index.tsx +0 -3
- package/openapitools.json +0 -7
- package/pnpm-workspace.yaml +0 -2
- package/public/vite.svg +0 -1
- package/src/App.css +0 -49
- package/src/App.tsx +0 -84
- package/src/api/.openapi-generator/FILES +0 -25
- package/src/api/.openapi-generator/VERSION +0 -1
- package/src/api/.openapi-generator-ignore +0 -23
- package/src/api/api.ts +0 -1312
- package/src/api/base.ts +0 -62
- package/src/api/common.ts +0 -113
- package/src/api/configuration.ts +0 -121
- package/src/api/docs/CompilationError.md +0 -26
- package/src/api/docs/CompileRequest.md +0 -22
- package/src/api/docs/CompileResult.md +0 -28
- package/src/api/docs/CompilerApi.md +0 -263
- package/src/api/docs/CreateFileDto.md +0 -22
- package/src/api/docs/CreateProjectRequest.md +0 -20
- package/src/api/docs/FileApi.md +0 -274
- package/src/api/docs/ProcessStatus.md +0 -28
- package/src/api/docs/ProjectApi.md +0 -362
- package/src/api/docs/ProjectInfo.md +0 -24
- package/src/api/docs/ProjectStats.md +0 -28
- package/src/api/docs/RenameFileDto.md +0 -20
- package/src/api/docs/RenameProjectRequest.md +0 -20
- package/src/api/docs/RunRequest.md +0 -24
- package/src/api/docs/RunResult.md +0 -30
- package/src/api/docs/RunningProjectInfo.md +0 -26
- package/src/api/docs/UpdateFileDto.md +0 -20
- package/src/api/git_push.sh +0 -57
- package/src/api/index.ts +0 -18
- package/src/assets/Badge.svg +0 -17
- package/src/assets/closeIcon.svg +0 -20
- package/src/assets/documentIcon.svg +0 -11
- package/src/assets/history.svg +0 -11
- package/src/assets/output.svg +0 -12
- package/src/assets/plus.svg +0 -20
- package/src/assets/react.svg +0 -1
- package/src/assets/save-icon.svg +0 -11
- package/src/assets/shield.svg +0 -10
- package/src/assets/start.svg +0 -11
- package/src/assets/stop.svg +0 -11
- package/src/components/CompilerWidget.module.scss +0 -169
- package/src/components/CompilerWidget.tsx +0 -331
- package/src/components/FileExplorer.module.scss +0 -372
- package/src/components/FileExplorer.tsx +0 -285
- package/src/components/MonacoEditorWrapper.module.scss +0 -29
- package/src/components/MonacoEditorWrapper.tsx +0 -74
- package/src/components/OutputPanel.module.scss +0 -123
- package/src/components/OutputPanel.tsx +0 -53
- package/src/components/RunContainer.module.scss +0 -150
- package/src/components/RunContainer.tsx +0 -34
- package/src/hooks/useCompiler.ts +0 -228
- package/src/hooks/useInitialNodes.ts +0 -0
- package/src/index.css +0 -78
- package/src/main.tsx +0 -8
- package/src/types/EditorDocument.ts +0 -8
- package/swagger.json +0 -1020
- package/tsconfig.app.json +0 -29
- package/tsconfig.json +0 -7
- package/tsconfig.node.json +0 -26
- package/vite.config.ts +0 -8
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
import { l as e } from "./index-Ds0EJmOd.js";
|
|
2
|
+
const t = [
|
|
3
|
+
"area",
|
|
4
|
+
"base",
|
|
5
|
+
"br",
|
|
6
|
+
"col",
|
|
7
|
+
"embed",
|
|
8
|
+
"hr",
|
|
9
|
+
"img",
|
|
10
|
+
"input",
|
|
11
|
+
"keygen",
|
|
12
|
+
"link",
|
|
13
|
+
"menuitem",
|
|
14
|
+
"meta",
|
|
15
|
+
"param",
|
|
16
|
+
"source",
|
|
17
|
+
"track",
|
|
18
|
+
"wbr"
|
|
19
|
+
], n = {
|
|
20
|
+
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,
|
|
21
|
+
brackets: [
|
|
22
|
+
["<!--", "-->"],
|
|
23
|
+
["<", ">"],
|
|
24
|
+
["{{", "}}"],
|
|
25
|
+
["{%", "%}"],
|
|
26
|
+
["{", "}"],
|
|
27
|
+
["(", ")"]
|
|
28
|
+
],
|
|
29
|
+
autoClosingPairs: [
|
|
30
|
+
{ open: "{", close: "}" },
|
|
31
|
+
{ open: "%", close: "%" },
|
|
32
|
+
{ open: "[", close: "]" },
|
|
33
|
+
{ open: "(", close: ")" },
|
|
34
|
+
{ open: '"', close: '"' },
|
|
35
|
+
{ open: "'", close: "'" }
|
|
36
|
+
],
|
|
37
|
+
surroundingPairs: [
|
|
38
|
+
{ open: "<", close: ">" },
|
|
39
|
+
{ open: '"', close: '"' },
|
|
40
|
+
{ open: "'", close: "'" }
|
|
41
|
+
],
|
|
42
|
+
onEnterRules: [
|
|
43
|
+
{
|
|
44
|
+
beforeText: new RegExp(
|
|
45
|
+
`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,
|
|
46
|
+
"i"
|
|
47
|
+
),
|
|
48
|
+
afterText: /^<\/(\w[\w\d]*)\s*>$/i,
|
|
49
|
+
action: {
|
|
50
|
+
indentAction: e.IndentAction.IndentOutdent
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
beforeText: new RegExp(
|
|
55
|
+
`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,
|
|
56
|
+
"i"
|
|
57
|
+
),
|
|
58
|
+
action: { indentAction: e.IndentAction.Indent }
|
|
59
|
+
}
|
|
60
|
+
]
|
|
61
|
+
}, o = {
|
|
62
|
+
defaultToken: "",
|
|
63
|
+
tokenPostfix: "",
|
|
64
|
+
builtinTags: [
|
|
65
|
+
"if",
|
|
66
|
+
"else",
|
|
67
|
+
"elseif",
|
|
68
|
+
"endif",
|
|
69
|
+
"render",
|
|
70
|
+
"assign",
|
|
71
|
+
"capture",
|
|
72
|
+
"endcapture",
|
|
73
|
+
"case",
|
|
74
|
+
"endcase",
|
|
75
|
+
"comment",
|
|
76
|
+
"endcomment",
|
|
77
|
+
"cycle",
|
|
78
|
+
"decrement",
|
|
79
|
+
"for",
|
|
80
|
+
"endfor",
|
|
81
|
+
"include",
|
|
82
|
+
"increment",
|
|
83
|
+
"layout",
|
|
84
|
+
"raw",
|
|
85
|
+
"endraw",
|
|
86
|
+
"render",
|
|
87
|
+
"tablerow",
|
|
88
|
+
"endtablerow",
|
|
89
|
+
"unless",
|
|
90
|
+
"endunless"
|
|
91
|
+
],
|
|
92
|
+
builtinFilters: [
|
|
93
|
+
"abs",
|
|
94
|
+
"append",
|
|
95
|
+
"at_least",
|
|
96
|
+
"at_most",
|
|
97
|
+
"capitalize",
|
|
98
|
+
"ceil",
|
|
99
|
+
"compact",
|
|
100
|
+
"date",
|
|
101
|
+
"default",
|
|
102
|
+
"divided_by",
|
|
103
|
+
"downcase",
|
|
104
|
+
"escape",
|
|
105
|
+
"escape_once",
|
|
106
|
+
"first",
|
|
107
|
+
"floor",
|
|
108
|
+
"join",
|
|
109
|
+
"json",
|
|
110
|
+
"last",
|
|
111
|
+
"lstrip",
|
|
112
|
+
"map",
|
|
113
|
+
"minus",
|
|
114
|
+
"modulo",
|
|
115
|
+
"newline_to_br",
|
|
116
|
+
"plus",
|
|
117
|
+
"prepend",
|
|
118
|
+
"remove",
|
|
119
|
+
"remove_first",
|
|
120
|
+
"replace",
|
|
121
|
+
"replace_first",
|
|
122
|
+
"reverse",
|
|
123
|
+
"round",
|
|
124
|
+
"rstrip",
|
|
125
|
+
"size",
|
|
126
|
+
"slice",
|
|
127
|
+
"sort",
|
|
128
|
+
"sort_natural",
|
|
129
|
+
"split",
|
|
130
|
+
"strip",
|
|
131
|
+
"strip_html",
|
|
132
|
+
"strip_newlines",
|
|
133
|
+
"times",
|
|
134
|
+
"truncate",
|
|
135
|
+
"truncatewords",
|
|
136
|
+
"uniq",
|
|
137
|
+
"upcase",
|
|
138
|
+
"url_decode",
|
|
139
|
+
"url_encode",
|
|
140
|
+
"where"
|
|
141
|
+
],
|
|
142
|
+
constants: ["true", "false"],
|
|
143
|
+
operators: ["==", "!=", ">", "<", ">=", "<="],
|
|
144
|
+
symbol: /[=><!]+/,
|
|
145
|
+
identifier: /[a-zA-Z_][\w]*/,
|
|
146
|
+
tokenizer: {
|
|
147
|
+
root: [
|
|
148
|
+
[/\{\%\s*comment\s*\%\}/, "comment.start.liquid", "@comment"],
|
|
149
|
+
[/\{\{/, { token: "@rematch", switchTo: "@liquidState.root" }],
|
|
150
|
+
[/\{\%/, { token: "@rematch", switchTo: "@liquidState.root" }],
|
|
151
|
+
[/(<)([\w\-]+)(\/>)/, ["delimiter.html", "tag.html", "delimiter.html"]],
|
|
152
|
+
[/(<)([:\w]+)/, ["delimiter.html", { token: "tag.html", next: "@otherTag" }]],
|
|
153
|
+
[/(<\/)([\w\-]+)/, ["delimiter.html", { token: "tag.html", next: "@otherTag" }]],
|
|
154
|
+
[/</, "delimiter.html"],
|
|
155
|
+
[/\{/, "delimiter.html"],
|
|
156
|
+
[/[^<{]+/]
|
|
157
|
+
// text
|
|
158
|
+
],
|
|
159
|
+
comment: [
|
|
160
|
+
[/\{\%\s*endcomment\s*\%\}/, "comment.end.liquid", "@pop"],
|
|
161
|
+
[/./, "comment.content.liquid"]
|
|
162
|
+
],
|
|
163
|
+
otherTag: [
|
|
164
|
+
[
|
|
165
|
+
/\{\{/,
|
|
166
|
+
{
|
|
167
|
+
token: "@rematch",
|
|
168
|
+
switchTo: "@liquidState.otherTag"
|
|
169
|
+
}
|
|
170
|
+
],
|
|
171
|
+
[
|
|
172
|
+
/\{\%/,
|
|
173
|
+
{
|
|
174
|
+
token: "@rematch",
|
|
175
|
+
switchTo: "@liquidState.otherTag"
|
|
176
|
+
}
|
|
177
|
+
],
|
|
178
|
+
[/\/?>/, "delimiter.html", "@pop"],
|
|
179
|
+
[/"([^"]*)"/, "attribute.value"],
|
|
180
|
+
[/'([^']*)'/, "attribute.value"],
|
|
181
|
+
[/[\w\-]+/, "attribute.name"],
|
|
182
|
+
[/=/, "delimiter"],
|
|
183
|
+
[/[ \t\r\n]+/]
|
|
184
|
+
// whitespace
|
|
185
|
+
],
|
|
186
|
+
liquidState: [
|
|
187
|
+
[/\{\{/, "delimiter.output.liquid"],
|
|
188
|
+
[/\}\}/, { token: "delimiter.output.liquid", switchTo: "@$S2.$S3" }],
|
|
189
|
+
[/\{\%/, "delimiter.tag.liquid"],
|
|
190
|
+
[/raw\s*\%\}/, "delimiter.tag.liquid", "@liquidRaw"],
|
|
191
|
+
[/\%\}/, { token: "delimiter.tag.liquid", switchTo: "@$S2.$S3" }],
|
|
192
|
+
{ include: "liquidRoot" }
|
|
193
|
+
],
|
|
194
|
+
liquidRaw: [
|
|
195
|
+
[/^(?!\{\%\s*endraw\s*\%\}).+/],
|
|
196
|
+
[/\{\%/, "delimiter.tag.liquid"],
|
|
197
|
+
[/@identifier/],
|
|
198
|
+
[/\%\}/, { token: "delimiter.tag.liquid", next: "@root" }]
|
|
199
|
+
],
|
|
200
|
+
liquidRoot: [
|
|
201
|
+
[/\d+(\.\d+)?/, "number.liquid"],
|
|
202
|
+
[/"[^"]*"/, "string.liquid"],
|
|
203
|
+
[/'[^']*'/, "string.liquid"],
|
|
204
|
+
[/\s+/],
|
|
205
|
+
[
|
|
206
|
+
/@symbol/,
|
|
207
|
+
{
|
|
208
|
+
cases: {
|
|
209
|
+
"@operators": "operator.liquid",
|
|
210
|
+
"@default": ""
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
],
|
|
214
|
+
[/\./],
|
|
215
|
+
[
|
|
216
|
+
/@identifier/,
|
|
217
|
+
{
|
|
218
|
+
cases: {
|
|
219
|
+
"@constants": "keyword.liquid",
|
|
220
|
+
"@builtinFilters": "predefined.liquid",
|
|
221
|
+
"@builtinTags": "predefined.liquid",
|
|
222
|
+
"@default": "variable.liquid"
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
],
|
|
226
|
+
[/[^}|%]/, "variable.liquid"]
|
|
227
|
+
]
|
|
228
|
+
}
|
|
229
|
+
};
|
|
230
|
+
export {
|
|
231
|
+
n as conf,
|
|
232
|
+
o as language
|
|
233
|
+
};
|