From 61e1cdfcf0d7c5cc25af4485f821dc8c0ca17bcd Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Tue, 25 Dec 2018 22:46:21 +0000 Subject: [PATCH] Move sidbar into a component --- src/components/Sidebar.vue | 31 +++++++++++++++++++++++++++++++ src/main.js | 2 ++ src/views/Applications.vue | 29 +++++------------------------ src/views/Environments.vue | 36 ++++++------------------------------ 4 files changed, 44 insertions(+), 54 deletions(-) create mode 100644 src/components/Sidebar.vue diff --git a/src/components/Sidebar.vue b/src/components/Sidebar.vue new file mode 100644 index 0000000..68c16a1 --- /dev/null +++ b/src/components/Sidebar.vue @@ -0,0 +1,31 @@ + + + diff --git a/src/main.js b/src/main.js index 643b8b7..1c26654 100644 --- a/src/main.js +++ b/src/main.js @@ -4,9 +4,11 @@ import router from './router' Vue.config.productionTip = false +import Sidebar from '@/components/Sidebar' import Navbar from '@/components/Navbar' Vue.component('navbar', Navbar); +Vue.component('sidebar', Sidebar); new Vue({ render: h => h(App), diff --git a/src/views/Applications.vue b/src/views/Applications.vue index c888c8f..2ed1ac2 100644 --- a/src/views/Applications.vue +++ b/src/views/Applications.vue @@ -52,30 +52,11 @@ -
-
- -
-
+ diff --git a/src/views/Environments.vue b/src/views/Environments.vue index 984d5fd..a2f06ec 100644 --- a/src/views/Environments.vue +++ b/src/views/Environments.vue @@ -75,36 +75,12 @@ -
-
- -
-
+