2023-09-20 17:34:33 +02:00
|
|
|
<script setup>
|
|
|
|
import { RouterView } from 'vue-router'
|
2023-10-04 09:30:05 +02:00
|
|
|
|
|
|
|
onMounted(async () => {
|
|
|
|
const { useUserStore } = await import('./stores/user.js');
|
|
|
|
const { language } = useNavigatorLanguage()
|
|
|
|
|
|
|
|
watch(language, () => {
|
|
|
|
useUserStore().applyLanguage()
|
|
|
|
})
|
|
|
|
})
|
2023-09-20 17:34:33 +02:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
2023-09-21 17:10:12 +02:00
|
|
|
<notifications id="vueNotification" role="alert" width="100%" position="top" :duration="4000" :speed="0" :max="1" classes="notification is-radiusless" />
|
2023-09-20 17:34:33 +02:00
|
|
|
<main class="main-section">
|
|
|
|
<RouterView />
|
|
|
|
</main>
|
|
|
|
</template>
|