Skip to content

Build your personal knowledge base with Trilium Notes

chore(code): integrate Vue support

Elian Doran327fe211ff85
diff --git a/packages/codemirror/package.json b/packages/codemirror/package.json
index 43109981cf..e95a3cc565 100644
--- a/packages/codemirror/package.json
+++ b/packages/codemirror/package.json
@@ -22,6 +22,7 @@
"@codemirror/commands": "6.8.1",
"@codemirror/lang-markdown": "6.3.2",
"@codemirror/lang-php": "6.0.1",
+ "@codemirror/lang-vue": "0.1.3",
"@codemirror/legacy-modes": "6.5.1",
"@codemirror/search": "6.5.10",
"@codemirror/view": "6.36.7",
diff --git a/packages/codemirror/src/syntax_highlighting.ts b/packages/codemirror/src/syntax_highlighting.ts
index fb7f9e9f5b..7f2e4c75bd 100644
--- a/packages/codemirror/src/syntax_highlighting.ts
+++ b/packages/codemirror/src/syntax_highlighting.ts
@@ -160,7 +160,7 @@ const byMimeType: Record<string, (() => Promise<StreamParser<unknown> | Language
"text/x-vb": async () => (await import('@codemirror/legacy-modes/mode/vb')).vb,
"text/x-verilog": async () => (await import('@codemirror/legacy-modes/mode/verilog')).verilog,
"text/x-vhdl": async () => (await import('@codemirror/legacy-modes/mode/vhdl')).vhdl,
- "text/x-vue": null,
+ "text/x-vue": async () => ((await import('@codemirror/lang-vue')).vue()),
"text/x-webidl": async () => (await import('@codemirror/legacy-modes/mode/webidl')).webIDL,
"text/x-xu": async () => (await import('@codemirror/legacy-modes/mode/mscgen')).xu,
"text/x-yacas": async () => (await import('@codemirror/legacy-modes/mode/yacas')).yacas,
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index b3648501f8..4910773dfe 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -1163,6 +1163,9 @@ importers:
'@codemirror/lang-php':
specifier: 6.0.1
version: 6.0.1
+ '@codemirror/lang-vue':
+ specifier: 0.1.3
+ version: 0.1.3
'@codemirror/legacy-modes':
specifier: 6.5.1
version: 6.5.1
@@ -2181,6 +2184,9 @@ packages:
'@codemirror/[email protected]':
resolution: {integrity: sha512-ublojMdw/PNWa7qdN5TMsjmqkNuTBD3k6ndZ4Z0S25SBAiweFGyY68AS3xNcIOlb6DDFDvKlinLQ40vSLqf8xA==}
+ '@codemirror/[email protected]':
+ resolution: {integrity: sha512-QSKdtYTDRhEHCfo5zOShzxCmqKJvgGrZwDQSdbvCRJ5pRLWBS7pD/8e/tH44aVQT6FKm0t6RVNoSUWHOI5vNug==}
+
'@codemirror/[email protected]':
resolution: {integrity: sha512-A7+f++LodNNc1wGgoRDTt78cOwWm9KVezApgjOMp1W4hM0898nsqBXwF+sbePE7ZRcjN7Sa1Z5m2oN27XkmEjQ==}
@@ -15059,6 +15065,14 @@ snapshots:
- supports-color
- utf-8-validate
+ '@ckeditor/[email protected]':
+ dependencies:
+ '@ckeditor/ckeditor5-core': 45.0.0([email protected])([email protected])
+ '@ckeditor/ckeditor5-icons': 45.0.0
+ '@ckeditor/ckeditor5-ui': 45.0.0([email protected])([email protected])
+ '@ckeditor/ckeditor5-utils': 45.0.0([email protected])([email protected])
+ ckeditor5: 45.0.0(patch_hash=8331a09d41443b39ea1c784daaccfeb0da4f9065ed556e7de92e9c77edd9eb41)
+
dependencies:
'@ckeditor/ckeditor5-core': 45.0.0([email protected])([email protected])
@@ -15071,6 +15085,15 @@ snapshots:
- supports-color
- utf-8-validate
+ '@ckeditor/[email protected]':
+ dependencies:
+ '@ckeditor/ckeditor5-core': 45.0.0([email protected])([email protected])
+ '@ckeditor/ckeditor5-engine': 45.0.0([email protected])([email protected])
+ '@ckeditor/ckeditor5-heading': 45.0.0([email protected])([email protected])
+ '@ckeditor/ckeditor5-typing': 45.0.0([email protected])([email protected])
+ '@ckeditor/ckeditor5-utils': 45.0.0([email protected])([email protected])
+ ckeditor5: 45.0.0(patch_hash=8331a09d41443b39ea1c784daaccfeb0da4f9065ed556e7de92e9c77edd9eb41)
+
dependencies:
'@ckeditor/ckeditor5-core': 45.0.0([email protected])([email protected])
@@ -15084,6 +15107,13 @@ snapshots:
- supports-color
- utf-8-validate
+ '@ckeditor/[email protected]':
+ dependencies:
+ '@ckeditor/ckeditor5-core': 45.0.0([email protected])([email protected])
+ '@ckeditor/ckeditor5-utils': 45.0.0([email protected])([email protected])
+ ckeditor5: 45.0.0(patch_hash=8331a09d41443b39ea1c784daaccfeb0da4f9065ed556e7de92e9c77edd9eb41)
+ es-toolkit: 1.32.0
+
dependencies:
'@ckeditor/ckeditor5-core': 45.0.0([email protected])([email protected])
@@ -15717,6 +15747,14 @@ snapshots:
- supports-color
- utf-8-validate
+ '@ckeditor/[email protected]':
+ dependencies:
+ '@ckeditor/ckeditor5-core': 45.0.0([email protected])([email protected])
+ '@ckeditor/ckeditor5-icons': 45.0.0
+ '@ckeditor/ckeditor5-ui': 45.0.0([email protected])([email protected])
+ '@ckeditor/ckeditor5-utils': 45.0.0([email protected])([email protected])
+ ckeditor5: 45.0.0(patch_hash=8331a09d41443b39ea1c784daaccfeb0da4f9065ed556e7de92e9c77edd9eb41)
+
dependencies:
'@ckeditor/ckeditor5-core': 45.0.0([email protected])([email protected])
@@ -16154,7 +16192,7 @@ snapshots:
'@ckeditor/[email protected]':
dependencies:
- '@ckeditor/ckeditor5-autosave': 45.0.0([email protected])([email protected])
+ '@ckeditor/ckeditor5-autosave': 45.0.0
'@ckeditor/ckeditor5-comments': 45.0.0
'@ckeditor/ckeditor5-core': 45.0.0([email protected])([email protected])
'@ckeditor/ckeditor5-editor-classic': 45.0.0
@@ -16312,7 +16350,7 @@ snapshots:
'@ckeditor/ckeditor5-find-and-replace': 45.0.0
'@ckeditor/ckeditor5-font': 45.0.0([email protected])([email protected])
'@ckeditor/ckeditor5-heading': 45.0.0([email protected])([email protected])
- '@ckeditor/ckeditor5-highlight': 45.0.0([email protected])([email protected])
+ '@ckeditor/ckeditor5-highlight': 45.0.0
'@ckeditor/ckeditor5-icons': 45.0.0
'@ckeditor/ckeditor5-image': 45.0.0([email protected])([email protected])
'@ckeditor/ckeditor5-link': 45.0.0([email protected])([email protected])
@@ -16497,6 +16535,15 @@ snapshots:
'@lezer/common': 1.2.3
'@lezer/php': 1.0.2
+ '@codemirror/[email protected]':
+ dependencies:
+ '@codemirror/lang-html': 6.4.9
+ '@codemirror/lang-javascript': 6.2.3
+ '@codemirror/language': 6.11.0
+ '@lezer/common': 1.2.3
+ '@lezer/highlight': 1.2.1
+ '@lezer/lr': 1.4.2
+
'@codemirror/[email protected]':
dependencies:
'@codemirror/state': 6.5.2
@@ -21723,9 +21770,9 @@ snapshots:
[email protected](patch_hash=8331a09d41443b39ea1c784daaccfeb0da4f9065ed556e7de92e9c77edd9eb41):
dependencies:
'@ckeditor/ckeditor5-adapter-ckfinder': 45.0.0
- '@ckeditor/ckeditor5-alignment': 45.0.0([email protected])([email protected])
- '@ckeditor/ckeditor5-autoformat': 45.0.0([email protected])([email protected])
- '@ckeditor/ckeditor5-autosave': 45.0.0([email protected])([email protected])
+ '@ckeditor/ckeditor5-alignment': 45.0.0
+ '@ckeditor/ckeditor5-autoformat': 45.0.0
+ '@ckeditor/ckeditor5-autosave': 45.0.0
'@ckeditor/ckeditor5-basic-styles': 45.0.0
'@ckeditor/ckeditor5-block-quote': 45.0.0
'@ckeditor/ckeditor5-bookmark': 45.0.0([email protected])([email protected])
@@ -21749,7 +21796,7 @@ snapshots:
'@ckeditor/ckeditor5-font': 45.0.0([email protected])([email protected])
'@ckeditor/ckeditor5-fullscreen': 45.0.0([email protected])([email protected])
'@ckeditor/ckeditor5-heading': 45.0.0([email protected])([email protected])
- '@ckeditor/ckeditor5-highlight': 45.0.0([email protected])([email protected])
+ '@ckeditor/ckeditor5-highlight': 45.0.0
'@ckeditor/ckeditor5-horizontal-line': 45.0.0
'@ckeditor/ckeditor5-html-embed': 45.0.0
'@ckeditor/ckeditor5-html-support': 45.0.0