frequi_origin/src/App.vue
Matthias 36e9937c7f Re-implement Toast workaround
works around broken design of useToast in bootstrap-vue-next.
2024-02-11 09:26:53 +01:00

42 lines
950 B
Vue

<template>
<div id="app" class="d-flex flex-column dvh-100" :style="colorStore.cssVars">
<NavBar />
<BaseAlert></BaseAlert>
<BodyLayout class="flex-fill overflow-auto" />
<NavFooter />
</div>
</template>
<script setup lang="ts">
import { setTimezone } from './shared/formatters';
import { useSettingsStore } from './stores/settings';
import { useColorStore } from './stores/colors';
const settingsStore = useSettingsStore();
const colorStore = useColorStore();
onMounted(() => {
setTimezone(settingsStore.timezone);
colorStore.updateProfitLossColor();
});
watch(
() => settingsStore.timezone,
(tz) => {
console.log('timezone changed', tz);
setTimezone(tz);
},
);
</script>
<style scoped>
#app {
font-family: Avenir, Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
}
/* * {
outline: 1px solid #f00 !important;
} */
</style>