gancio/layouts/default.vue

39 lines
891 B
Vue
Raw Normal View History

2020-01-15 23:27:11 +01:00
<template lang='pug'>
2020-07-25 21:41:22 +02:00
v-app(app)
Snackbar
2020-07-28 12:24:39 +02:00
Confirm
2020-07-25 21:41:22 +02:00
Nav
2020-07-28 12:24:39 +02:00
2020-07-25 21:41:22 +02:00
v-main(app)
2020-07-31 01:03:19 +02:00
v-fade-transition(hide-on-leave)
2020-07-25 21:41:22 +02:00
nuxt
Footer
2019-04-03 00:25:12 +02:00
</template>
2020-01-15 23:27:11 +01:00
<script>
import Nav from '~/components/Nav.vue'
2020-02-10 00:45:51 +01:00
import FollowMe from '../components/FollowMe'
2020-07-25 21:41:22 +02:00
import Snackbar from '../components/Snackbar'
import Footer from '../components/Footer'
2020-07-28 12:24:39 +02:00
import Confirm from '../components/Confirm'
2020-07-29 00:25:45 +02:00
import { mapState } from 'vuex'
2020-02-05 00:42:05 +01:00
2020-01-15 23:27:11 +01:00
export default {
2020-07-25 21:41:22 +02:00
name: 'Default',
2020-07-28 12:24:39 +02:00
components: { Nav, FollowMe, Snackbar, Footer, Confirm },
2020-07-29 00:25:45 +02:00
computed: mapState(['settings']),
created () {
this.$vuetify.theme.dark = this.settings['theme.is_dark']
this.$vuetify.theme.themes.dark.primary = this.settings['theme.primary']
2020-07-31 01:03:19 +02:00
this.$vuetify.theme.themes.light.primary = this.settings['theme.primary']
2020-07-29 00:25:45 +02:00
}
2020-01-15 23:27:11 +01:00
}
2020-07-25 21:41:22 +02:00
</script>
<style lang="less">
.v-dialog {
width: unset !important;
max-width: 600px;
}
</style>