2022-05-03 11:43:38 +02:00
|
|
|
<template>
|
2022-11-09 10:19:12 +01:00
|
|
|
<v-app>
|
2022-11-19 13:20:15 +01:00
|
|
|
<Appbar/>
|
|
|
|
<v-main>
|
2022-11-15 17:37:13 +01:00
|
|
|
<Snackbar/>
|
|
|
|
<Confirm/>
|
2023-01-12 14:40:14 +01:00
|
|
|
<v-fade-transition hide-on-leave>
|
|
|
|
<nuxt />
|
|
|
|
</v-fade-transition>
|
2024-05-16 17:59:30 +02:00
|
|
|
</v-main>
|
2022-05-03 11:43:38 +02:00
|
|
|
<Footer/>
|
2020-07-28 12:24:39 +02:00
|
|
|
|
2022-05-03 11:43:38 +02:00
|
|
|
</v-app>
|
2020-07-25 21:41:22 +02:00
|
|
|
|
|
|
|
|
2019-04-03 00:25:12 +02:00
|
|
|
</template>
|
2020-01-15 23:27:11 +01:00
|
|
|
<script>
|
2022-11-19 13:20:15 +01:00
|
|
|
import Appbar from '../components/Appbar.vue'
|
2024-03-18 09:55:22 +01:00
|
|
|
import Snackbar from '../components/Snackbar.vue'
|
|
|
|
import Footer from '../components/Footer.vue'
|
|
|
|
import Confirm from '../components/Confirm.vue'
|
2023-02-03 21:55:33 +01:00
|
|
|
import { mapState, mapGetters } from 'vuex'
|
2020-02-05 00:42:05 +01:00
|
|
|
|
2020-01-15 23:27:11 +01:00
|
|
|
export default {
|
2021-12-02 12:12:16 +01:00
|
|
|
head () {
|
2024-07-25 16:33:18 +02:00
|
|
|
const custom_script = [{ type: 'application/javascript', defer: true, src: '/custom_js', body: true }]
|
|
|
|
const custom_style = [{ rel: 'stylesheet', href: this.settings.baseurl + '/custom_css'}]
|
2021-12-02 12:12:16 +01:00
|
|
|
return {
|
|
|
|
htmlAttrs: {
|
|
|
|
lang: this.locale
|
2022-06-23 15:51:03 +02:00
|
|
|
},
|
2024-07-25 16:33:18 +02:00
|
|
|
link: [
|
|
|
|
{ rel: 'icon', type: 'image/png', href: this.settings.baseurl + '/logo.png' },
|
|
|
|
...custom_style
|
|
|
|
],
|
|
|
|
script: [
|
|
|
|
{ src: '/gancio-events.es.js', body: true, defer: true },
|
|
|
|
...custom_script
|
|
|
|
]
|
2021-12-02 12:12:16 +01:00
|
|
|
}
|
|
|
|
},
|
2020-07-25 21:41:22 +02:00
|
|
|
name: 'Default',
|
2022-11-19 13:20:15 +01:00
|
|
|
components: { Appbar, Snackbar, Footer, Confirm },
|
2023-02-03 21:55:33 +01:00
|
|
|
computed: {
|
|
|
|
...mapState(['settings']),
|
|
|
|
...mapGetters(['is_dark'])
|
|
|
|
},
|
2020-07-29 00:25:45 +02:00
|
|
|
created () {
|
2024-05-20 12:33:00 +02:00
|
|
|
try {
|
|
|
|
this.$vuetify.theme.dark = this.is_dark
|
|
|
|
} catch (e) {
|
|
|
|
console.error(e)
|
|
|
|
}
|
2020-07-29 00:25:45 +02:00
|
|
|
}
|
2020-01-15 23:27:11 +01:00
|
|
|
}
|
2021-05-19 16:17:48 +02:00
|
|
|
</script>
|