Merge branch 'main' into update-setting-modal-styles
Browse files- app/commit.json +1 -1
- app/components/editor/codemirror/languages.ts +7 -0
- package.json +1 -0
app/commit.json
CHANGED
@@ -1 +1 @@
|
|
1 |
-
{ "commit": "
|
|
|
1 |
+
{ "commit": "d9ae9d5afbd0310a976fc4c9aee4b9256edef79a" }
|
app/components/editor/codemirror/languages.ts
CHANGED
@@ -1,6 +1,13 @@
|
|
1 |
import { LanguageDescription } from '@codemirror/language';
|
2 |
|
3 |
export const supportedLanguages = [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
LanguageDescription.of({
|
5 |
name: 'TS',
|
6 |
extensions: ['ts'],
|
|
|
1 |
import { LanguageDescription } from '@codemirror/language';
|
2 |
|
3 |
export const supportedLanguages = [
|
4 |
+
LanguageDescription.of({
|
5 |
+
name: 'VUE',
|
6 |
+
extensions: ['vue'],
|
7 |
+
async load() {
|
8 |
+
return import('@codemirror/lang-vue').then((module) => module.vue());
|
9 |
+
},
|
10 |
+
}),
|
11 |
LanguageDescription.of({
|
12 |
name: 'TS',
|
13 |
extensions: ['ts'],
|
package.json
CHANGED
@@ -44,6 +44,7 @@
|
|
44 |
"@codemirror/lang-markdown": "^6.3.1",
|
45 |
"@codemirror/lang-python": "^6.1.6",
|
46 |
"@codemirror/lang-sass": "^6.0.2",
|
|
|
47 |
"@codemirror/lang-wast": "^6.0.2",
|
48 |
"@codemirror/language": "^6.10.6",
|
49 |
"@codemirror/search": "^6.5.8",
|
|
|
44 |
"@codemirror/lang-markdown": "^6.3.1",
|
45 |
"@codemirror/lang-python": "^6.1.6",
|
46 |
"@codemirror/lang-sass": "^6.0.2",
|
47 |
+
"@codemirror/lang-vue": "^0.1.3",
|
48 |
"@codemirror/lang-wast": "^6.0.2",
|
49 |
"@codemirror/language": "^6.10.6",
|
50 |
"@codemirror/search": "^6.5.8",
|