From 9f6889a1033552244b692816bcdd0848b16b4338 Mon Sep 17 00:00:00 2001 From: Matthieu Bessat Date: Wed, 8 Jul 2020 15:44:18 +0200 Subject: [PATCH] update --- src/App.vue | 29 +--------------------------- src/layouts/Admin.vue | 17 ++++++++++++++++ src/layouts/Organization.vue | 17 ++++++++++++++++ src/router/index.ts | 13 +++++++++++++ src/views/Admin/OrganizationList.vue | 13 +++++++++++++ src/views/Home.vue | 15 ++++++-------- 6 files changed, 67 insertions(+), 37 deletions(-) create mode 100644 src/layouts/Admin.vue create mode 100644 src/layouts/Organization.vue create mode 100644 src/views/Admin/OrganizationList.vue diff --git a/src/App.vue b/src/App.vue index 6c26aa6..66d3b85 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,32 +1,5 @@ - - diff --git a/src/layouts/Admin.vue b/src/layouts/Admin.vue new file mode 100644 index 0000000..91c6c26 --- /dev/null +++ b/src/layouts/Admin.vue @@ -0,0 +1,17 @@ + + + + + diff --git a/src/layouts/Organization.vue b/src/layouts/Organization.vue new file mode 100644 index 0000000..2ff359b --- /dev/null +++ b/src/layouts/Organization.vue @@ -0,0 +1,17 @@ + + + + + diff --git a/src/router/index.ts b/src/router/index.ts index 12f6daf..91ad774 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -17,6 +17,19 @@ const routes: Array = [ // this generates a separate chunk (about.[hash].js) for this route // which is lazy-loaded when the route is visited. component: () => import(/* webpackChunkName: "about" */ '../views/About.vue') + }, + + { + path: '/admin', + name: 'AdminLayout', + component: () => import(/* webpackChunkName: "adminLayout" */ '../layouts/Admin.vue'), + children: [ + { + path: '/', + name: 'OrganizationList', + component: () => import(/* webpackChunkName: "organizationList" */ '../views/Admin/OrganizationList.vue') + } + ] } ] diff --git a/src/views/Admin/OrganizationList.vue b/src/views/Admin/OrganizationList.vue new file mode 100644 index 0000000..2b81883 --- /dev/null +++ b/src/views/Admin/OrganizationList.vue @@ -0,0 +1,13 @@ + + + diff --git a/src/views/Home.vue b/src/views/Home.vue index 8bd6c57..d9b41ab 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -1,18 +1,15 @@