traefik/webui/src/App.vue
2020-02-27 21:30:04 +01:00

30 lines
493 B
Vue

<template>
<div id="q-app">
<router-view />
</div>
</template>
<script>
import { APP } from './_helpers/APP'
export default {
name: 'App',
beforeCreate () {
// Set vue instance
APP.vue = () => this.$root
// debug
console.log('Quasar -> ', this.$q.version)
this.$q.dark.set(localStorage.getItem('traefik-dark') === 'true')
},
watch: {
'$q.dark.isActive' (val) {
localStorage.setItem('traefik-dark', val)
}
}
}
</script>
<style>
</style>