gancio-upstream/layouts/default.vue

43 lines
881 B
Vue

<template>
<v-app>
<Appbar/>
<v-main>
<Snackbar/>
<Confirm/>
<v-fade-transition hide-on-leave>
<nuxt />
</v-fade-transition>
</v-main>
<Footer/>
</v-app>
</template>
<script>
import Appbar from '../components/Appbar.vue'
import Snackbar from '../components/Snackbar'
import Footer from '../components/Footer'
import Confirm from '../components/Confirm'
import { mapState, mapGetters } from 'vuex'
export default {
head () {
return {
htmlAttrs: {
lang: this.locale
},
link: [{ rel: 'icon', type: 'image/png', href: this.settings.baseurl + '/logo.png' }],
}
},
name: 'Default',
components: { Appbar, Snackbar, Footer, Confirm },
computed: {
...mapState(['settings']),
...mapGetters(['is_dark'])
},
created () {
this.$vuetify.theme.dark = this.is_dark
}
}
</script>