Skip to content

Commit c2bd410

Browse files
authored
Merge pull request #1 from cenixeriadev/main
feature: Add code mirror in input
2 parents 4b159a3 + dc47595 commit c2bd410

File tree

4 files changed

+411
-11
lines changed

4 files changed

+411
-11
lines changed

deno.json

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
"preview": "deno run -A --node-modules-dir npm:vite preview",
66
"serve": "deno run --allow-net --allow-read jsr:@std/http@1/file-server dist/"
77
},
8+
"permissions": {
9+
"net": true,
10+
"read": true,
11+
"write": true
12+
},
813
"compilerOptions": {
914
"lib": ["ES2020", "DOM", "DOM.Iterable", "deno.ns"],
1015
"jsx": "react-jsx",
@@ -23,6 +28,15 @@
2328
"react-router-dom": "npm:react-router-dom@^6.28.0",
2429
"react-syntax-highlighter": "npm:react-syntax-highlighter@^15.6.1",
2530
"tailwindcss": "npm:tailwindcss@^3.4.14",
26-
"vite": "npm:vite@^5.4.9"
31+
"vite": "npm:vite@^5.4.9",
32+
"@uiw/react-codemirror": "npm:@uiw/react-codemirror@latest",
33+
"@codemirror/lang-javascript": "npm:@codemirror/lang-javascript@latest",
34+
"@codemirror/lang-python": "npm:@codemirror/lang-python@latest",
35+
"@codemirror/lang-cpp": "npm:@codemirror/lang-cpp@latest",
36+
"@codemirror/lang-java": "npm:@codemirror/lang-java@latest",
37+
"@codemirror/lang-rust": "npm:@codemirror/lang-rust@latest",
38+
"@codemirror/lang-go": "npm:@codemirror/lang-go@latest",
39+
"@codemirror/lang-sql": "npm:@codemirror/lang-sql@latest",
40+
"@uiw/codemirror-theme-github": "npm:@uiw/codemirror-theme-github@latest"
2741
}
2842
}

deno.lock

Lines changed: 282 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)