mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-18 17:31:53 +08:00
chore(code): integrate Smarty support
This commit is contained in:
parent
620927dfea
commit
2fe09147fd
@ -26,6 +26,7 @@
|
||||
"@codemirror/legacy-modes": "6.5.1",
|
||||
"@codemirror/search": "6.5.10",
|
||||
"@codemirror/view": "6.36.7",
|
||||
"@ssddanbrown/codemirror-lang-smarty": "1.0.0",
|
||||
"@ssddanbrown/codemirror-lang-twig": "1.0.0",
|
||||
"codemirror-lang-hcl": "0.1.0"
|
||||
}
|
||||
|
4
packages/codemirror/src/augmentation.d.ts
vendored
Normal file
4
packages/codemirror/src/augmentation.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
declare module "@ssddanbrown/codemirror-lang-smarty" {
|
||||
import type { StreamParser } from "@codemirror/language"
|
||||
export const smarty: StreamParser<unknown>;
|
||||
}
|
@ -134,7 +134,7 @@ const byMimeType: Record<string, (() => Promise<StreamParser<unknown> | Language
|
||||
"text/x-scss": async () => (await import('@codemirror/legacy-modes/mode/css')).sCSS,
|
||||
"text/x-sh": async () => (await import('@codemirror/legacy-modes/mode/shell')).shell,
|
||||
"text/x-slim": null,
|
||||
"text/x-smarty": null,
|
||||
"text/x-smarty": async () => ((await import('@ssddanbrown/codemirror-lang-smarty')).smarty),
|
||||
"text/x-sml": async () => (await import('@codemirror/legacy-modes/mode/mllike')).sml,
|
||||
"text/x-solr": async () => (await import('@codemirror/legacy-modes/mode/solr')).solr,
|
||||
"text/x-soy": null,
|
||||
|
18
pnpm-lock.yaml
generated
18
pnpm-lock.yaml
generated
@ -1175,6 +1175,9 @@ importers:
|
||||
'@codemirror/view':
|
||||
specifier: 6.36.7
|
||||
version: 6.36.7
|
||||
'@ssddanbrown/codemirror-lang-smarty':
|
||||
specifier: 1.0.0
|
||||
version: 1.0.0
|
||||
'@ssddanbrown/codemirror-lang-twig':
|
||||
specifier: 1.0.0
|
||||
version: 1.0.0
|
||||
@ -4491,6 +4494,9 @@ packages:
|
||||
'@socket.io/component-emitter@3.1.2':
|
||||
resolution: {integrity: sha512-9BCxFwvbGg/RsZK9tjXd8s4UcwR0MWeFQ1XEKIQVVvAGJyINdrqKMcTRyLoK8Rse1GjzLV9cwjWV1olXRWEXVA==}
|
||||
|
||||
'@ssddanbrown/codemirror-lang-smarty@1.0.0':
|
||||
resolution: {integrity: sha512-F0ut1kmdbT3eORk3xVIKfQsGCZiQdh+6sLayBa0+FTex2gyIQlVQZRRA7bPSlchI3uZtWwNnqGNz5O/QLWRlFg==}
|
||||
|
||||
'@ssddanbrown/codemirror-lang-twig@1.0.0':
|
||||
resolution: {integrity: sha512-7WIMIh8Ssc54TooGCY57WU2rKEqZZrcV2tZSVRPtd0gKYsrDEKCSLWpQjUWEx7bdgh3NKHUjq1O4ugIzI/+dwQ==}
|
||||
|
||||
@ -15071,6 +15077,14 @@ snapshots:
|
||||
- supports-color
|
||||
- utf-8-validate
|
||||
|
||||
'@ckeditor/ckeditor5-alignment@45.0.0':
|
||||
dependencies:
|
||||
'@ckeditor/ckeditor5-core': 45.0.0(bufferutil@4.0.9)(utf-8-validate@6.0.5)
|
||||
'@ckeditor/ckeditor5-icons': 45.0.0
|
||||
'@ckeditor/ckeditor5-ui': 45.0.0(bufferutil@4.0.9)(utf-8-validate@6.0.5)
|
||||
'@ckeditor/ckeditor5-utils': 45.0.0(bufferutil@4.0.9)(utf-8-validate@6.0.5)
|
||||
ckeditor5: 45.0.0(patch_hash=8331a09d41443b39ea1c784daaccfeb0da4f9065ed556e7de92e9c77edd9eb41)
|
||||
|
||||
'@ckeditor/ckeditor5-alignment@45.0.0(bufferutil@4.0.9)(utf-8-validate@6.0.5)':
|
||||
dependencies:
|
||||
'@ckeditor/ckeditor5-core': 45.0.0(bufferutil@4.0.9)(utf-8-validate@6.0.5)
|
||||
@ -19521,6 +19535,8 @@ snapshots:
|
||||
|
||||
'@socket.io/component-emitter@3.1.2': {}
|
||||
|
||||
'@ssddanbrown/codemirror-lang-smarty@1.0.0': {}
|
||||
|
||||
'@ssddanbrown/codemirror-lang-twig@1.0.0':
|
||||
dependencies:
|
||||
'@codemirror/language': 6.11.0
|
||||
@ -21767,7 +21783,7 @@ snapshots:
|
||||
ckeditor5@45.0.0(patch_hash=8331a09d41443b39ea1c784daaccfeb0da4f9065ed556e7de92e9c77edd9eb41):
|
||||
dependencies:
|
||||
'@ckeditor/ckeditor5-adapter-ckfinder': 45.0.0
|
||||
'@ckeditor/ckeditor5-alignment': 45.0.0(bufferutil@4.0.9)(utf-8-validate@6.0.5)
|
||||
'@ckeditor/ckeditor5-alignment': 45.0.0
|
||||
'@ckeditor/ckeditor5-autoformat': 45.0.0
|
||||
'@ckeditor/ckeditor5-autosave': 45.0.0(bufferutil@4.0.9)(utf-8-validate@6.0.5)
|
||||
'@ckeditor/ckeditor5-basic-styles': 45.0.0
|
||||
|
Loading…
x
Reference in New Issue
Block a user