From 1521d1e8831a60f5f737a9480d2e8726ac98c4a5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=9F=A6=E8=8D=A3=E8=B6=85?= <302645122@qq.com>
Date: Fri, 18 Feb 2022 11:21:56 +0800
Subject: [PATCH] =?UTF-8?q?fix:=20=E3=80=90=E6=96=87=E4=BB=B6=E3=80=91?=
=?UTF-8?q?=E6=B5=81=E7=A8=8B=E5=9B=BE=E5=8F=AA=E8=AF=BB=E6=8E=A5=E5=85=A5?=
=?UTF-8?q?=E6=96=B0=E7=BB=84=E4=BB=B6=E5=8F=8A=E5=88=A0=E9=99=A4=E6=97=A7?=
=?UTF-8?q?=E7=BB=84=E4=BB=B6=E5=BC=95=E5=85=A5=E4=BB=A3=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
public/js/drawio/images/manifest.json | 2 +-
public/js/drawio/viewer.html | 105 ++++++++++++++++++
.../pages/manage/components/FileContent.vue | 3 +-
.../pages/manage/components/FilePreview.vue | 5 +-
.../statics/public/js/drawio/viewer.html | 105 ++++++++++++++++++
5 files changed, 214 insertions(+), 6 deletions(-)
create mode 100644 public/js/drawio/viewer.html
create mode 100644 resources/assets/statics/public/js/drawio/viewer.html
diff --git a/public/js/drawio/images/manifest.json b/public/js/drawio/images/manifest.json
index 5182c6f5..b18bb247 100644
--- a/public/js/drawio/images/manifest.json
+++ b/public/js/drawio/images/manifest.json
@@ -1,5 +1,5 @@
{
- "name": "diagrams.net",
+ "name": "",
"short_name": "Diagrams",
"description": "diagrams.net is a completely free diagram editor",
"icons": [
diff --git a/public/js/drawio/viewer.html b/public/js/drawio/viewer.html
new file mode 100644
index 00000000..7f20f76a
--- /dev/null
+++ b/public/js/drawio/viewer.html
@@ -0,0 +1,105 @@
+
+
+
+
+ Grapheditor viewer
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/resources/assets/js/pages/manage/components/FileContent.vue b/resources/assets/js/pages/manage/components/FileContent.vue
index 0170f1bb..370541ad 100644
--- a/resources/assets/js/pages/manage/components/FileContent.vue
+++ b/resources/assets/js/pages/manage/components/FileContent.vue
@@ -68,14 +68,13 @@ Vue.use(Minder)
const MDEditor = () => import('../../../components/MDEditor/index');
const TEditor = () => import('../../../components/TEditor');
-const Flow = () => import('../../../components/Flow');
const AceEditor = () => import('../../../components/AceEditor');
const OnlyOffice = () => import('../../../components/OnlyOffice');
const Drawio = () => import('../../../components/Drawio');
export default {
name: "FileContent",
- components: {AceEditor, TEditor, MDEditor, Flow, OnlyOffice,Drawio},
+ components: {AceEditor, TEditor, MDEditor, OnlyOffice,Drawio},
props: {
value: {
type: Boolean,
diff --git a/resources/assets/js/pages/manage/components/FilePreview.vue b/resources/assets/js/pages/manage/components/FilePreview.vue
index 061e1900..787ebdc7 100644
--- a/resources/assets/js/pages/manage/components/FilePreview.vue
+++ b/resources/assets/js/pages/manage/components/FilePreview.vue
@@ -27,7 +27,7 @@
-
+
@@ -44,13 +44,12 @@ Vue.use(Minder)
const MDPreview = () => import('../../../components/MDEditor/preview');
const TEditor = () => import('../../../components/TEditor');
-const Flow = () => import('../../../components/Flow');
const AceEditor = () => import('../../../components/AceEditor');
const OnlyOffice = () => import('../../../components/OnlyOffice');
export default {
name: "FilePreview",
- components: {AceEditor, TEditor, MDPreview, Flow, OnlyOffice},
+ components: {AceEditor, TEditor, MDPreview, OnlyOffice, Drawio},
props: {
code: {
type: String,
diff --git a/resources/assets/statics/public/js/drawio/viewer.html b/resources/assets/statics/public/js/drawio/viewer.html
new file mode 100644
index 00000000..7f20f76a
--- /dev/null
+++ b/resources/assets/statics/public/js/drawio/viewer.html
@@ -0,0 +1,105 @@
+
+
+
+
+ Grapheditor viewer
+
+
+
+
+
+
+
+
+
+
+
+
+
+