From c8608315e9bb2f7911cbda8b1540d3cf035426b3 Mon Sep 17 00:00:00 2001 From: NGPixel Date: Fri, 10 Jul 2020 23:11:28 -0400 Subject: [PATCH] feat: draw.io editor dialog (wip) --- client/components/editor.vue | 3 +- client/components/editor/editor-markdown.vue | 2 +- .../components/editor/editor-modal-drawio.vue | 120 ++++++++++++++++++ 3 files changed, 123 insertions(+), 2 deletions(-) create mode 100644 client/components/editor/editor-modal-drawio.vue diff --git a/client/components/editor.vue b/client/components/editor.vue index 845e3585..0a6c61e3 100644 --- a/client/components/editor.vue +++ b/client/components/editor.vue @@ -84,7 +84,8 @@ export default { editorModalUnsaved: () => import(/* webpackChunkName: "editor", webpackMode: "eager" */ './editor/editor-modal-unsaved.vue'), editorModalMedia: () => import(/* webpackChunkName: "editor", webpackMode: "eager" */ './editor/editor-modal-media.vue'), editorModalBlocks: () => import(/* webpackChunkName: "editor", webpackMode: "eager" */ './editor/editor-modal-blocks.vue'), - editorModalConflict: () => import(/* webpackChunkName: "editor-conflict", webpackMode: "lazy" */ './editor/editor-modal-conflict.vue') + editorModalConflict: () => import(/* webpackChunkName: "editor-conflict", webpackMode: "lazy" */ './editor/editor-modal-conflict.vue'), + editorModalDrawio: () => import(/* webpackChunkName: "editor", webpackMode: "eager" */ './editor/editor-modal-drawio.vue') }, props: { locale: { diff --git a/client/components/editor/editor-markdown.vue b/client/components/editor/editor-markdown.vue index bdbdf220..895e0bd8 100644 --- a/client/components/editor/editor-markdown.vue +++ b/client/components/editor/editor-markdown.vue @@ -139,7 +139,7 @@ span {{$t('editor:markup.insertVideoAudio')}} v-tooltip(right, color='teal') template(v-slot:activator='{ on }') - v-btn.mt-3.animated.fadeInLeft.wait-p5s(icon, tile, v-on='on', dark, disabled).mx-0 + v-btn.mt-3.animated.fadeInLeft.wait-p5s(icon, tile, v-on='on', dark, @click='toggleModal(`editorModalDrawio`)').mx-0 v-icon mdi-chart-multiline span {{$t('editor:markup.insertDiagram')}} v-tooltip(right, color='teal') diff --git a/client/components/editor/editor-modal-drawio.vue b/client/components/editor/editor-modal-drawio.vue new file mode 100644 index 00000000..aafae1cd --- /dev/null +++ b/client/components/editor/editor-modal-drawio.vue @@ -0,0 +1,120 @@ + + + + +