1
0
mirror of https://github.com/axllent/mailpit.git synced 2025-01-24 03:47:38 +02:00

41 lines
811 B
Vue
Raw Normal View History

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