2019-03-30 22:55:48 +00:00
|
|
|
<template>
|
2019-09-14 21:19:10 +00:00
|
|
|
<div id="app" class="font-sans bg-blue-900 antialiased min-h-screen">
|
2019-11-03 17:49:58 +00:00
|
|
|
<SVGContainer />
|
2019-08-23 14:48:16 +00:00
|
|
|
<NotificationsContainer />
|
2019-12-03 20:57:52 +00:00
|
|
|
<component :is="layout">
|
|
|
|
|
<router-view />
|
|
|
|
|
</component>
|
2019-03-30 22:55:48 +00:00
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
2019-11-23 12:38:35 +00:00
|
|
|
import { mapActions } from 'vuex'
|
2019-12-03 20:57:52 +00:00
|
|
|
import Default from '@/layouts/Default.vue'
|
|
|
|
|
import Home from '@/layouts/Home.vue'
|
2019-08-22 22:50:00 +00:00
|
|
|
import NotificationsContainer from '@/components/NotificationsContainer.vue'
|
2019-11-03 17:49:58 +00:00
|
|
|
import SVGContainer from '@/components/SVGContainer.vue'
|
2019-08-22 22:50:00 +00:00
|
|
|
|
2019-03-30 22:55:48 +00:00
|
|
|
export default {
|
2019-08-22 22:50:00 +00:00
|
|
|
components: {
|
2019-12-03 20:57:52 +00:00
|
|
|
Default,
|
|
|
|
|
Home,
|
2019-11-03 17:49:58 +00:00
|
|
|
NotificationsContainer,
|
|
|
|
|
SVGContainer
|
2019-03-30 22:55:48 +00:00
|
|
|
},
|
2019-11-23 12:38:35 +00:00
|
|
|
|
2019-12-03 20:57:52 +00:00
|
|
|
computed: {
|
|
|
|
|
layout() {
|
|
|
|
|
return (this.$route.meta.layout || 'Default')
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
2019-11-23 12:38:35 +00:00
|
|
|
created() {
|
|
|
|
|
this.updatePercent()
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
methods: {
|
|
|
|
|
...mapActions('settings', ['updatePercent']),
|
|
|
|
|
}
|
2019-03-30 22:55:48 +00:00
|
|
|
}
|
|
|
|
|
</script>
|