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:
rijkvanzanten
2021-06-03 19:12:01 -04:00
parent e1926ba5f7
commit c000c8a613
14 changed files with 543 additions and 960 deletions

View File

@@ -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 });