online-compiler-widget 0.0.3 → 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 -279
- 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,199 @@
|
|
|
1
|
+
import { l as e } from "./index-Ds0EJmOd.js";
|
|
2
|
+
const t = {
|
|
3
|
+
comments: {
|
|
4
|
+
lineComment: "#"
|
|
5
|
+
},
|
|
6
|
+
brackets: [
|
|
7
|
+
["{", "}"],
|
|
8
|
+
["[", "]"],
|
|
9
|
+
["(", ")"]
|
|
10
|
+
],
|
|
11
|
+
autoClosingPairs: [
|
|
12
|
+
{ open: "{", close: "}" },
|
|
13
|
+
{ open: "[", close: "]" },
|
|
14
|
+
{ open: "(", close: ")" },
|
|
15
|
+
{ open: '"', close: '"' },
|
|
16
|
+
{ open: "'", close: "'" }
|
|
17
|
+
],
|
|
18
|
+
surroundingPairs: [
|
|
19
|
+
{ open: "{", close: "}" },
|
|
20
|
+
{ open: "[", close: "]" },
|
|
21
|
+
{ open: "(", close: ")" },
|
|
22
|
+
{ open: '"', close: '"' },
|
|
23
|
+
{ open: "'", close: "'" }
|
|
24
|
+
],
|
|
25
|
+
folding: {
|
|
26
|
+
offSide: !0
|
|
27
|
+
},
|
|
28
|
+
onEnterRules: [
|
|
29
|
+
{
|
|
30
|
+
beforeText: /:\s*$/,
|
|
31
|
+
action: {
|
|
32
|
+
indentAction: e.IndentAction.Indent
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
]
|
|
36
|
+
}, o = {
|
|
37
|
+
tokenPostfix: ".yaml",
|
|
38
|
+
brackets: [
|
|
39
|
+
{ token: "delimiter.bracket", open: "{", close: "}" },
|
|
40
|
+
{ token: "delimiter.square", open: "[", close: "]" }
|
|
41
|
+
],
|
|
42
|
+
keywords: ["true", "True", "TRUE", "false", "False", "FALSE", "null", "Null", "Null", "~"],
|
|
43
|
+
numberInteger: /(?:0|[+-]?[0-9]+)/,
|
|
44
|
+
numberFloat: /(?:0|[+-]?[0-9]+)(?:\.[0-9]+)?(?:e[-+][1-9][0-9]*)?/,
|
|
45
|
+
numberOctal: /0o[0-7]+/,
|
|
46
|
+
numberHex: /0x[0-9a-fA-F]+/,
|
|
47
|
+
numberInfinity: /[+-]?\.(?:inf|Inf|INF)/,
|
|
48
|
+
numberNaN: /\.(?:nan|Nan|NAN)/,
|
|
49
|
+
numberDate: /\d{4}-\d\d-\d\d([Tt ]\d\d:\d\d:\d\d(\.\d+)?(( ?[+-]\d\d?(:\d\d)?)|Z)?)?/,
|
|
50
|
+
escapes: /\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,
|
|
51
|
+
tokenizer: {
|
|
52
|
+
root: [
|
|
53
|
+
{ include: "@whitespace" },
|
|
54
|
+
{ include: "@comment" },
|
|
55
|
+
// Directive
|
|
56
|
+
[/%[^ ]+.*$/, "meta.directive"],
|
|
57
|
+
// Document Markers
|
|
58
|
+
[/---/, "operators.directivesEnd"],
|
|
59
|
+
[/\.{3}/, "operators.documentEnd"],
|
|
60
|
+
// Block Structure Indicators
|
|
61
|
+
[/[-?:](?= )/, "operators"],
|
|
62
|
+
{ include: "@anchor" },
|
|
63
|
+
{ include: "@tagHandle" },
|
|
64
|
+
{ include: "@flowCollections" },
|
|
65
|
+
{ include: "@blockStyle" },
|
|
66
|
+
// Numbers
|
|
67
|
+
[/@numberInteger(?![ \t]*\S+)/, "number"],
|
|
68
|
+
[/@numberFloat(?![ \t]*\S+)/, "number.float"],
|
|
69
|
+
[/@numberOctal(?![ \t]*\S+)/, "number.octal"],
|
|
70
|
+
[/@numberHex(?![ \t]*\S+)/, "number.hex"],
|
|
71
|
+
[/@numberInfinity(?![ \t]*\S+)/, "number.infinity"],
|
|
72
|
+
[/@numberNaN(?![ \t]*\S+)/, "number.nan"],
|
|
73
|
+
[/@numberDate(?![ \t]*\S+)/, "number.date"],
|
|
74
|
+
// Key:Value pair
|
|
75
|
+
[/(".*?"|'.*?'|[^#'"]*?)([ \t]*)(:)( |$)/, ["type", "white", "operators", "white"]],
|
|
76
|
+
{ include: "@flowScalars" },
|
|
77
|
+
// String nodes
|
|
78
|
+
[
|
|
79
|
+
/.+?(?=(\s+#|$))/,
|
|
80
|
+
{
|
|
81
|
+
cases: {
|
|
82
|
+
"@keywords": "keyword",
|
|
83
|
+
"@default": "string"
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
]
|
|
87
|
+
],
|
|
88
|
+
// Flow Collection: Flow Mapping
|
|
89
|
+
object: [
|
|
90
|
+
{ include: "@whitespace" },
|
|
91
|
+
{ include: "@comment" },
|
|
92
|
+
// Flow Mapping termination
|
|
93
|
+
[/\}/, "@brackets", "@pop"],
|
|
94
|
+
// Flow Mapping delimiter
|
|
95
|
+
[/,/, "delimiter.comma"],
|
|
96
|
+
// Flow Mapping Key:Value delimiter
|
|
97
|
+
[/:(?= )/, "operators"],
|
|
98
|
+
// Flow Mapping Key:Value key
|
|
99
|
+
[/(?:".*?"|'.*?'|[^,\{\[]+?)(?=: )/, "type"],
|
|
100
|
+
// Start Flow Style
|
|
101
|
+
{ include: "@flowCollections" },
|
|
102
|
+
{ include: "@flowScalars" },
|
|
103
|
+
// Scalar Data types
|
|
104
|
+
{ include: "@tagHandle" },
|
|
105
|
+
{ include: "@anchor" },
|
|
106
|
+
{ include: "@flowNumber" },
|
|
107
|
+
// Other value (keyword or string)
|
|
108
|
+
[
|
|
109
|
+
/[^\},]+/,
|
|
110
|
+
{
|
|
111
|
+
cases: {
|
|
112
|
+
"@keywords": "keyword",
|
|
113
|
+
"@default": "string"
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
]
|
|
117
|
+
],
|
|
118
|
+
// Flow Collection: Flow Sequence
|
|
119
|
+
array: [
|
|
120
|
+
{ include: "@whitespace" },
|
|
121
|
+
{ include: "@comment" },
|
|
122
|
+
// Flow Sequence termination
|
|
123
|
+
[/\]/, "@brackets", "@pop"],
|
|
124
|
+
// Flow Sequence delimiter
|
|
125
|
+
[/,/, "delimiter.comma"],
|
|
126
|
+
// Start Flow Style
|
|
127
|
+
{ include: "@flowCollections" },
|
|
128
|
+
{ include: "@flowScalars" },
|
|
129
|
+
// Scalar Data types
|
|
130
|
+
{ include: "@tagHandle" },
|
|
131
|
+
{ include: "@anchor" },
|
|
132
|
+
{ include: "@flowNumber" },
|
|
133
|
+
// Other value (keyword or string)
|
|
134
|
+
[
|
|
135
|
+
/[^\],]+/,
|
|
136
|
+
{
|
|
137
|
+
cases: {
|
|
138
|
+
"@keywords": "keyword",
|
|
139
|
+
"@default": "string"
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
]
|
|
143
|
+
],
|
|
144
|
+
// First line of a Block Style
|
|
145
|
+
multiString: [[/^( +).+$/, "string", "@multiStringContinued.$1"]],
|
|
146
|
+
// Further lines of a Block Style
|
|
147
|
+
// Workaround for indentation detection
|
|
148
|
+
multiStringContinued: [
|
|
149
|
+
[
|
|
150
|
+
/^( *).+$/,
|
|
151
|
+
{
|
|
152
|
+
cases: {
|
|
153
|
+
"$1==$S2": "string",
|
|
154
|
+
"@default": { token: "@rematch", next: "@popall" }
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
]
|
|
158
|
+
],
|
|
159
|
+
whitespace: [[/[ \t\r\n]+/, "white"]],
|
|
160
|
+
// Only line comments
|
|
161
|
+
comment: [[/#.*$/, "comment"]],
|
|
162
|
+
// Start Flow Collections
|
|
163
|
+
flowCollections: [
|
|
164
|
+
[/\[/, "@brackets", "@array"],
|
|
165
|
+
[/\{/, "@brackets", "@object"]
|
|
166
|
+
],
|
|
167
|
+
// Start Flow Scalars (quoted strings)
|
|
168
|
+
flowScalars: [
|
|
169
|
+
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
|
170
|
+
[/'([^'\\]|\\.)*$/, "string.invalid"],
|
|
171
|
+
[/'[^']*'/, "string"],
|
|
172
|
+
[/"/, "string", "@doubleQuotedString"]
|
|
173
|
+
],
|
|
174
|
+
doubleQuotedString: [
|
|
175
|
+
[/[^\\"]+/, "string"],
|
|
176
|
+
[/@escapes/, "string.escape"],
|
|
177
|
+
[/\\./, "string.escape.invalid"],
|
|
178
|
+
[/"/, "string", "@pop"]
|
|
179
|
+
],
|
|
180
|
+
// Start Block Scalar
|
|
181
|
+
blockStyle: [[/[>|][0-9]*[+-]?$/, "operators", "@multiString"]],
|
|
182
|
+
// Numbers in Flow Collections (terminate with ,]})
|
|
183
|
+
flowNumber: [
|
|
184
|
+
[/@numberInteger(?=[ \t]*[,\]\}])/, "number"],
|
|
185
|
+
[/@numberFloat(?=[ \t]*[,\]\}])/, "number.float"],
|
|
186
|
+
[/@numberOctal(?=[ \t]*[,\]\}])/, "number.octal"],
|
|
187
|
+
[/@numberHex(?=[ \t]*[,\]\}])/, "number.hex"],
|
|
188
|
+
[/@numberInfinity(?=[ \t]*[,\]\}])/, "number.infinity"],
|
|
189
|
+
[/@numberNaN(?=[ \t]*[,\]\}])/, "number.nan"],
|
|
190
|
+
[/@numberDate(?=[ \t]*[,\]\}])/, "number.date"]
|
|
191
|
+
],
|
|
192
|
+
tagHandle: [[/\![^ ]*/, "tag"]],
|
|
193
|
+
anchor: [[/[&*][^ ]+/, "namespace"]]
|
|
194
|
+
}
|
|
195
|
+
};
|
|
196
|
+
export {
|
|
197
|
+
t as conf,
|
|
198
|
+
o as language
|
|
199
|
+
};
|
package/package.json
CHANGED
|
@@ -1,36 +1,41 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "online-compiler-widget",
|
|
3
|
-
"version": "
|
|
4
|
-
"type": "module",
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
"
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
"@
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
|
|
36
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "online-compiler-widget",
|
|
3
|
+
"version": "1.0.2",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"module": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"import": "./dist/index.js",
|
|
11
|
+
"types": "./dist/index.d.ts"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"files": [
|
|
15
|
+
"dist"
|
|
16
|
+
],
|
|
17
|
+
"scripts": {
|
|
18
|
+
"build": "vite build && tsc",
|
|
19
|
+
"dev": "vite build --watch"
|
|
20
|
+
},
|
|
21
|
+
"peerDependencies": {
|
|
22
|
+
"@xyflow/react": "^12.0.0",
|
|
23
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
24
|
+
"react-dom": "^18.0.0 || ^19.0.0"
|
|
25
|
+
},
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"@monaco-editor/react": "^4.7.0",
|
|
28
|
+
"axios": "^1.13.2",
|
|
29
|
+
"monaco-editor": "^0.55.0",
|
|
30
|
+
"uuid": "^13.0.0"
|
|
31
|
+
},
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"@types/node": "^25.0.6",
|
|
34
|
+
"@types/react": "^19.0.0",
|
|
35
|
+
"@vitejs/plugin-react": "^4.0.0",
|
|
36
|
+
"sass": "^1.97.2",
|
|
37
|
+
"typescript": "^5.0.0",
|
|
38
|
+
"vite": "^5.0.0",
|
|
39
|
+
"vite-plugin-svgr": "^4.0.0"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
-
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
3
|
-
<Target Name="GetEFProjectMetadata">
|
|
4
|
-
<MSBuild Condition=" '$(TargetFramework)' == '' "
|
|
5
|
-
Projects="$(MSBuildProjectFile)"
|
|
6
|
-
Targets="GetEFProjectMetadata"
|
|
7
|
-
Properties="TargetFramework=$(TargetFrameworks.Split(';')[0]);EFProjectMetadataFile=$(EFProjectMetadataFile)" />
|
|
8
|
-
<ItemGroup Condition=" '$(TargetFramework)' != '' ">
|
|
9
|
-
<EFProjectMetadata Include="AssemblyName: $(AssemblyName)" />
|
|
10
|
-
<EFProjectMetadata Include="Language: $(Language)" />
|
|
11
|
-
<EFProjectMetadata Include="OutputPath: $(OutputPath)" />
|
|
12
|
-
<EFProjectMetadata Include="Platform: $(Platform)" />
|
|
13
|
-
<EFProjectMetadata Include="PlatformTarget: $(PlatformTarget)" />
|
|
14
|
-
<EFProjectMetadata Include="ProjectAssetsFile: $(ProjectAssetsFile)" />
|
|
15
|
-
<EFProjectMetadata Include="ProjectDir: $(ProjectDir)" />
|
|
16
|
-
<EFProjectMetadata Include="RootNamespace: $(RootNamespace)" />
|
|
17
|
-
<EFProjectMetadata Include="RuntimeFrameworkVersion: $(RuntimeFrameworkVersion)" />
|
|
18
|
-
<EFProjectMetadata Include="TargetFileName: $(TargetFileName)" />
|
|
19
|
-
<EFProjectMetadata Include="TargetFrameworkMoniker: $(TargetFrameworkMoniker)" />
|
|
20
|
-
<EFProjectMetadata Include="Nullable: $(Nullable)" />
|
|
21
|
-
<EFProjectMetadata Include="TargetFramework: $(TargetFramework)" />
|
|
22
|
-
<EFProjectMetadata Include="TargetPlatformIdentifier: $(TargetPlatformIdentifier)" />
|
|
23
|
-
</ItemGroup>
|
|
24
|
-
<WriteLinesToFile Condition=" '$(TargetFramework)' != '' "
|
|
25
|
-
File="$(EFProjectMetadataFile)"
|
|
26
|
-
Lines="@(EFProjectMetadata)" />
|
|
27
|
-
</Target>
|
|
28
|
-
</Project>
|
package/README.md
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
Online compiler widget
|
package/eslint.config.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import js from '@eslint/js'
|
|
2
|
-
import globals from 'globals'
|
|
3
|
-
import reactHooks from 'eslint-plugin-react-hooks'
|
|
4
|
-
import reactRefresh from 'eslint-plugin-react-refresh'
|
|
5
|
-
import tseslint from 'typescript-eslint'
|
|
6
|
-
import {defineConfig, globalIgnores} from 'eslint/config'
|
|
7
|
-
|
|
8
|
-
export default defineConfig([
|
|
9
|
-
globalIgnores(['dist']),
|
|
10
|
-
{
|
|
11
|
-
files: ['**/*.{ts,tsx}'],
|
|
12
|
-
extends: [
|
|
13
|
-
js.configs.recommended,
|
|
14
|
-
tseslint.configs.recommended,
|
|
15
|
-
reactHooks.configs.flat.recommended,
|
|
16
|
-
reactRefresh.configs.vite,
|
|
17
|
-
],
|
|
18
|
-
languageOptions: {
|
|
19
|
-
ecmaVersion: 2020,
|
|
20
|
-
globals: globals.browser,
|
|
21
|
-
},
|
|
22
|
-
rules: {
|
|
23
|
-
indent: [4, 2]
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
])
|
package/index.html
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8" />
|
|
5
|
-
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
|
6
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
|
-
<title>compilerwidgetclient</title>
|
|
8
|
-
</head>
|
|
9
|
-
<body>
|
|
10
|
-
<div id="root"></div>
|
|
11
|
-
<script type="module" src="/src/main.tsx"></script>
|
|
12
|
-
</body>
|
|
13
|
-
</html>
|
package/index.tsx
DELETED
package/openapitools.json
DELETED
package/pnpm-workspace.yaml
DELETED
package/public/vite.svg
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
|
package/src/App.css
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
#root {
|
|
2
|
-
max-width: 1280px;
|
|
3
|
-
margin: 0 auto;
|
|
4
|
-
padding: 2rem;
|
|
5
|
-
text-align: center;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
#app {
|
|
9
|
-
width: 100vw;
|
|
10
|
-
height: 100vh;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.logo {
|
|
14
|
-
height: 6em;
|
|
15
|
-
padding: 1.5em;
|
|
16
|
-
will-change: filter;
|
|
17
|
-
transition: filter 300ms;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.logo:hover {
|
|
21
|
-
filter: drop-shadow(0 0 2em #646cffaa);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.logo.react:hover {
|
|
25
|
-
filter: drop-shadow(0 0 2em #61dafbaa);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
@keyframes logo-spin {
|
|
29
|
-
from {
|
|
30
|
-
transform: rotate(0deg);
|
|
31
|
-
}
|
|
32
|
-
to {
|
|
33
|
-
transform: rotate(360deg);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
@media (prefers-reduced-motion: no-preference) {
|
|
38
|
-
a:nth-of-type(2) .logo {
|
|
39
|
-
animation: logo-spin infinite 20s linear;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.card {
|
|
44
|
-
padding: 2em;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.read-the-docs {
|
|
48
|
-
color: #888;
|
|
49
|
-
}
|
package/src/App.tsx
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import React, { useState, useMemo } from "react";
|
|
2
|
-
import {
|
|
3
|
-
ReactFlow,
|
|
4
|
-
Controls,
|
|
5
|
-
Background,
|
|
6
|
-
BackgroundVariant,
|
|
7
|
-
applyNodeChanges,
|
|
8
|
-
applyEdgeChanges
|
|
9
|
-
} from "@xyflow/react";
|
|
10
|
-
import type { Node, Edge, NodeTypes } from "@xyflow/react"; // <— тут правильно
|
|
11
|
-
import "@xyflow/react/dist/style.css";
|
|
12
|
-
import CompilerWidget from "./components/CompilerWidget";
|
|
13
|
-
import { CompilerApi, FileApi, ProjectApi } from "./api";
|
|
14
|
-
|
|
15
|
-
const initialNodes: Node[] = [
|
|
16
|
-
{
|
|
17
|
-
id: "1",
|
|
18
|
-
type: "compiler",
|
|
19
|
-
position: { x: 100, y: 100 },
|
|
20
|
-
dragHandle: ".drag-handle__custom",
|
|
21
|
-
data: {
|
|
22
|
-
initialFiles: {
|
|
23
|
-
"ConsoleApp.csproj":
|
|
24
|
-
'<Project Sdk="Microsoft.NET.Sdk">\n <PropertyGroup>\n <OutputType>Exe</OutputType>\n <TargetFramework>net8.0</TargetFramework>\n </PropertyGroup>\n</Project>',
|
|
25
|
-
"Program.cs":
|
|
26
|
-
'using System;\n\nnamespace ConsoleApp\n{\n class Program\n {\n static void Main(string[] args)\n {\n Console.WriteLine("Hello from compiled C#!");\n Console.WriteLine($"Current time: {DateTime.Now}");\n }\n }\n}'
|
|
27
|
-
},
|
|
28
|
-
language: "csharp"
|
|
29
|
-
},
|
|
30
|
-
style: {
|
|
31
|
-
width: 700,
|
|
32
|
-
height: 400
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
];
|
|
36
|
-
|
|
37
|
-
const initialEdges: Edge[] = [];
|
|
38
|
-
|
|
39
|
-
export default function App() {
|
|
40
|
-
const fileApi = new FileApi();
|
|
41
|
-
const projectApi = new ProjectApi();
|
|
42
|
-
const compilerApi = new CompilerApi();
|
|
43
|
-
|
|
44
|
-
const [nodes, setNodes] = useState<Node[]>(initialNodes);
|
|
45
|
-
const [edges, setEdges] = useState<Edge[]>(initialEdges);
|
|
46
|
-
|
|
47
|
-
const setNodeHeight = (id: string, height: number) => {
|
|
48
|
-
setNodes(nds =>
|
|
49
|
-
nds.map(n =>
|
|
50
|
-
n.id === id ? { ...n, style: { ...n.style, height } } : n
|
|
51
|
-
)
|
|
52
|
-
);
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
// типизация через NodeTypes
|
|
56
|
-
const nodeTypes: NodeTypes = useMemo(
|
|
57
|
-
() => ({
|
|
58
|
-
compiler: (props) => <CompilerWidget {...props} setNodeHeight={setNodeHeight} />
|
|
59
|
-
}),
|
|
60
|
-
[]
|
|
61
|
-
);
|
|
62
|
-
|
|
63
|
-
return (
|
|
64
|
-
<div style={{ width: "100vw", height: "100vh" }}>
|
|
65
|
-
<ReactFlow
|
|
66
|
-
nodes={nodes}
|
|
67
|
-
edges={edges}
|
|
68
|
-
nodeTypes={nodeTypes}
|
|
69
|
-
onNodesChange={(changes) =>
|
|
70
|
-
setNodes((nds) => applyNodeChanges(changes, nds))
|
|
71
|
-
}
|
|
72
|
-
onEdgesChange={(changes) =>
|
|
73
|
-
setEdges((eds) => applyEdgeChanges(changes, eds))
|
|
74
|
-
}
|
|
75
|
-
fitView
|
|
76
|
-
minZoom={0.2}
|
|
77
|
-
maxZoom={4}
|
|
78
|
-
>
|
|
79
|
-
<Background variant={BackgroundVariant.Dots} />
|
|
80
|
-
<Controls />
|
|
81
|
-
</ReactFlow>
|
|
82
|
-
</div>
|
|
83
|
-
);
|
|
84
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
.gitignore
|
|
2
|
-
.npmignore
|
|
3
|
-
api.ts
|
|
4
|
-
base.ts
|
|
5
|
-
common.ts
|
|
6
|
-
configuration.ts
|
|
7
|
-
docs/CompilationError.md
|
|
8
|
-
docs/CompileRequest.md
|
|
9
|
-
docs/CompileResult.md
|
|
10
|
-
docs/CompilerApi.md
|
|
11
|
-
docs/CreateFileDto.md
|
|
12
|
-
docs/CreateProjectRequest.md
|
|
13
|
-
docs/FileApi.md
|
|
14
|
-
docs/ProcessStatus.md
|
|
15
|
-
docs/ProjectApi.md
|
|
16
|
-
docs/ProjectInfo.md
|
|
17
|
-
docs/ProjectStats.md
|
|
18
|
-
docs/RenameFileDto.md
|
|
19
|
-
docs/RenameProjectRequest.md
|
|
20
|
-
docs/RunRequest.md
|
|
21
|
-
docs/RunResult.md
|
|
22
|
-
docs/RunningProjectInfo.md
|
|
23
|
-
docs/UpdateFileDto.md
|
|
24
|
-
git_push.sh
|
|
25
|
-
index.ts
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
7.17.0
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
# OpenAPI Generator Ignore
|
|
2
|
-
# Generated by openapi-generator https://github.com/openapitools/openapi-generator
|
|
3
|
-
|
|
4
|
-
# Use this file to prevent files from being overwritten by the generator.
|
|
5
|
-
# The patterns follow closely to .gitignore or .dockerignore.
|
|
6
|
-
|
|
7
|
-
# As an example, the C# client generator defines ApiClient.cs.
|
|
8
|
-
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
|
|
9
|
-
#ApiClient.cs
|
|
10
|
-
|
|
11
|
-
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
|
|
12
|
-
#foo/*/qux
|
|
13
|
-
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
|
|
14
|
-
|
|
15
|
-
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
|
|
16
|
-
#foo/**/qux
|
|
17
|
-
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
|
|
18
|
-
|
|
19
|
-
# You can also negate patterns with an exclamation (!).
|
|
20
|
-
# For example, you can ignore all files in a docs folder with the file extension .md:
|
|
21
|
-
#docs/*.md
|
|
22
|
-
# Then explicitly reverse the ignore rule for a single file:
|
|
23
|
-
#!docs/README.md
|