gancio-upstream/layouts/default.vue
2022-11-24 17:28:30 +01:00

38 lines
812 B
Vue

<template>
<v-app>
<Appbar/>
<v-main>
<Snackbar/>
<Confirm/>
<nuxt :keep-alive='$route.name === "index"'/>
</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 } 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']),
created () {
this.$vuetify.theme.dark = this.settings['theme.is_dark']
}
}
</script>