From 31dbe94707811d06b2f12e7064a39e1da54d0679 Mon Sep 17 00:00:00 2001 From: flykhan Date: Thu, 23 Feb 2023 17:46:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9B=E5=BB=BA=E6=88=91=E7=9A=84=20Bot=20?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=20+=20=E6=B7=BB=E5=8A=A0=20VAceEditor=20?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/package-lock.json | 21 ++ web/package.json | 1 + web/src/views/user/bot/UserBotIndexView.vue | 313 +++++++++++++++----- 3 files changed, 260 insertions(+), 75 deletions(-) diff --git a/web/package-lock.json b/web/package-lock.json index 7966c8a..deb5821 100644 --- a/web/package-lock.json +++ b/web/package-lock.json @@ -14,6 +14,7 @@ "jquery": "^3.6.3", "vue": "^3.2.13", "vue-router": "^4.0.3", + "vue3-ace-editor": "^2.2.2", "vuex": "^4.0.0" }, "devDependencies": { @@ -3227,6 +3228,11 @@ "node": ">= 0.6" } }, + "node_modules/ace-builds": { + "version": "1.15.2", + "resolved": "https://registry.npmmirror.com/ace-builds/-/ace-builds-1.15.2.tgz", + "integrity": "sha512-ANXWnANcB4XgC9tyCtG8EXjeDdDY6iJuPQs+pDiZF/2chQMU7LTOBgw9xJdeRzRyNX5+KGZKwgB80XyY2n5QvA==" + }, "node_modules/acorn": { "version": "8.8.1", "resolved": "https://registry.npmmirror.com/acorn/-/acorn-8.8.1.tgz", @@ -9010,6 +9016,11 @@ "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==", "dev": true }, + "node_modules/resize-observer-polyfill": { + "version": "1.5.1", + "resolved": "https://registry.npmmirror.com/resize-observer-polyfill/-/resize-observer-polyfill-1.5.1.tgz", + "integrity": "sha512-LwZrotdHOo12nQuZlHEmtuXdqGoOD0OhaxopaNFxWzInpEgaLWoVuAMbTzixuosCx2nEG58ngzW3vxdWoxIgdg==" + }, "node_modules/resolve": { "version": "1.22.1", "resolved": "https://registry.npmmirror.com/resolve/-/resolve-1.22.1.tgz", @@ -10368,6 +10379,16 @@ "integrity": "sha512-4gDntzrifFnCEvyoO8PqyJDmguXgVPxKiIxrBKjIowvL9l+N66196+72XVYR8BBf1Uv1Fgt3bGevJ+sEmxfZzw==", "dev": true }, + "node_modules/vue3-ace-editor": { + "version": "2.2.2", + "resolved": "https://registry.npmmirror.com/vue3-ace-editor/-/vue3-ace-editor-2.2.2.tgz", + "integrity": "sha512-fZ6OWosbU+odLrtrcGC/536QjCigujYJB0Hf6/tBp+ef/ohTadwQAqyBlVzOmvrmzZyubphpV9zkaZcx5Fuivw==", + "dependencies": { + "ace-builds": "^1.4.13", + "resize-observer-polyfill": "^1.5.1", + "vue": "^3.2.26" + } + }, "node_modules/vuex": { "version": "4.1.0", "resolved": "https://registry.npmmirror.com/vuex/-/vuex-4.1.0.tgz", diff --git a/web/package.json b/web/package.json index 681ca46..a979ef8 100644 --- a/web/package.json +++ b/web/package.json @@ -14,6 +14,7 @@ "jquery": "^3.6.3", "vue": "^3.2.13", "vue-router": "^4.0.3", + "vue3-ace-editor": "^2.2.2", "vuex": "^4.0.0" }, "devDependencies": { diff --git a/web/src/views/user/bot/UserBotIndexView.vue b/web/src/views/user/bot/UserBotIndexView.vue index d976e3c..4f64bc0 100644 --- a/web/src/views/user/bot/UserBotIndexView.vue +++ b/web/src/views/user/bot/UserBotIndexView.vue @@ -1,96 +1,259 @@