From e0981950d6d4b1cb89aadd4cf1a40c4947b43a8b Mon Sep 17 00:00:00 2001 From: Julien Calixte Date: Sun, 25 Apr 2021 17:01:37 +0200 Subject: [PATCH] :fire: (text editor) remove text editor page --- src/router/router.ts | 13 ++--- src/views/ShareNotes.vue | 49 +++++++++++++++++++ src/views/TextEditor.vue | 103 --------------------------------------- 3 files changed, 56 insertions(+), 109 deletions(-) create mode 100644 src/views/ShareNotes.vue delete mode 100644 src/views/TextEditor.vue diff --git a/src/router/router.ts b/src/router/router.ts index 529fe78..a6c4be2 100644 --- a/src/router/router.ts +++ b/src/router/router.ts @@ -3,12 +3,6 @@ import { RouteRecordRaw, createRouter, createWebHistory } from 'vue-router' import Home from '@/views/Home.vue' const routes: Array = [ - { - path: '/text-editor', - name: 'TextEditor', - component: () => - import(/* webpackChunkName: "text-editor" */ '@/views/TextEditor.vue') - }, { path: '/login', name: 'Login', @@ -26,6 +20,13 @@ const routes: Array = [ props: true, component: Home }, + { + path: '/:user/:repo/share/:note', + name: 'ShareNotes', + props: true, + component: () => + import(/* webpackChunkName: "share-notes" */ '@/views/ShareNotes.vue') + }, { path: '/:user/:repo/inbox', name: 'FleetingNotes', diff --git a/src/views/ShareNotes.vue b/src/views/ShareNotes.vue new file mode 100644 index 0000000..90eb36e --- /dev/null +++ b/src/views/ShareNotes.vue @@ -0,0 +1,49 @@ + + + + + diff --git a/src/views/TextEditor.vue b/src/views/TextEditor.vue deleted file mode 100644 index 881fa75..0000000 --- a/src/views/TextEditor.vue +++ /dev/null @@ -1,103 +0,0 @@ - - - - -