Skip to content

Commit

Permalink
dynamically load code editor...
Browse files Browse the repository at this point in the history
  • Loading branch information
yeus committed Jun 3, 2024
1 parent edef74d commit 252df91
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
10 changes: 1 addition & 9 deletions src/components/CodeEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,7 @@ import { useQuasar } from 'quasar';
import { javascript } from '@codemirror/lang-javascript';
import { oneDark } from '@codemirror/theme-one-dark';
import { basicSetup } from 'codemirror';
import { defineAsyncComponent } from 'vue';
const Codemirror = defineAsyncComponent(
/* webpackPrefetch: true */
/* webpackChunkName: "codemirror" */
/* webpackMode: "lazy" */
/* webpackFetchPriority: "low" */
() => import('vue-codemirror')
);
import { Codemirror } from 'vue-codemirror';
const content = defineModel<string | undefined>({
required: true,
Expand Down
13 changes: 12 additions & 1 deletion src/components/CreateNewTask.vue
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,18 @@ import ObjectTreeView from './ObjectTreeView.vue';
import type { ToolBase } from 'src/modules/taskyon/types';
import taskSettingsButton from './taskSettingsButton.vue';
import taskContentEdit from './taskContentEdit.vue';
import CodeEditor from './CodeEditor.vue';
//import CodeEditor from './CodeEditor.vue';
import { defineAsyncComponent } from 'vue';
const CodeEditor = defineAsyncComponent(
/* webpackPrefetch: true */
/* webpackChunkName: "codemirror" */
/* webpackMode: "lazy" */
/* webpackFetchPriority: "low" */
() => import('./CodeEditor.vue')
);
import {
matSave,
Expand Down

0 comments on commit 252df91

Please sign in to comment.