From 754ab3351445651275631c65ae997f4e2ef84704 Mon Sep 17 00:00:00 2001 From: Thomas Ballmann Date: Tue, 17 Mar 2020 16:18:05 +0100 Subject: [PATCH] feature complete #1 --- app/src/App.vue | 9 +- app/src/components/ScreenCard.vue | 55 ++-------- app/src/components/TransitionPage.vue | 139 ++++++++++++++++++++++++++ app/src/router/index.js | 10 +- app/src/views/Dashboard.vue | 4 +- app/src/views/Settings.vue | 6 ++ 6 files changed, 165 insertions(+), 58 deletions(-) create mode 100644 app/src/components/TransitionPage.vue diff --git a/app/src/App.vue b/app/src/App.vue index 9993820..d5a7866 100644 --- a/app/src/App.vue +++ b/app/src/App.vue @@ -68,7 +68,9 @@ - + + + @@ -78,9 +80,12 @@ + + \ No newline at end of file diff --git a/app/src/router/index.js b/app/src/router/index.js index 14c29e5..e66570f 100644 --- a/app/src/router/index.js +++ b/app/src/router/index.js @@ -3,8 +3,8 @@ import VueRouter from 'vue-router' const Dashboard = () => import(/* webpackChunkName: "dashboard" */ '../views/Dashboard') const Settings = () => import(/* webpackChunkName: "settings" */ '../views/Settings') -const Wifi = () => import(/* webpackChunkName: "wifi" */ '../views/Wifi') -const Sandbox = () => import(/* webpackChunkName: "sandbox" */ '../views/Sandbox') +//const Wifi = () => import(/* webpackChunkName: "wifi" */ '../views/Wifi') +//const Sandbox = () => import(/* webpackChunkName: "sandbox" */ '../views/Sandbox') Vue.use(VueRouter); @@ -12,9 +12,9 @@ Vue.use(VueRouter); export default new VueRouter({ routes: [ { path: '/', component: Dashboard }, - { path: '/settings', component: Settings }, - { path: '/wifi', component: Wifi }, - { path: '/sandbox', component: Sandbox }, + { path: '/settings', component: Settings, meta: { transitionName: 'slide' } }, + //{ path: '/wifi', component: Wifi }, + //{ path: '/sandbox', component: Sandbox }, { path: '*', redirect: '/' } ], diff --git a/app/src/views/Dashboard.vue b/app/src/views/Dashboard.vue index 61136b3..95792be 100644 --- a/app/src/views/Dashboard.vue +++ b/app/src/views/Dashboard.vue @@ -6,9 +6,7 @@ - - - + diff --git a/app/src/views/Settings.vue b/app/src/views/Settings.vue index efb82de..3f62552 100644 --- a/app/src/views/Settings.vue +++ b/app/src/views/Settings.vue @@ -133,6 +133,10 @@ + + i8n:cancel + + i8n:Save @@ -242,6 +246,8 @@ export default { console.log(data); this.isLoading = false; this.isSnackbar = true; + + this.$router.push("/"); }); } }