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 @@ - - - - -