2022-07-29 13:23:08 +02:00
|
|
|
<script>
|
2023-09-22 05:06:03 +02:00
|
|
|
import CommonMixins from './mixins/CommonMixins'
|
|
|
|
import Notifications from './components/Notifications.vue'
|
|
|
|
import { RouterView } from 'vue-router'
|
2023-09-14 12:30:20 +02:00
|
|
|
import { mailbox } from "./stores/mailbox"
|
2022-07-29 13:23:08 +02:00
|
|
|
|
|
|
|
export default {
|
2023-09-14 12:30:20 +02:00
|
|
|
mixins: [CommonMixins],
|
2022-10-16 00:51:20 +02:00
|
|
|
|
2022-07-29 13:23:08 +02:00
|
|
|
components: {
|
2023-09-14 12:30:20 +02:00
|
|
|
Notifications,
|
2022-07-29 13:23:08 +02:00
|
|
|
},
|
2022-10-16 00:51:20 +02:00
|
|
|
|
2023-09-14 12:30:20 +02:00
|
|
|
beforeMount() {
|
|
|
|
document.title = document.title + ' - ' + location.hostname
|
2023-12-01 04:30:14 +02:00
|
|
|
mailbox.showTagColors = !localStorage.getItem('hideTagColors') == '1'
|
2023-09-22 05:06:03 +02:00
|
|
|
|
|
|
|
// load global config
|
|
|
|
this.get(this.resolve('/api/v1/webui'), false, function (response) {
|
|
|
|
mailbox.uiConfig = response.data
|
|
|
|
})
|
2022-07-29 13:23:08 +02:00
|
|
|
},
|
2022-10-16 00:51:20 +02:00
|
|
|
|
2023-09-22 05:06:03 +02:00
|
|
|
watch: {
|
|
|
|
$route(to, from) {
|
|
|
|
// hide mobile menu on URL change
|
|
|
|
this.hideNav()
|
|
|
|
}
|
2022-07-29 13:23:08 +02:00
|
|
|
},
|
2022-10-16 00:51:20 +02:00
|
|
|
|
2022-07-29 13:23:08 +02:00
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
2023-09-14 12:30:20 +02:00
|
|
|
<RouterView />
|
|
|
|
<Notifications />
|
2022-07-29 13:23:08 +02:00
|
|
|
</template>
|