From 589bb7fd45f796dd95e27034c4d57600a2115d54 Mon Sep 17 00:00:00 2001 From: yutent Date: Thu, 13 Apr 2023 17:13:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/code-editor.vue | 20 ++++++-- src/pages/index/app.vue | 12 +++++ src/pages/index/main.js | 6 +++ src/pages/playground/app.vue | 47 +++++++++++++++++-- src/pages/playground/main.js | 2 +- src/pages/playground/view/about.vue | 18 ------- .../{view/home.vue => views/preview.vue} | 17 ++++--- src/pages/playground/views/topbar.vue | 38 +++++++++++++++ vue.live.js | 4 ++ 9 files changed, 131 insertions(+), 33 deletions(-) create mode 100644 src/pages/index/app.vue delete mode 100644 src/pages/playground/view/about.vue rename src/pages/playground/{view/home.vue => views/preview.vue} (51%) create mode 100644 src/pages/playground/views/topbar.vue diff --git a/src/components/code-editor.vue b/src/components/code-editor.vue index fb52237..346ae82 100644 --- a/src/components/code-editor.vue +++ b/src/components/code-editor.vue @@ -1,9 +1,16 @@ diff --git a/src/pages/index/main.js b/src/pages/index/main.js index e69de29..ca3de47 100644 --- a/src/pages/index/main.js +++ b/src/pages/index/main.js @@ -0,0 +1,6 @@ +import { createApp } from 'vue' +import App from './app.vue' + +const app = createApp(App) + +app.mount('.app') diff --git a/src/pages/playground/app.vue b/src/pages/playground/app.vue index e2c9953..086bb3e 100644 --- a/src/pages/playground/app.vue +++ b/src/pages/playground/app.vue @@ -1,13 +1,54 @@ - + diff --git a/src/pages/playground/main.js b/src/pages/playground/main.js index 0736249..c5f2f19 100644 --- a/src/pages/playground/main.js +++ b/src/pages/playground/main.js @@ -5,4 +5,4 @@ import store from './store' const app = createApp(App) -app.use(router).use(store).mount('.app') +app.use(store).mount('.app') diff --git a/src/pages/playground/view/about.vue b/src/pages/playground/view/about.vue deleted file mode 100644 index 24aa159..0000000 --- a/src/pages/playground/view/about.vue +++ /dev/null @@ -1,18 +0,0 @@ - - - - - diff --git a/src/pages/playground/view/home.vue b/src/pages/playground/views/preview.vue similarity index 51% rename from src/pages/playground/view/home.vue rename to src/pages/playground/views/preview.vue index 987c694..7458b74 100644 --- a/src/pages/playground/view/home.vue +++ b/src/pages/playground/views/preview.vue @@ -1,7 +1,10 @@ + - - + diff --git a/src/pages/playground/views/topbar.vue b/src/pages/playground/views/topbar.vue new file mode 100644 index 0000000..411edb9 --- /dev/null +++ b/src/pages/playground/views/topbar.vue @@ -0,0 +1,38 @@ + + + + + diff --git a/vue.live.js b/vue.live.js index 27187d7..9c8401e 100644 --- a/vue.live.js +++ b/vue.live.js @@ -12,6 +12,10 @@ export default { } }, pages: { + index: { + entry: resolve('./src/pages/index/main.js'), + title: 'home page' + }, playground: { entry: resolve('./src/pages/playground/main.js'), title: '@bd/ui Playground'