Skip to content

High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.

Replace `CodeFlask` code editor with `CodeMirror` on the UI.

Kailash Nadhb67fc5ea2499
diff --git a/frontend/cypress/e2e/campaigns.cy.js b/frontend/cypress/e2e/campaigns.cy.js
index 3528b2ef..e299c9a8 100644
--- a/frontend/cypress/e2e/campaigns.cy.js
+++ b/frontend/cypress/e2e/campaigns.cy.js
@@ -271,11 +271,19 @@ describe('Campaigns', () => {
});
cy.wait(500);
} else if (c === 'html') {
- cy.get('code-flask').shadow().find('.codeflask textarea').invoke('val', htmlBody)
- .trigger('input');
+ cy.get('[contenteditable="true"]').then(($el) => {
+ cy.window().then((win) => {
+ $el.focus();
+ win.document.execCommand('insertText', false, htmlBody);
+ });
+ });
} else if (c === 'markdown') {
- cy.get('code-flask').shadow().find('.codeflask textarea').invoke('val', markdownBody)
- .trigger('input');
+ cy.get('[contenteditable="true"]').then(($el) => {
+ cy.window().then((win) => {
+ $el.focus();
+ win.document.execCommand('insertText', false, markdownBody);
+ });
+ });
} else if (c === 'plain') {
cy.get('textarea[name=content]').invoke('val', plainBody).trigger('input');
} else if (c === 'visual') {
diff --git a/frontend/package.json b/frontend/package.json
index c9a7c256..914deb79 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -10,12 +10,23 @@
"prebuild": "eslint --ext .js,.vue --ignore-path .gitignore src"
},
"dependencies": {
+ "@codemirror/commands": "^6.8.1",
+ "@codemirror/lang-css": "^6.3.1",
+ "@codemirror/lang-html": "^6.4.9",
+ "@codemirror/lang-javascript": "^6.2.3",
+ "@codemirror/lang-markdown": "^6.3.2",
+ "@codemirror/language": "^6.11.0",
+ "@codemirror/language-data": "^6.5.1",
+ "@codemirror/search": "^6.5.10",
+ "@codemirror/state": "^6.5.2",
+ "@codemirror/view": "^6.36.5",
+ "@lezer/highlight": "^1.2.1",
"@tinymce/tinymce-vue": "^3",
"axios": "^1.8.2",
"buefy": "^0.9.25",
"bulma": "^0.9.4",
"chart.js": "^4.4.1",
- "codeflask": "^1.4.1",
+ "codemirror": "^6.0.0",
"dayjs": "^1.11.10",
"indent.js": "^0.3.5",
"js-beautify": "^1.15.1",
diff --git a/frontend/src/assets/style.scss b/frontend/src/assets/style.scss
index dcaaf44a..b68cb0d8 100644
--- a/frontend/src/assets/style.scss
+++ b/frontend/src/assets/style.scss
@@ -296,13 +296,28 @@ body.is-noscroll {
}
/* WYSIWYG / HTML code editor */
-.html-editor, .plain-editor textarea, .markdown-editor {
+.plain-editor textarea, .code-editor {
position: relative;
width: 100%;
min-height: 250px;
height: 65vh;
border: 1px solid $grey-lighter;
border-radius: 2px;
+
+ .cm-editor {
+ height: 100%;
+ }
+}
+
+.code-editor {
+ .cm-lineNumbers .cm-gutterElement{
+ color: #aaa;
+ font-size: 0.875rem;
+ padding-right: 10px;
+ }
+ .cm-gutters {
+ margin-right: 10px;
+ }
}
.alt-body textarea {
@@ -977,8 +992,8 @@ section.analytics {
.box {
margin-bottom: 30px;
}
- .html-editor {
- height: auto;
+ .code-editor {
+ height: 20vh;
min-height: 350px;
}
}
diff --git a/frontend/src/components/CodeEditor.vue b/frontend/src/components/CodeEditor.vue
new file mode 100644
index 00000000..621e9b13
--- /dev/null
+++ b/frontend/src/components/CodeEditor.vue
@@ -0,0 +1,131 @@
+<template>
+ <div ref="editor" class="code-editor" />
+</template>
+
+<script>
+import { EditorState } from '@codemirror/state';
+import {
+ EditorView, keymap, highlightActiveLine, lineNumbers, highlightActiveLineGutter,
+} from '@codemirror/view';
+import { markdown } from '@codemirror/lang-markdown';
+import { javascript } from '@codemirror/lang-javascript';
+import { css } from '@codemirror/lang-css';
+import { html } from '@codemirror/lang-html';
+import {
+ defaultKeymap, history, historyKeymap, indentWithTab,
+} from '@codemirror/commands';
+import { defaultHighlightStyle, syntaxHighlighting, bracketMatching } from '@codemirror/language';
+import { search, searchKeymap, highlightSelectionMatches } from '@codemirror/search';
+import { vsCodeLight } from './editor-theme';
+
+export default {
+ props: {
+ value: { type: String, default: '' },
+ lang: { type: String, default: 'html' },
+ disabled: Boolean,
+ },
+
+ data() {
+ return {
+ data: '',
+ editor: null,
+ internalUpdate: false,
+ };
+ },
+
+ methods: {
+ },
+
+ mounted() {
+ const onUpdate = EditorView.updateListener.of((update) => {
+ if (update.docChanged) {
+ this.internalUpdate = true;
+ this.$emit('input', update.state.doc.toString());
+ }
+ });
+
+ // Set the chosen language.
+ let langs = [];
+ switch (this.lang) {
+ case 'html':
+ langs = [html()];
+ break;
+ case 'css':
+ langs = [css()];
+ break;
+ case 'javascript':
+ langs = [javascript()];
+ break;
+ case 'markdown':
+ langs = [markdown()];
+ break;
+ default:
+ langs = [html()];
+ }
+
+ // Prepare the full config.
+ const stateCfg = EditorState.create({
+ // Initial value.
+ doc: this.value,
+
+ extensions: [
+ EditorView.baseTheme({}),
+ ...langs,
+ history(),
+ highlightActiveLine(),
+ bracketMatching(),
+ highlightSelectionMatches(),
+ lineNumbers(),
+ highlightActiveLineGutter(),
+ keymap.of([...defaultKeymap, ...historyKeymap, ...searchKeymap, indentWithTab]),
+
+ // Readonly?
+ EditorState.readOnly.of(this.disabled),
+ EditorView.editable.of(!this.disabled),
+
+ // Syntax highlighting and theme.
+ syntaxHighlighting(defaultHighlightStyle, { fallback: true }),
+ EditorView.lineWrapping,
+
+ vsCodeLight,
+
+ search({
+ top: true, // Places the search panel at the top of the editor
+ }),
+
+ // On content change.
+ onUpdate,
+ ],
+ });
+
+ // Create the editor.
+ this.editor = new EditorView({
+ state: stateCfg,
+ parent: this.$refs.editor,
+ });
+
+ this.$nextTick(() => {
+ window.setTimeout(() => {
+ this.editor.focus();
+ }, 100);
+ });
+ },
+
+ beforeDestroy() {
+ if (this.editor) {
+ this.editor.destroy();
+ }
+ },
+
+ watch: {
+ value(val) {
+ if (!this.internalUpdate) {
+ this.editor.dispatch({
+ changes: { from: 0, to: this.editor.state.doc.length, insert: val },
+ });
+ this.internalUpdate = false;
+ }
+ },
+ },
+};
+</script>
diff --git a/frontend/src/components/Editor.vue b/frontend/src/components/Editor.vue
index a9ee129f..f12a960e 100644
--- a/frontend/src/components/Editor.vue
+++ b/frontend/src/components/Editor.vue
@@ -65,10 +65,10 @@
height="65vh" ref="visualEditor" />
<!-- raw html editor //-->
- <html-editor v-if="self.contentType === 'html'" v-model="self.body" />
+ <code-editor lang="html" v-if="self.contentType === 'html'" v-model="self.body" key="editor-html" />
<!-- markdown editor //-->
- <markdown-editor v-if="self.contentType === 'markdown'" v-model="self.body" />
+ <code-editor lang="markdown" v-if="self.contentType === 'markdown'" v-model="self.body" key="editor-markdown" />
<!-- plain text //-->
<b-input v-if="self.contentType === 'plain'" v-model="self.body" type="textarea" name="content" ref="plainEditor"
@@ -86,19 +86,17 @@ import TurndownService from 'turndown';
import { mapState } from 'vuex';
import CampaignPreview from './CampaignPreview.vue';
-import HTMLEditor from './HTMLEditor.vue';
-import MarkdownEditor from './MarkdownEditor.vue';
import VisualEditor from './VisualEditor.vue';
import RichtextEditor from './RichtextEditor.vue';
import markdownToVisualBlock from './editor';
+import CodeEditor from './CodeEditor.vue';
const turndown = new TurndownService();
export default {
components: {
CampaignPreview,
- 'html-editor': HTMLEditor,
- 'markdown-editor': MarkdownEditor,
+ 'code-editor': CodeEditor,
'visual-editor': VisualEditor,
'richtext-editor': RichtextEditor,
},
diff --git a/frontend/src/components/HTMLEditor.vue b/frontend/src/components/HTMLEditor.vue
deleted file mode 100644
index c5d3c18d..00000000
--- a/frontend/src/components/HTMLEditor.vue
+++ /dev/null
@@ -1,78 +0,0 @@
-<template>
- <div ref="htmlEditor" id="html-editor" class="html-editor" />
-</template>
-
-<script>
-import CodeFlask from 'codeflask';
-import { colors } from '../constants';
-
-export default {
- props: {
- value: { type: String, default: '' },
- language: { type: String, default: 'html' },
- disabled: Boolean,
- },
-
- data() {
- return {
- data: '',
- flask: null,
- };
- },
-
- methods: {
- initHTMLEditor(body) {
- // CodeFlask editor is rendered in a shadow DOM tree to keep its styles
- // sandboxed away from the global styles.
- const el = document.createElement('code-flask');
- el.attachShadow({ mode: 'open' });
- el.shadowRoot.innerHTML = `
- <style>
- .codeflask .codeflask__flatten {
- font-size: 15px;
- white-space: pre-wrap ;
- word-break: break-word ;
- }
- .codeflask .codeflask__lines { background: #fafafa; z-index: 10; }
- .codeflask .token.tag { font-weight: bold; }
- .codeflask .token.attr-name { color: #111; }
- .codeflask .token.attr-value { color: ${colors.primary} !important; }
- </style>
- <div id="area"></area>
- `;
- this.$refs.htmlEditor.appendChild(el);
-
- this.flask = new CodeFlask(el.shadowRoot.getElementById('area'), {
- language: this.$props.language,
- lineNumbers: false,
- styleParent: el.shadowRoot,
- readonly: this.disabled,
- });
-
- this.flask.onUpdate((v) => {
- this.data = v;
- this.$emit('input', v);
- });
-
- // Set the initial value.
- this.flask.updateCode(body);
-
- this.$nextTick(() => {
- document.querySelector('code-flask').shadowRoot.querySelector('textarea').focus();
- });
- },
- },
-
- mounted() {
- this.initHTMLEditor(this.$props.value || '');
- },
-
- watch: {
- value(newVal) {
- if (newVal !== this.data) {
- this.flask.updateCode(newVal);
- }
- },
- },
-};
-</script>
diff --git a/frontend/src/components/MarkdownEditor.vue b/frontend/src/components/MarkdownEditor.vue
deleted file mode 100644
index ea38ae5a..00000000
--- a/frontend/src/components/MarkdownEditor.vue
+++ /dev/null
@@ -1,79 +0,0 @@
-<template>
- <div ref="markdownEditor" id="markdown-editor" class="markdown-editor" />
-</template>
-
-<script>
-import 'prismjs/components/prism-markdown';
-import CodeFlask from 'codeflask';
-import { colors } from '../constants';
-
-export default {
- props: {
- value: { type: String, default: '' },
- language: { type: String, default: 'markdown' },
- disabled: Boolean,
- },
-
- data() {
- return {
- data: '',
- flask: null,
- };
- },
-
- methods: {
- initMarkdownEditor(body) {
- // CodeFlask editor is rendered in a shadow DOM tree to keep its styles
- // sandboxed away from the global styles.
- const el = document.createElement('code-flask');
- el.attachShadow({ mode: 'open' });
-
- el.shadowRoot.innerHTML = `
- <style>
- .codeflask .codeflask__flatten { font-size: 15px; }
- .codeflask .token.tag { font-weight: bold; color: ${colors.primary} !important; }
- .codeflask .token { color: ${colors.primary} !important; }
- .codeflask .token.heading { font-weight: bold; }
- .codeflask .token.important,.token.bold,.token.strong { font-weight: bold; }
- .codeflask .token.em,.token.italic { font-style: italic; }
- .codeflask .token.comment { color: slategray; }
- .codeflask .token.url { color: ${colors.primary}; text-decoration: underline; }
- </style>
- <div id="area"></area>
- `;
- this.$refs.markdownEditor.appendChild(el);
-
- this.flask = new CodeFlask(el.shadowRoot.getElementById('area'), {
- language: this.$props.language || 'markdown',
- lineNumbers: false,
- styleParent: el.shadowRoot,
- readonly: this.disabled,
- });
-
- this.flask.onUpdate((v) => {
- this.data = v;
- this.$emit('input', v);
- });
-
- // Set the initial value.
- this.flask.updateCode(body);
-
- this.$nextTick(() => {
- document.querySelector('code-flask').shadowRoot.querySelector('textarea').focus();
- });
- },
- },
-
- mounted() {
- this.initMarkdownEditor(this.$props.value || '');
- },
-
- watch: {
- value(newVal) {
- if (newVal !== this.data) {
- this.flask.updateCode(newVal);
- }
- },
- },
-};
-</script>
diff --git a/frontend/src/components/RichtextEditor.vue b/frontend/src/components/RichtextEditor.vue
index 060a9322..51b10bfa 100644
--- a/frontend/src/components/RichtextEditor.vue
+++ b/frontend/src/components/RichtextEditor.vue
@@ -5,7 +5,7 @@
<b-modal scroll="keep" :width="1200" :aria-modal="true" :active.sync="isRichtextSourceVisible">
<div>
<section expanded class="modal-card-body preview">
- <html-editor v-model="richTextSourceBody" />
+ <code-editor lang="html" v-model="richTextSourceBody" key="richtext-source" />
</section>
<footer class="modal-card-foot has-text-right">
<b-button @click="onFormatRichtextHTML">
@@ -24,7 +24,7 @@
<b-modal scroll="keep" :width="750" :aria-modal="true" :active.sync="isInsertHTMLVisible">
<div>
<section expanded class="modal-card-body preview">
- <html-editor v-model="insertHTMLSnippet" />
+ <code-editor lang="html" v-model="insertHTMLSnippet" key="richtext-snippet" />
</section>
<footer class="modal-card-foot has-text-right">
<b-button @click="onFormatRichtextHTMLSnippet">
@@ -84,7 +84,7 @@ import 'tinymce/skins/ui/oxide/skin.css';
import 'tinymce/themes/silver';
import { colors, uris } from '../constants';
-import HTMLEditor from './HTMLEditor.vue';
+import CodeEditor from './CodeEditor.vue';
import Media from '../views/Media.vue';
// Map of listmonk language codes to corresponding TinyMCE language files.
@@ -105,7 +105,7 @@ export default {
components: {
Media,
'tiny-mce': TinyMce,
- 'html-editor': HTMLEditor,
+ 'code-editor': CodeEditor,
},
props: {
diff --git a/frontend/src/components/editor-theme.js b/frontend/src/components/editor-theme.js
new file mode 100644
index 00000000..42b61e6c
--- /dev/null
+++ b/frontend/src/components/editor-theme.js
@@ -0,0 +1,135 @@
+// Forked from https://github.com/fsegurai/codemirror-themes
+// MIT License - Copyright (c) 2025 fsegurai
+
+import { EditorView } from '@codemirror/view';
+import { HighlightStyle, syntaxHighlighting } from '@codemirror/language';
+import { tags } from '@lezer/highlight';
+
+// VSCode Light theme color definitions
+const background = '#ffffff';
+const foreground = '#383a42';
+const caret = '#000000';
+const selection = '#add6ff';
+const selectionMatch = '#a8ac94';
+const lineHighlight = '#99999926';
+const gutterBackground = '#ffffff';
+const gutterForeground = '#0055d4';
+const gutterActiveForeground = '#0b216f';
+const keywordColor = '#0055d4';
+const controlKeywordColor = '#af00db';
+const variableColor = '#e45649';
+const classTypeColor = '#0055d4';
+const functionColor = '#795e26';
+const numberColor = '#098658';
+const operatorColor = '#383a42';
+const regexpColor = '#af00db';
+const stringColor = '#50a14f';
+const commentColor = '#999';
+const linkColor = '#0055d4';
+const invalidColor = '#e45649';
+
+// Define the editor theme styles for VSCode Light
+const vsCodeLightTheme = /* @__PURE__ */EditorView.theme({
+ '&': {
+ color: foreground,
+ backgroundColor: background,
+ fontFamily: 'Menlo, Monaco, Consolas, "Andale Mono", "Ubuntu Mono", "Courier New", monospace',
+ },
+ '.cm-content': {
+ caretColor: caret,
+ },
+ '.cm-cursor, .cm-dropCursor': {
+ borderLeftColor: caret,
+ },
+ '&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection': {
+ backgroundColor: selection,
+ },
+ '.cm-searchMatch': {
+ backgroundColor: selectionMatch,
+ outline: `1px solid ${lineHighlight}`,
+ },
+ '.cm-activeLine': {
+ backgroundColor: lineHighlight,
+ },
+ '.cm-gutters': {
+ backgroundColor: gutterBackground,
+ color: gutterForeground,
+ },
+ '.cm-activeLineGutter': {
+ color: gutterActiveForeground,
+ },
+}, { dark: false });
+// Define the highlighting style for code in the VSCode Light theme
+const vsCodeLightHighlightStyle = /* @__PURE__ */HighlightStyle.define([
+ {
+ tag: [
+ tags.keyword,
+ tags.operatorKeyword,
+ tags.modifier,
+ tags.color,
+ /* @__PURE__ */tags.constant(tags.name),
+ /* @__PURE__ */tags.standard(tags.name),
+ /* @__PURE__ */tags.standard(tags.tagName),
+ /* @__PURE__ */tags.special(tags.brace),
+ tags.atom,
+ tags.bool,
+ /* @__PURE__ */tags.special(tags.variableName),
+ ],
+ color: keywordColor,
+ },
+ { tag: [tags.moduleKeyword, tags.controlKeyword], color: controlKeywordColor },
+ {
+ tag: [
+ tags.name,
+ tags.deleted,
+ tags.character,
+ tags.macroName,
+ tags.propertyName,
+ tags.variableName,
+ tags.labelName,
+ /* @__PURE__ */tags.definition(tags.name),
+ ],
+ color: variableColor,
+ },
+ { tag: tags.heading, fontWeight: 'bold', color: variableColor },
+ {
+ tag: [
+ tags.typeName,
+ tags.className,
+ tags.tagName,
+ tags.number,
+ tags.changed,
+ tags.annotation,
+ tags.self,
+ tags.namespace,
+ ],
+ color: classTypeColor,
+ },
+ {
+ tag: [/* @__PURE__ */tags.function(tags.variableName), /* @__PURE__ */tags.function(tags.propertyName)],
+ color: functionColor,
+ },
+ { tag: [tags.number], color: numberColor },
+ {
+ tag: [tags.operator, tags.punctuation, tags.separator, tags.url, tags.escape, tags.regexp],
+ color: operatorColor,
+ },
+ { tag: [tags.regexp], color: regexpColor },
+ {
+ tag: [/* @__PURE__ */tags.special(tags.string), tags.processingInstruction, tags.string, tags.inserted],
+ color: stringColor,
+ },
+ { tag: [tags.meta, tags.comment], color: commentColor },
+ { tag: tags.link, color: linkColor, textDecoration: 'underline' },
+ { tag: tags.invalid, color: invalidColor },
+ { tag: tags.strong, fontWeight: 'bold' },
+ { tag: tags.emphasis, fontStyle: 'italic' },
+ { tag: tags.strikethrough, textDecoration: 'line-through' },
+]);
+// Extension to enable the VSCode Light theme (both the editor theme and the highlight style)
+const vsCodeLight = [
+ vsCodeLightTheme,
+ /* @__PURE__ */syntaxHighlighting(vsCodeLightHighlightStyle),
+];
+
+export { vsCodeLight, vsCodeLightHighlightStyle, vsCodeLightTheme };
diff --git a/frontend/src/views/Campaign.vue b/frontend/src/views/Campaign.vue
index b776f07b..31dee5f9 100644
--- a/frontend/src/views/Campaign.vue
+++ b/frontend/src/views/Campaign.vue
@@ -693,6 +693,7 @@ export default Vue.extend({
this.form.lists = this.selectedLists;
},
+ // eslint-disable-next-line func-names
'data.sendAt': function () {
if (this.data.sendAt !== null) {
this.form.sendLater = true;
diff --git a/frontend/src/views/Forms.vue b/frontend/src/views/Forms.vue
index e2f5cb20..a66213a7 100644
--- a/frontend/src/views/Forms.vue
+++ b/frontend/src/views/Forms.vue
@@ -40,7 +40,7 @@
{{ $t('forms.formHTMLHelp') }}
</p>
- <html-editor v-if="checked.length > 0" v-model="html" disabled />
+ <code-editor lang="html" v-if="checked.length > 0" v-model="html" disabled />
</div>
</div><!-- columns -->
</section>
@@ -49,13 +49,13 @@
<script>
import Vue from 'vue';
import { mapState } from 'vuex';
-import HTMLEditor from '../components/HTMLEditor.vue';
+import CodeEditor from '../components/CodeEditor.vue';
export default Vue.extend({
name: 'ListForm',
components: {
- 'html-editor': HTMLEditor,
+ 'code-editor': CodeEditor,
},
data() {
diff --git a/frontend/src/views/TemplateForm.vue b/frontend/src/views/TemplateForm.vue
index e2f41505..b1d5d91b 100644
--- a/frontend/src/views/TemplateForm.vue
+++ b/frontend/src/views/TemplateForm.vue
@@ -52,11 +52,12 @@
<template v-if="form.body !== null">
<b-field v-if="form.type === 'campaign_visual'" label-position="on-border" class="mb-1">
- <visual-editor v-if="form.type === 'campaign_visual'" name="body" :source="form.bodySource" @change="onChangeVisualEditor" height="70vh" />
+ <visual-editor v-if="form.type === 'campaign_visual'" name="body" :source="form.bodySource"
+ @change="onChangeVisualEditor" height="70vh" />
</b-field>
<b-field v-else :label="$t('templates.rawHTML')" label-position="on-border">
- <html-editor v-model="form.body" name="body" />
+ <code-editor lang="html" v-model="form.body" name="body" />
</b-field>
</template>
@@ -79,8 +80,8 @@
</footer>
</div>
</form>
- <campaign-preview v-if="previewItem" is-post type="template" :title="previewItem.name" :template-type="previewItem.type"
- :body="form.body" @close="onTogglePreview" />
+ <campaign-preview v-if="previewItem" is-post type="template" :title="previewItem.name"
+ :template-type="previewItem.type" :body="form.body" @close="onTogglePreview" />
</section>
</template>
@@ -88,7 +89,7 @@
import Vue from 'vue';
import { mapState } from 'vuex';
import CampaignPreview from '../components/CampaignPreview.vue';
-import HTMLEditor from '../components/HTMLEditor.vue';
+import CodeEditor from '../components/CodeEditor.vue';
import VisualEditor from '../components/VisualEditor.vue';
import CopyText from '../components/CopyText.vue';
@@ -96,7 +97,7 @@ export default Vue.extend({
components: {
CampaignPreview,
CopyText,
- 'html-editor': HTMLEditor,
+ 'code-editor': CodeEditor,
'visual-editor': VisualEditor,
},
diff --git a/frontend/src/views/settings/appearance.vue b/frontend/src/views/settings/appearance.vue
index 4613bde6..d48629d6 100644
--- a/frontend/src/views/settings/appearance.vue
+++ b/frontend/src/views/settings/appearance.vue
@@ -7,11 +7,12 @@
</div>
<b-field :label="$t('settings.appearance.customCSS')" label-position="on-border">
- <html-editor v-model="data['appearance.admin.custom_css']" name="body" language="css" />
+ <code-editor lang="css" v-model="data['appearance.admin.custom_css']" name="body" key="editor-admin-css" />
</b-field>
<b-field :label="$t('settings.appearance.customJS')" label-position="on-border">
- <html-editor v-model="data['appearance.admin.custom_js']" name="body" language="css" />
+ <code-editor lang="javascript" v-model="data['appearance.admin.custom_js']" name="body"
+ key="editor-admin-js" />
</b-field>
</b-tab-item><!-- admin -->
@@ -21,11 +22,12 @@
</div>
<b-field :label="$t('settings.appearance.customCSS')" label-position="on-border">
- <html-editor v-model="data['appearance.public.custom_css']" name="body" language="css" />
+ <code-editor lang="css" v-model="data['appearance.public.custom_css']" name="body" key="editor-public-css" />
</b-field>
<b-field :label="$t('settings.appearance.customJS')" label-position="on-border">
- <html-editor v-model="data['appearance.public.custom_js']" name="body" language="js" />
+ <code-editor lang="javascript" v-model="data['appearance.public.custom_js']" name="body"
+ key="editor-public-js" />
</b-field>
</b-tab-item><!-- public -->
</b-tabs>
@@ -35,11 +37,11 @@
<script>
import Vue from 'vue';
import { mapState } from 'vuex';
-import HTMLEditor from '../../components/HTMLEditor.vue';
+import CodeEditor from '../../components/CodeEditor.vue';
export default Vue.extend({
components: {
- 'html-editor': HTMLEditor,
+ 'code-editor': CodeEditor,
},
props: {
diff --git a/frontend/yarn.lock b/frontend/yarn.lock
index 68191ffa..1e487ee8 100644
--- a/frontend/yarn.lock
+++ b/frontend/yarn.lock
@@ -27,6 +27,331 @@
"@babel/helper-string-parser" "^7.25.9"
"@babel/helper-validator-identifier" "^7.25.9"
+"@codemirror/autocomplete@^6.0.0", "@codemirror/autocomplete@^6.3.2", "@codemirror/autocomplete@^6.7.1":
+ version "6.18.6"
+ resolved "https://registry.yarnpkg.com/@codemirror/autocomplete/-/autocomplete-6.18.6.tgz#de26e864a1ec8192a1b241eb86addbb612964ddb"
+ integrity sha512-PHHBXFomUs5DF+9tCOM/UoW6XQ4R44lLNNhRaW9PKPTU0D7lIjRg3ElxaJnTwsl/oHiR93WSXDBrekhoUGCPtg==
+ dependencies:
+ "@codemirror/language" "^6.0.0"
+ "@codemirror/state" "^6.0.0"
+ "@codemirror/view" "^6.17.0"
+ "@lezer/common" "^1.0.0"
+
+"@codemirror/commands@^6.0.0", "@codemirror/commands@^6.8.1":
+ version "6.8.1"
+ resolved "https://registry.yarnpkg.com/@codemirror/commands/-/commands-6.8.1.tgz#639f5559d2f33f2582a2429c58cb0c1b925c7a30"
+ integrity sha512-KlGVYufHMQzxbdQONiLyGQDUW0itrLZwq3CcY7xpv9ZLRHqzkBSoteocBHtMCoY7/Ci4xhzSrToIeLg7FxHuaw==
+ dependencies:
+ "@codemirror/language" "^6.0.0"
+ "@codemirror/state" "^6.4.0"
+ "@codemirror/view" "^6.27.0"
+ "@lezer/common" "^1.1.0"
+
+"@codemirror/lang-angular@^0.1.0":
+ version "0.1.3"
+ resolved "https://registry.yarnpkg.com/@codemirror/lang-angular/-/lang-angular-0.1.3.tgz#83035e7e9e1f0e2ba466e83d778407b519089a28"
+ integrity sha512-xgeWGJQQl1LyStvndWtruUvb4SnBZDAu/gvFH/ZU+c0W25tQR8e5hq7WTwiIY2dNxnf+49mRiGI/9yxIwB6f5w==
+ dependencies:
+ "@codemirror/lang-html" "^6.0.0"
+ "@codemirror/lang-javascript" "^6.1.2"
+ "@codemirror/language" "^6.0.0"
+ "@lezer/common" "^1.2.0"
+ "@lezer/highlight" "^1.0.0"
+ "@lezer/lr" "^1.3.3"
+
+"@codemirror/lang-cpp@^6.0.0":
+ version "6.0.2"
+ resolved "https://registry.yarnpkg.com/@codemirror/lang-cpp/-/lang-cpp-6.0.2.tgz#076c98340c3beabde016d7d83e08eebe17254ef9"
+ integrity sha512-6oYEYUKHvrnacXxWxYa6t4puTlbN3dgV662BDfSH8+MfjQjVmP697/KYTDOqpxgerkvoNm7q5wlFMBeX8ZMocg==
+ dependencies:
+ "@codemirror/language" "^6.0.0"
+ "@lezer/cpp" "^1.0.0"
+
+"@codemirror/lang-css@^6.0.0", "@codemirror/lang-css@^6.2.0", "@codemirror/lang-css@^6.3.1":
+ version "6.3.1"
+ resolved "https://registry.yarnpkg.com/@codemirror/lang-css/-/lang-css-6.3.1.tgz#763ca41aee81bb2431be55e3cfcc7cc8e91421a3"
+ integrity sha512-kr5fwBGiGtmz6l0LSJIbno9QrifNMUusivHbnA1H6Dmqy4HZFte3UAICix1VuKo0lMPKQr2rqB+0BkKi/S3Ejg==
+ dependencies:
+ "@codemirror/autocomplete" "^6.0.0"
+ "@codemirror/language" "^6.0.0"
+ "@codemirror/state" "^6.0.0"
+ "@lezer/common" "^1.0.2"
+ "@lezer/css" "^1.1.7"
+
+"@codemirror/lang-go@^6.0.0":
+ version "6.0.1"
+ resolved "https://registry.yarnpkg.com/@codemirror/lang-go/-/lang-go-6.0.1.tgz#598222c90f56eae28d11069c612ca64d0306b057"
+ integrity sha512-7fNvbyNylvqCphW9HD6WFnRpcDjr+KXX/FgqXy5H5ZS0eC5edDljukm/yNgYkwTsgp2busdod50AOTIy6Jikfg==
+ dependencies:
+ "@codemirror/autocomplete" "^6.0.0"
+ "@codemirror/language" "^6.6.0"
+ "@codemirror/state" "^6.0.0"
+ "@lezer/common" "^1.0.0"
+ "@lezer/go" "^1.0.0"
+
+"@codemirror/lang-html@^6.0.0", "@codemirror/lang-html@^6.4.9":
+ version "6.4.9"
+ resolved "https://registry.yarnpkg.com/@codemirror/lang-html/-/lang-html-6.4.9.tgz#d586f2cc9c341391ae07d1d7c545990dfa069727"
+ integrity sha512-aQv37pIMSlueybId/2PVSP6NPnmurFDVmZwzc7jszd2KAF8qd4VBbvNYPXWQq90WIARjsdVkPbw29pszmHws3Q==
+ dependencies:
+ "@codemirror/autocomplete" "^6.0.0"
+ "@codemirror/lang-css" "^6.0.0"
+ "@codemirror/lang-javascript" "^6.0.0"
+ "@codemirror/language" "^6.4.0"
+ "@codemirror/state" "^6.0.0"
+ "@codemirror/view" "^6.17.0"
+ "@lezer/common" "^1.0.0"
+ "@lezer/css" "^1.1.0"
+ "@lezer/html" "^1.3.0"
+
+"@codemirror/lang-java@^6.0.0":
+ version "6.0.1"
+ resolved "https://registry.yarnpkg.com/@codemirror/lang-java/-/lang-java-6.0.1.tgz#03bd06334da7c8feb9dff6db01ac6d85bd2e48bb"
+ integrity sha512-OOnmhH67h97jHzCuFaIEspbmsT98fNdhVhmA3zCxW0cn7l8rChDhZtwiwJ/JOKXgfm4J+ELxQihxaI7bj7mJRg==
+ dependencies:
+ "@codemirror/language" "^6.0.0"
+ "@lezer/java" "^1.0.0"
+
+"@codemirror/lang-javascript@^6.0.0", "@codemirror/lang-javascript@^6.1.2", "@codemirror/lang-javascript@^6.2.3":
+ version "6.2.3"
+ resolved "https://registry.yarnpkg.com/@codemirror/lang-javascript/-/lang-javascript-6.2.3.tgz#d705c359dc816afcd3bcdf120a559f83d31d4cda"
+ integrity sha512-8PR3vIWg7pSu7ur8A07pGiYHgy3hHj+mRYRCSG8q+mPIrl0F02rgpGv+DsQTHRTc30rydOsf5PZ7yjKFg2Ackw==
+ dependencies:
+ "@codemirror/autocomplete" "^6.0.0"
+ "@codemirror/language" "^6.6.0"
+ "@codemirror/lint" "^6.0.0"
+ "@codemirror/state" "^6.0.0"
+ "@codemirror/view" "^6.17.0"
+ "@lezer/common" "^1.0.0"
+ "@lezer/javascript" "^1.0.0"
+
+"@codemirror/lang-json@^6.0.0":
+ version "6.0.1"
+ resolved "https://registry.yarnpkg.com/@codemirror/lang-json/-/lang-json-6.0.1.tgz#0a0be701a5619c4b0f8991f9b5e95fe33f462330"
+ integrity sha512-+T1flHdgpqDDlJZ2Lkil/rLiRy684WMLc74xUnjJH48GQdfJo/pudlTRreZmKwzP8/tGdKf83wlbAdOCzlJOGQ==
+ dependencies:
+ "@codemirror/language" "^6.0.0"
+ "@lezer/json" "^1.0.0"
+
+"@codemirror/lang-less@^6.0.0":
+ version "6.0.2"
+ resolved "https://registry.yarnpkg.com/@codemirror/lang-less/-/lang-less-6.0.2.tgz#2e3d82a3ddb8710e6409689cd4a28c66558d0cb8"
+ integrity sha512-EYdQTG22V+KUUk8Qq582g7FMnCZeEHsyuOJisHRft/mQ+ZSZ2w51NupvDUHiqtsOy7It5cHLPGfHQLpMh9bqpQ==
+ dependencies:
+ "@codemirror/lang-css" "^6.2.0"
+ "@codemirror/language" "^6.0.0"
+ "@lezer/common" "^1.2.0"
+ "@lezer/highlight" "^1.0.0"
+ "@lezer/lr" "^1.0.0"
+
+"@codemirror/lang-liquid@^6.0.0":
+ version "6.2.3"
+ resolved "https://registry.yarnpkg.com/@codemirror/lang-liquid/-/lang-liquid-6.2.3.tgz#cbdb38cbf2c59bc334292420401f88aa6c4b4b27"
+ integrity sha512-yeN+nMSrf/lNii3FJxVVEGQwFG0/2eDyH6gNOj+TGCa0hlNO4bhQnoO5ISnd7JOG+7zTEcI/GOoyraisFVY7jQ==
+ dependencies:
+ "@codemirror/autocomplete" "^6.0.0"
+ "@codemirror/lang-html" "^6.0.0"
+ "@codemirror/language" "^6.0.0"
+ "@codemirror/state" "^6.0.0"
+ "@codemirror/view" "^6.0.0"
+ "@lezer/common" "^1.0.0"
+ "@lezer/highlight" "^1.0.0"
+ "@lezer/lr" "^1.3.1"
+
+"@codemirror/lang-markdown@^6.0.0", "@codemirror/lang-markdown@^6.3.2":
+ version "6.3.2"
+ resolved "https://registry.yarnpkg.com/@codemirror/lang-markdown/-/lang-markdown-6.3.2.tgz#841a922c9305c035678600de5187c1b7a80f6c21"
+ integrity sha512-c/5MYinGbFxYl4itE9q/rgN/sMTjOr8XL5OWnC+EaRMLfCbVUmmubTJfdgpfcSS2SCaT7b+Q+xi3l6CgoE+BsA==
+ dependencies:
+ "@codemirror/autocomplete" "^6.7.1"
+ "@codemirror/lang-html" "^6.0.0"
+ "@codemirror/language" "^6.3.0"
+ "@codemirror/state" "^6.0.0"
+ "@codemirror/view" "^6.0.0"
+ "@lezer/common" "^1.2.1"
+ "@lezer/markdown" "^1.0.0"
+
+"@codemirror/lang-php@^6.0.0":
+ version "6.0.1"
+ resolved "https://registry.yarnpkg.com/@codemirror/lang-php/-/lang-php-6.0.1.tgz#fa34cc75562178325861a5731f79bd621f57ffaa"
+ integrity sha512-ublojMdw/PNWa7qdN5TMsjmqkNuTBD3k6ndZ4Z0S25SBAiweFGyY68AS3xNcIOlb6DDFDvKlinLQ40vSLqf8xA==
+ dependencies:
+ "@codemirror/lang-html" "^6.0.0"
+ "@codemirror/language" "^6.0.0"
+ "@codemirror/state" "^6.0.0"
+ "@lezer/common" "^1.0.0"
+ "@lezer/php" "^1.0.0"
+
+"@codemirror/lang-python@^6.0.0":
+ version "6.1.7"
+ resolved "https://registry.yarnpkg.com/@codemirror/lang-python/-/lang-python-6.1.7.tgz#1906234d453517d760a57c69672f0023a8649e14"
+ integrity sha512-mZnFTsL4lW5p9ch8uKNKeRU3xGGxr1QpESLilfON2E3fQzOa/OygEMkaDvERvXDJWJA9U9oN/D4w0ZuUzNO4+g==
+ dependencies:
+ "@codemirror/autocomplete" "^6.3.2"
+ "@codemirror/language" "^6.8.0"
+ "@codemirror/state" "^6.0.0"
+ "@lezer/common" "^1.2.1"
+ "@lezer/python" "^1.1.4"
+
+"@codemirror/lang-rust@^6.0.0":
+ version "6.0.1"
+ resolved "https://registry.yarnpkg.com/@codemirror/lang-rust/-/lang-rust-6.0.1.tgz#d6829fc7baa39a15bcd174a41a9e0a1bf7cf6ba8"
+ integrity sha512-344EMWFBzWArHWdZn/NcgkwMvZIWUR1GEBdwG8FEp++6o6vT6KL9V7vGs2ONsKxxFUPXKI0SPcWhyYyl2zPYxQ==
+ dependencies:
+ "@codemirror/language" "^6.0.0"
+ "@lezer/rust" "^1.0.0"
+
+"@codemirror/lang-sass@^6.0.0":
+ version "6.0.2"
+ resolved "https://registry.yarnpkg.com/@codemirror/lang-sass/-/lang-sass-6.0.2.tgz#38c1b0a1326cc9f5cb2741d2cd51cfbcd7abc0b2"
+ integrity sha512-l/bdzIABvnTo1nzdY6U+kPAC51czYQcOErfzQ9zSm9D8GmNPD0WTW8st/CJwBTPLO8jlrbyvlSEcN20dc4iL0Q==
+ dependencies:
+ "@codemirror/lang-css" "^6.2.0"
+ "@codemirror/language" "^6.0.0"
+ "@codemirror/state" "^6.0.0"
+ "@lezer/common" "^1.0.2"
+ "@lezer/sass" "^1.0.0"
+
+"@codemirror/lang-sql@^6.0.0":
+ version "6.8.0"
+ resolved "https://registry.yarnpkg.com/@codemirror/lang-sql/-/lang-sql-6.8.0.tgz#1ae68ad49f378605ff88a4cc428ba667ce056068"
+ integrity sha512-aGLmY4OwGqN3TdSx3h6QeA1NrvaYtF7kkoWR/+W7/JzB0gQtJ+VJxewlnE3+VImhA4WVlhmkJr109PefOOhjLg==
+ dependencies:
+ "@codemirror/autocomplete" "^6.0.0"
+ "@codemirror/language" "^6.0.0"
+ "@codemirror/state" "^6.0.0"
+ "@lezer/common" "^1.2.0"
+ "@lezer/highlight" "^1.0.0"
+ "@lezer/lr" "^1.0.0"
+
+"@codemirror/lang-vue@^0.1.1":
+ version "0.1.3"
+ resolved "https://registry.yarnpkg.com/@codemirror/lang-vue/-/lang-vue-0.1.3.tgz#bf79b9152cc18b4903d64c1f67e186ae045c8a97"
+ integrity sha512-QSKdtYTDRhEHCfo5zOShzxCmqKJvgGrZwDQSdbvCRJ5pRLWBS7pD/8e/tH44aVQT6FKm0t6RVNoSUWHOI5vNug==
+ dependencies:
+ "@codemirror/lang-html" "^6.0.0"
+ "@codemirror/lang-javascript" "^6.1.2"
+ "@codemirror/language" "^6.0.0"
+ "@lezer/common" "^1.2.0"
+ "@lezer/highlight" "^1.0.0"
+ "@lezer/lr" "^1.3.1"
+
+"@codemirror/lang-wast@^6.0.0":
+ version "6.0.2"
+ resolved "https://registry.yarnpkg.com/@codemirror/lang-wast/-/lang-wast-6.0.2.tgz#d2b14175e5e80d7878cbbb29e20ec90dc12d3a2b"
+ integrity sha512-Imi2KTpVGm7TKuUkqyJ5NRmeFWF7aMpNiwHnLQe0x9kmrxElndyH0K6H/gXtWwY6UshMRAhpENsgfpSwsgmC6Q==
+ dependencies:
+ "@codemirror/language" "^6.0.0"
+ "@lezer/common" "^1.2.0"
+ "@lezer/highlight" "^1.0.0"
+ "@lezer/lr" "^1.0.0"
+
+"@codemirror/lang-xml@^6.0.0":
+ version "6.1.0"
+ resolved "https://registry.yarnpkg.com/@codemirror/lang-xml/-/lang-xml-6.1.0.tgz#e3e786e1a89fdc9520efe75c1d6d3de1c40eb91c"
+ integrity sha512-3z0blhicHLfwi2UgkZYRPioSgVTo9PV5GP5ducFH6FaHy0IAJRg+ixj5gTR1gnT/glAIC8xv4w2VL1LoZfs+Jg==
+ dependencies:
+ "@codemirror/autocomplete" "^6.0.0"
+ "@codemirror/language" "^6.4.0"
+ "@codemirror/state" "^6.0.0"
+ "@codemirror/view" "^6.0.0"
+ "@lezer/common" "^1.0.0"
+ "@lezer/xml" "^1.0.0"
+
+"@codemirror/lang-yaml@^6.0.0":
+ version "6.1.2"
+ resolved "https://registry.yarnpkg.com/@codemirror/lang-yaml/-/lang-yaml-6.1.2.tgz#c84280c68fa7af456a355d91183b5e537e9b7038"
+ integrity sha512-dxrfG8w5Ce/QbT7YID7mWZFKhdhsaTNOYjOkSIMt1qmC4VQnXSDSYVHHHn8k6kJUfIhtLo8t1JJgltlxWdsITw==
+ dependencies:
+ "@codemirror/autocomplete" "^6.0.0"
+ "@codemirror/language" "^6.0.0"
+ "@codemirror/state" "^6.0.0"
+ "@lezer/common" "^1.2.0"
+ "@lezer/highlight" "^1.2.0"
+ "@lezer/lr" "^1.0.0"
+ "@lezer/yaml" "^1.0.0"
+
+"@codemirror/language-data@^6.5.1":
+ version "6.5.1"
+ resolved "https://registry.yarnpkg.com/@codemirror/language-data/-/language-data-6.5.1.tgz#5cb9413d5225ef27a577c23781bbc0b36c58bb67"
+ integrity sha512-0sWxeUSNlBr6OmkqybUTImADFUP0M3P0IiSde4nc24bz/6jIYzqYSgkOSLS+CBIoW1vU8Q9KUWXscBXeoMVC9w==
+ dependencies:
+ "@codemirror/lang-angular" "^0.1.0"
+ "@codemirror/lang-cpp" "^6.0.0"
+ "@codemirror/lang-css" "^6.0.0"
+ "@codemirror/lang-go" "^6.0.0"
+ "@codemirror/lang-html" "^6.0.0"
+ "@codemirror/lang-java" "^6.0.0"
+ "@codemirror/lang-javascript" "^6.0.0"
+ "@codemirror/lang-json" "^6.0.0"
+ "@codemirror/lang-less" "^6.0.0"
+ "@codemirror/lang-liquid" "^6.0.0"
+ "@codemirror/lang-markdown" "^6.0.0"
+ "@codemirror/lang-php" "^6.0.0"
+ "@codemirror/lang-python" "^6.0.0"
+ "@codemirror/lang-rust" "^6.0.0"
+ "@codemirror/lang-sass" "^6.0.0"
+ "@codemirror/lang-sql" "^6.0.0"
+ "@codemirror/lang-vue" "^0.1.1"
+ "@codemirror/lang-wast" "^6.0.0"
+ "@codemirror/lang-xml" "^6.0.0"
+ "@codemirror/lang-yaml" "^6.0.0"
+ "@codemirror/language" "^6.0.0"
+ "@codemirror/legacy-modes" "^6.4.0"
+
+"@codemirror/language@^6.0.0", "@codemirror/language@^6.11.0", "@codemirror/language@^6.3.0", "@codemirror/language@^6.4.0", "@codemirror/language@^6.6.0", "@codemirror/language@^6.8.0":
+ version "6.11.0"
+ resolved "https://registry.yarnpkg.com/@codemirror/language/-/language-6.11.0.tgz#5ae90972601497f4575f30811519d720bf7232c9"
+ integrity sha512-A7+f++LodNNc1wGgoRDTt78cOwWm9KVezApgjOMp1W4hM0898nsqBXwF+sbePE7ZRcjN7Sa1Z5m2oN27XkmEjQ==
+ dependencies:
+ "@codemirror/state" "^6.0.0"
+ "@codemirror/view" "^6.23.0"
+ "@lezer/common" "^1.1.0"
+ "@lezer/highlight" "^1.0.0"
+ "@lezer/lr" "^1.0.0"
+ style-mod "^4.0.0"
+
+"@codemirror/legacy-modes@^6.4.0":
+ version "6.5.0"
+ resolved "https://registry.yarnpkg.com/@codemirror/legacy-modes/-/legacy-modes-6.5.0.tgz#21c8cf818f9ea4d6eba9f22afdfef010d1d9f754"
+ integrity sha512-dNw5pwTqtR1giYjaJyEajunLqxGavZqV0XRtVZyMJnNOD2HmK9DMUmuCAr6RMFGRJ4l8OeQDjpI/us+R09mQsw==
+ dependencies:
+ "@codemirror/language" "^6.0.0"
+
+"@codemirror/lint@^6.0.0":
+ version "6.8.5"
+ resolved "https://registry.yarnpkg.com/@codemirror/lint/-/lint-6.8.5.tgz#9edaa808e764e28e07665b015951934c8ec3a418"
+ integrity sha512-s3n3KisH7dx3vsoeGMxsbRAgKe4O1vbrnKBClm99PU0fWxmxsx5rR2PfqQgIt+2MMJBHbiJ5rfIdLYfB9NNvsA==
+ dependencies:
+ "@codemirror/state" "^6.0.0"
+ "@codemirror/view" "^6.35.0"
+ crelt "^1.0.5"
+
+"@codemirror/search@^6.0.0", "@codemirror/search@^6.5.10":
+ version "6.5.10"
+ resolved "https://registry.yarnpkg.com/@codemirror/search/-/search-6.5.10.tgz#7367bfc88094d078b91c752bc74140fb565b55ee"
+ integrity sha512-RMdPdmsrUf53pb2VwflKGHEe1XVM07hI7vV2ntgw1dmqhimpatSJKva4VA9h4TLUDOD4EIF02201oZurpnEFsg==
+ dependencies:
+ "@codemirror/state" "^6.0.0"
+ "@codemirror/view" "^6.0.0"
+ crelt "^1.0.5"
+
+"@codemirror/state@^6.0.0", "@codemirror/state@^6.4.0", "@codemirror/state@^6.5.0", "@codemirror/state@^6.5.2":
+ version "6.5.2"
+ resolved "https://registry.yarnpkg.com/@codemirror/state/-/state-6.5.2.tgz#8eca3a64212a83367dc85475b7d78d5c9b7076c6"
+ integrity sha512-FVqsPqtPWKVVL3dPSxy8wEF/ymIEuVzF1PK3VbUgrxXpJUSHQWWZz4JMToquRxnkw+36LTamCZG2iua2Ptq0fA==
+ dependencies:
+ "@marijn/find-cluster-break" "^1.0.0"
+
+"@codemirror/view@^6.0.0", "@codemirror/view@^6.17.0", "@codemirror/view@^6.23.0", "@codemirror/view@^6.27.0", "@codemirror/view@^6.35.0", "@codemirror/view@^6.36.5":
+ version "6.36.5"
+ resolved "https://registry.yarnpkg.com/@codemirror/view/-/view-6.36.5.tgz#bb99b971322b9a3f8c7013f0ef6c4a511c0d750a"
+ integrity sha512-cd+FZEUlu3GQCYnguYm3EkhJ8KJVisqqUsCOKedBoAt/d9c76JUUap6U0UrpElln5k6VyrEOYliMuDAKIeDQLg==
+ dependencies:
+ "@codemirror/state" "^6.5.0"
+ style-mod "^4.1.0"
+ w3c-keyname "^2.2.4"
+
"@colors/[email protected]":
version "1.5.0"
resolved "https://registry.yarnpkg.com/@colors/colors/-/colors-1.5.0.tgz#bb504579c1cae923e6576a4f5da43d25f97bdbd9"
@@ -235,6 +560,155 @@
resolved "https://registry.yarnpkg.com/@kurkle/color/-/color-0.3.4.tgz#4d4ff677e1609214fc71c580125ddddd86abcabf"
integrity sha512-M5UknZPHRu3DEDWoipU6sE8PdkZ6Z/S+v4dD+Ke8IaNlpdSQah50lz1KtcFBa2vsdOnwbbnxJwVM4wty6udA5w==
+"@lezer/common@^1.0.0", "@lezer/common@^1.0.2", "@lezer/common@^1.1.0", "@lezer/common@^1.2.0", "@lezer/common@^1.2.1":
+ version "1.2.3"
+ resolved "https://registry.yarnpkg.com/@lezer/common/-/common-1.2.3.tgz#138fcddab157d83da557554851017c6c1e5667fd"
+ integrity sha512-w7ojc8ejBqr2REPsWxJjrMFsA/ysDCFICn8zEOR9mrqzOu2amhITYuLD8ag6XZf0CFXDrhKqw7+tW8cX66NaDA==
+
+"@lezer/cpp@^1.0.0":
+ version "1.1.3"
+ resolved "https://registry.yarnpkg.com/@lezer/cpp/-/cpp-1.1.3.tgz#3029a542f4624fba0ed28f96511b34b8e7906352"
+ integrity sha512-ykYvuFQKGsRi6IcE+/hCSGUhb/I4WPjd3ELhEblm2wS2cOznDFzO+ubK2c+ioysOnlZ3EduV+MVQFCPzAIoY3w==
+ dependencies:
+ "@lezer/common" "^1.2.0"
+ "@lezer/highlight" "^1.0.0"
+ "@lezer/lr" "^1.0.0"
+
+"@lezer/css@^1.1.0", "@lezer/css@^1.1.7":
+ version "1.1.11"
+ resolved "https://registry.yarnpkg.com/@lezer/css/-/css-1.1.11.tgz#f73ac747e44f89d729cc421f829681a85b994766"
+ integrity sha512-FuAnusbLBl1SEAtfN8NdShxYJiESKw9LAFysfea1T96jD3ydBn12oYjaSG1a04BQRIUd93/0D8e5CV1cUMkmQg==
+ dependencies:
+ "@lezer/common" "^1.2.0"
+ "@lezer/highlight" "^1.0.0"
+ "@lezer/lr" "^1.0.0"
+
+"@lezer/go@^1.0.0":
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/@lezer/go/-/go-1.0.0.tgz#26cd2463f8583e630f52e714dca6d7420c5f7d7e"
+ integrity sha512-co9JfT3QqX1YkrMmourYw2Z8meGC50Ko4d54QEcQbEYpvdUvN4yb0NBZdn/9ertgvjsySxHsKzH3lbm3vqJ4Jw==
+ dependencies:
+ "@lezer/common" "^1.2.0"
+ "@lezer/highlight" "^1.0.0"
+ "@lezer/lr" "^1.0.0"
+
+"@lezer/highlight@^1.0.0", "@lezer/highlight@^1.1.3", "@lezer/highlight@^1.2.0", "@lezer/highlight@^1.2.1":
+ version "1.2.1"
+ resolved "https://registry.yarnpkg.com/@lezer/highlight/-/highlight-1.2.1.tgz#596fa8f9aeb58a608be0a563e960c373cbf23f8b"
+ integrity sha512-Z5duk4RN/3zuVO7Jq0pGLJ3qynpxUVsh7IbUbGj88+uV2ApSAn6kWg2au3iJb+0Zi7kKtqffIESgNcRXWZWmSA==
+ dependencies:
+ "@lezer/common" "^1.0.0"
+
+"@lezer/html@^1.3.0":
+ version "1.3.10"
+ resolved "https://registry.yarnpkg.com/@lezer/html/-/html-1.3.10.tgz#1be9a029a6fe835c823b20a98a449a630416b2af"
+ integrity sha512-dqpT8nISx/p9Do3AchvYGV3qYc4/rKr3IBZxlHmpIKam56P47RSHkSF5f13Vu9hebS1jM0HmtJIwLbWz1VIY6w==
+ dependencies:
+ "@lezer/common" "^1.2.0"
+ "@lezer/highlight" "^1.0.0"
+ "@lezer/lr" "^1.0.0"
+
+"@lezer/java@^1.0.0":
+ version "1.1.3"
+ resolved "https://registry.yarnpkg.com/@lezer/java/-/java-1.1.3.tgz#9efd6a29b4142d07f211076a6fb5e8061c85e147"
+ integrity sha512-yHquUfujwg6Yu4Fd1GNHCvidIvJwi/1Xu2DaKl/pfWIA2c1oXkVvawH3NyXhCaFx4OdlYBVX5wvz2f7Aoa/4Xw==
+ dependencies:
+ "@lezer/common" "^1.2.0"
+ "@lezer/highlight" "^1.0.0"
+ "@lezer/lr" "^1.0.0"
+
+"@lezer/javascript@^1.0.0":
+ version "1.5.1"
+ resolved "https://registry.yarnpkg.com/@lezer/javascript/-/javascript-1.5.1.tgz#2a424a6ec29f1d4ef3c34cbccc5447e373618ad8"
+ integrity sha512-ATOImjeVJuvgm3JQ/bpo2Tmv55HSScE2MTPnKRMRIPx2cLhHGyX2VnqpHhtIV1tVzIjZDbcWQm+NCTF40ggZVw==
+ dependencies:
+ "@lezer/common" "^1.2.0"
+ "@lezer/highlight" "^1.1.3"
+ "@lezer/lr" "^1.3.0"
+
+"@lezer/json@^1.0.0":
+ version "1.0.3"
+ resolved "https://registry.yarnpkg.com/@lezer/json/-/json-1.0.3.tgz#e773a012ad0088fbf07ce49cfba875cc9e5bc05f"
+ integrity sha512-BP9KzdF9Y35PDpv04r0VeSTKDeox5vVr3efE7eBbx3r4s3oNLfunchejZhjArmeieBH+nVOpgIiBJpEAv8ilqQ==
+ dependencies:
+ "@lezer/common" "^1.2.0"
+ "@lezer/highlight" "^1.0.0"
+ "@lezer/lr" "^1.0.0"
+
+"@lezer/lr@^1.0.0", "@lezer/lr@^1.1.0", "@lezer/lr@^1.3.0", "@lezer/lr@^1.3.1", "@lezer/lr@^1.3.3", "@lezer/lr@^1.4.0":
+ version "1.4.2"
+ resolved "https://registry.yarnpkg.com/@lezer/lr/-/lr-1.4.2.tgz#931ea3dea8e9de84e90781001dae30dea9ff1727"
+ integrity sha512-pu0K1jCIdnQ12aWNaAVU5bzi7Bd1w54J3ECgANPmYLtQKP0HBj2cE/5coBD66MT10xbtIuUr7tg0Shbsvk0mDA==
+ dependencies:
+ "@lezer/common" "^1.0.0"
+
+"@lezer/markdown@^1.0.0":
+ version "1.4.2"
+ resolved "https://registry.yarnpkg.com/@lezer/markdown/-/markdown-1.4.2.tgz#39abb22dc3289a52dc313e235d80929df0ee075a"
+ integrity sha512-iYewCigG/517D0xJPQd7RGaCjZAFwROiH8T9h7OTtz0bRVtkxzFhGBFJ9JGKgBBs4uuo1cvxzyQ5iKhDLMcLUQ==
+ dependencies:
+ "@lezer/common" "^1.0.0"
+ "@lezer/highlight" "^1.0.0"
+
+"@lezer/php@^1.0.0":
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/@lezer/php/-/php-1.0.2.tgz#7c291631fc1e7f7efe99977522bc48bdc732658a"
+ integrity sha512-GN7BnqtGRpFyeoKSEqxvGvhJQiI4zkgmYnDk/JIyc7H7Ifc1tkPnUn/R2R8meH3h/aBf5rzjvU8ZQoyiNDtDrA==
+ dependencies:
+ "@lezer/common" "^1.2.0"
+ "@lezer/highlight" "^1.0.0"
+ "@lezer/lr" "^1.1.0"
+
+"@lezer/python@^1.1.4":
+ version "1.1.18"
+ resolved "https://registry.yarnpkg.com/@lezer/python/-/python-1.1.18.tgz#fa02fbf492741c82dc2dc98a0a042bd0d4d7f1d3"
+ integrity sha512-31FiUrU7z9+d/ElGQLJFXl+dKOdx0jALlP3KEOsGTex8mvj+SoE1FgItcHWK/axkxCHGUSpqIHt6JAWfWu9Rhg==
+ dependencies:
+ "@lezer/common" "^1.2.0"
+ "@lezer/highlight" "^1.0.0"
+ "@lezer/lr" "^1.0.0"
+
+"@lezer/rust@^1.0.0":
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/@lezer/rust/-/rust-1.0.2.tgz#cc9a75605d67182a0e799ac40b1965a61dcc6ef0"
+ integrity sha512-Lz5sIPBdF2FUXcWeCu1//ojFAZqzTQNRga0aYv6dYXqJqPfMdCAI0NzajWUd4Xijj1IKJLtjoXRPMvTKWBcqKg==
+ dependencies:
+ "@lezer/common" "^1.2.0"
+ "@lezer/highlight" "^1.0.0"
+ "@lezer/lr" "^1.0.0"
+
+"@lezer/sass@^1.0.0":
+ version "1.0.7"
+ resolved "https://registry.yarnpkg.com/@lezer/sass/-/sass-1.0.7.tgz#e90066b1d386eee6160edc88a39293844e4ba106"
+ integrity sha512-8HLlOkuX/SMHOggI2DAsXUw38TuURe+3eQ5hiuk9QmYOUyC55B1dYEIMkav5A4IELVaW4e1T4P9WRiI5ka4mdw==
+ dependencies:
+ "@lezer/common" "^1.2.0"
+ "@lezer/highlight" "^1.0.0"
+ "@lezer/lr" "^1.0.0"
+
+"@lezer/xml@^1.0.0":
+ version "1.0.6"
+ resolved "https://registry.yarnpkg.com/@lezer/xml/-/xml-1.0.6.tgz#908c203923288f854eb8e2f4d9b06c437e8610b9"
+ integrity sha512-CdDwirL0OEaStFue/66ZmFSeppuL6Dwjlk8qk153mSQwiSH/Dlri4GNymrNWnUmPl2Um7QfV1FO9KFUyX3Twww==
+ dependencies:
+ "@lezer/common" "^1.2.0"
+ "@lezer/highlight" "^1.0.0"
+ "@lezer/lr" "^1.0.0"
+
+"@lezer/yaml@^1.0.0":
+ version "1.0.3"
+ resolved "https://registry.yarnpkg.com/@lezer/yaml/-/yaml-1.0.3.tgz#b23770ab42b390056da6b187d861b998fd60b1ff"
+ integrity sha512-GuBLekbw9jDBDhGur82nuwkxKQ+a3W5H0GfaAthDXcAu+XdpS43VlnxA9E9hllkpSP5ellRDKjLLj7Lu9Wr6xA==
+ dependencies:
+ "@lezer/common" "^1.2.0"
+ "@lezer/highlight" "^1.0.0"
+ "@lezer/lr" "^1.4.0"
+
+"@marijn/find-cluster-break@^1.0.0":
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/@marijn/find-cluster-break/-/find-cluster-break-1.0.2.tgz#775374306116d51c0c500b8c4face0f9a04752d8"
+ integrity sha512-l0h88YhZFyKdXIFNfSWpyjStDjGHwZ/U7iobcK1cQQD8sejsONdQtTVU+1wVN1PBw40PiiHB1vA5S7VTfQiP9g==
+
"@mixmark-io/domino@^2.2.0":
version "2.2.0"
resolved "https://registry.yarnpkg.com/@mixmark-io/domino/-/domino-2.2.0.tgz#4e8ec69bf1afeb7a14f0628b7e2c0f35bdb336c3"
@@ -487,11 +961,6 @@
dependencies:
undici-types "~6.20.0"
-"@types/prismjs@^1.9.1":
- version "1.26.5"
- resolved "https://registry.yarnpkg.com/@types/prismjs/-/prismjs-1.26.5.tgz#72499abbb4c4ec9982446509d2f14fb8483869d6"
- integrity sha512-AUZTa7hQ2KY5L7AmtSiqxlhWxb4ina0yd8hNbl4TWuqnv/pFP0nDMb3YrfSBf4hJVGLh2YEIBfKaBW/9UEl6IQ==
-
version "8.1.1"
resolved "https://registry.yarnpkg.com/@types/sinonjs__fake-timers/-/sinonjs__fake-timers-8.1.1.tgz#b49c2c70150141a15e0fa7e79cf1f92a72934ce3"
@@ -967,13 +1436,18 @@ cliui@^8.0.1:
strip-ansi "^6.0.1"
wrap-ansi "^7.0.0"
-codeflask@^1.4.1:
- version "1.4.1"
- resolved "https://registry.yarnpkg.com/codeflask/-/codeflask-1.4.1.tgz#c5229854e3f648377922a75f1145f7316030d3db"
- integrity sha512-4vb2IbE/iwvP0Uubhd2ixVeysm3KNC2pl7SoDaisxq1juhZzvap3qbaX7B2CtpQVvv5V9sjcQK8hO0eTcY0V9Q==
+codemirror@^6.0.0:
+ version "6.0.1"
+ resolved "https://registry.yarnpkg.com/codemirror/-/codemirror-6.0.1.tgz#62b91142d45904547ee3e0e0e4c1a79158035a29"
+ integrity sha512-J8j+nZ+CdWmIeFIGXEFbFPtpiYacFMDR8GlHK3IyHQJMCaVRfGx9NT+Hxivv1ckLWPvNdZqndbr/7lVhrf/Svg==
dependencies:
- "@types/prismjs" "^1.9.1"
- prismjs "^1.14.0"
+ "@codemirror/autocomplete" "^6.0.0"
+ "@codemirror/commands" "^6.0.0"
+ "@codemirror/language" "^6.0.0"
+ "@codemirror/lint" "^6.0.0"
+ "@codemirror/search" "^6.0.0"
+ "@codemirror/state" "^6.0.0"
+ "@codemirror/view" "^6.0.0"
color-convert@^2.0.1:
version "2.0.1"
@@ -1037,6 +1511,11 @@ [email protected]:
resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7"
integrity sha512-3lqz5YjWTYnW6dlDa5TLaTCcShfar1e40rmcJVwCBJC6mWlFuj0eCHIElmG1g5kyuJ/GD+8Wn4FFCcz4gJPfaQ==
+crelt@^1.0.5:
+ version "1.0.6"
+ resolved "https://registry.yarnpkg.com/crelt/-/crelt-1.0.6.tgz#7cc898ea74e190fb6ef9dae57f8f81cf7302df72"
+ integrity sha512-VQ2MBenTq1fWZUH9DJNGti7kKv6EeAuYr3cLwxUWhIu1baTaXh4Ib5W2CqHVqib4/MqbYGJqiL3Zb8GJZr3l4g==
+
cross-spawn@^7.0.0, cross-spawn@^7.0.2:
version "7.0.6"
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.6.tgz#8a58fe78f00dcd70c370451759dfbfaf03e8ee9f"
@@ -2898,7 +3377,7 @@ pretty-bytes@^5.6.0:
resolved "https://registry.yarnpkg.com/pretty-bytes/-/pretty-bytes-5.6.0.tgz#356256f643804773c82f64723fe78c92c62beaeb"
integrity sha512-FFw039TmrBqFK8ma/7OL3sDz/VytdtJr044/QUJtH0wK9lb9jLq9tJyIxUwtQJHwar2BqtiA4iCWSwo9JLkzFg==
-prismjs@^1.14.0, prismjs@^1.30.0:
+prismjs@^1.30.0:
version "1.30.0"
resolved "https://registry.yarnpkg.com/prismjs/-/prismjs-1.30.0.tgz#d9709969d9d4e16403f6f348c63553b19f0975a9"
integrity sha512-DEvV2ZF2r2/63V+tK8hQvrR2ZGn10srHbXviTlcv7Kpzw8jWiNTqbVgjO3IY8RxrrOUF8VPMQQFysYYYv0YZxw==
@@ -3384,6 +3863,11 @@ strip-json-comments@^3.1.1:
resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz#31f1281b3832630434831c310c01cccda8cbe006"
integrity sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==
+style-mod@^4.0.0, style-mod@^4.1.0:
+ version "4.1.2"
+ resolved "https://registry.yarnpkg.com/style-mod/-/style-mod-4.1.2.tgz#ca238a1ad4786520f7515a8539d5a63691d7bf67"
+ integrity sha512-wnD1HyVqpJUI2+eKZ+eo1UwghftP6yuFheBqqe+bWCotBjC2K1YnteJILRMs3SM4V/0dLEW1SC27MWP5y+mwmw==
+
supports-color@^7.1.0:
version "7.2.0"
resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-7.2.0.tgz#1b7dcdcb32b8138801b3e478ba6a51caa89648da"
@@ -3666,6 +4150,11 @@ vuex@^3.6.2:
resolved "https://registry.yarnpkg.com/vuex/-/vuex-3.6.2.tgz#236bc086a870c3ae79946f107f16de59d5895e71"
integrity sha512-ETW44IqCgBpVomy520DT5jf8n0zoCac+sxWnn+hMe/CzaSejb/eVw2YToiXYX+Ex/AuHHia28vWTq4goAexFbw==
+w3c-keyname@^2.2.4:
+ version "2.2.8"
+ resolved "https://registry.yarnpkg.com/w3c-keyname/-/w3c-keyname-2.2.8.tgz#7b17c8c6883d4e8b86ac8aba79d39e880f8869c5"
+ integrity sha512-dpojBhNsCNN7T82Tm7k26A6G9ML3NkhDsnw9n/eoxSRlVBB4CEtIQ/KTCLI2Fwf3ataSXRhYFkQi3SlnFwPvPQ==
+
which-boxed-primitive@^1.1.0, which-boxed-primitive@^1.1.1:
version "1.1.1"
resolved "https://registry.yarnpkg.com/which-boxed-primitive/-/which-boxed-primitive-1.1.1.tgz#d76ec27df7fa165f18d5808374a5fe23c29b176e"