2019-07-15 08:58:03 +00:00
|
|
|
<template>
|
2019-08-26 16:15:41 +00:00
|
|
|
<div id="q-app">
|
2019-07-15 08:58:03 +00:00
|
|
|
<router-view />
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
2019-08-12 15:48:04 +00:00
|
|
|
<script>
|
2019-08-26 16:15:41 +00:00
|
|
|
import { APP } from './_helpers/APP'
|
2021-03-22 18:18:04 +00:00
|
|
|
import { mapGetters } from 'vuex'
|
2019-08-26 16:15:41 +00:00
|
|
|
|
2019-08-12 15:48:04 +00:00
|
|
|
export default {
|
2019-08-26 16:15:41 +00:00
|
|
|
name: 'App',
|
2021-03-22 18:18:04 +00:00
|
|
|
computed: {
|
2022-03-18 10:06:08 +00:00
|
|
|
...mapGetters('core', { coreVersion: 'version' })
|
2021-03-22 18:18:04 +00:00
|
|
|
},
|
2019-08-26 16:15:41 +00:00
|
|
|
beforeCreate () {
|
|
|
|
// Set vue instance
|
|
|
|
APP.vue = () => this.$root
|
|
|
|
|
|
|
|
// debug
|
|
|
|
console.log('Quasar -> ', this.$q.version)
|
2020-02-27 20:30:04 +00:00
|
|
|
|
|
|
|
this.$q.dark.set(localStorage.getItem('traefik-dark') === 'true')
|
|
|
|
},
|
|
|
|
watch: {
|
|
|
|
'$q.dark.isActive' (val) {
|
|
|
|
localStorage.setItem('traefik-dark', val)
|
|
|
|
}
|
2019-08-12 15:48:04 +00:00
|
|
|
}
|
2019-08-26 16:15:41 +00:00
|
|
|
}
|
2019-08-12 15:48:04 +00:00
|
|
|
</script>
|
|
|
|
|
2019-08-26 16:15:41 +00:00
|
|
|
<style>
|
2019-07-15 08:58:03 +00:00
|
|
|
</style>
|