mirror of
https://github.com/directus/directus.git
synced 2026-02-05 21:45:04 -05:00
Revert dependency upgrades
Vue apparently had a small breaking change included in the patch release. Squashed commit of the following: commit f1e2635c20d4acef1752b8c2a357bbcfbb30a097 Author: rijkvanzanten <rijkvanzanten@me.com> Date: Thu Jun 3 19:07:54 2021 -0400 Revert dep upgrades
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import CodeMirror, { ModeSpec } from 'codemirror';
|
||||
import CodeMirror from 'codemirror';
|
||||
|
||||
import { defineComponent, computed, ref, onMounted, onUnmounted, watch } from '@vue/composition-api';
|
||||
|
||||
@@ -133,7 +133,7 @@ export default defineComponent({
|
||||
|
||||
const jsonlint = (await import('jsonlint-mod')) as any;
|
||||
|
||||
codemirror.value.setOption('mode', { name: 'javascript', json: true } as ModeSpec<{ json: boolean }>);
|
||||
codemirror.value.setOption('mode', { name: 'javascript', json: true });
|
||||
|
||||
CodeMirror.registerHelper('lint', 'json', (text: string) => {
|
||||
const found: Record<string, any> = [];
|
||||
@@ -157,7 +157,7 @@ export default defineComponent({
|
||||
return found;
|
||||
});
|
||||
} else if (lang === 'plaintext') {
|
||||
codemirror.value.setOption('mode', { name: 'text/plain' });
|
||||
codemirror.value.setOption('mode', { name: null });
|
||||
} else {
|
||||
await import(`codemirror/mode/${lang}/${lang}.js`);
|
||||
codemirror.value.setOption('mode', { name: lang });
|
||||
|
||||
Reference in New Issue
Block a user