From ded9426742a29deb5caadc811aff2efd5bcfc7eb Mon Sep 17 00:00:00 2001 From: Ramon Wenger Date: Wed, 22 Aug 2018 18:19:51 +0200 Subject: [PATCH] Add simple layout --- client/src/App.vue | 3 +- client/src/components/RoomEntry.vue | 4 +-- client/src/components/images/Cross.vue | 6 ++++ client/src/layouts/DefaultLayout.vue | 2 +- client/src/layouts/SimpleLayout.vue | 44 +++++++++++++++++++++++++- client/src/pages/room.vue | 4 +-- client/src/router/index.js | 2 +- 7 files changed, 57 insertions(+), 8 deletions(-) create mode 100644 client/src/components/images/Cross.vue diff --git a/client/src/App.vue b/client/src/App.vue index 0fcf7d44..06073bef 100644 --- a/client/src/App.vue +++ b/client/src/App.vue @@ -16,7 +16,8 @@ computed: { layout() { - return 'default-layout'; + console.log(this.$route.meta.layout); + return (this.$route.meta.layout || 'default') + '-layout'; } }, diff --git a/client/src/components/RoomEntry.vue b/client/src/components/RoomEntry.vue index 2264f1e8..c287d233 100644 --- a/client/src/components/RoomEntry.vue +++ b/client/src/components/RoomEntry.vue @@ -1,5 +1,5 @@ diff --git a/client/src/layouts/SimpleLayout.vue b/client/src/layouts/SimpleLayout.vue index a44ab87b..f4b6c493 100644 --- a/client/src/layouts/SimpleLayout.vue +++ b/client/src/layouts/SimpleLayout.vue @@ -1,3 +1,45 @@ + + + + diff --git a/client/src/pages/room.vue b/client/src/pages/room.vue index 9a6287d2..df9bb94a 100644 --- a/client/src/pages/room.vue +++ b/client/src/pages/room.vue @@ -22,8 +22,8 @@