2020-05-04 04:31:12 +00:00
|
|
|
<template>
|
2023-10-18 05:19:12 +00:00
|
|
|
<div id="app" class="d-flex flex-column vh-100" :style="colorStore.cssVars">
|
2021-12-19 15:57:22 +00:00
|
|
|
<NavBar />
|
2023-09-23 14:20:57 +00:00
|
|
|
<BToaster></BToaster>
|
2023-04-13 04:44:12 +00:00
|
|
|
<BodyLayout class="flex-fill overflow-auto" />
|
2021-12-19 19:14:35 +00:00
|
|
|
<NavFooter />
|
2020-09-12 14:29:41 +00:00
|
|
|
</div>
|
2020-05-04 04:31:12 +00:00
|
|
|
</template>
|
2020-05-17 18:22:03 +00:00
|
|
|
|
2023-05-09 18:04:57 +00:00
|
|
|
<script setup lang="ts">
|
2021-12-19 15:57:22 +00:00
|
|
|
import NavBar from '@/components/layout/NavBar.vue';
|
2021-12-19 19:14:35 +00:00
|
|
|
import NavFooter from '@/components/layout/NavFooter.vue';
|
2023-04-13 04:44:12 +00:00
|
|
|
import BodyLayout from '@/components/layout/BodyLayout.vue';
|
2021-07-01 18:19:51 +00:00
|
|
|
import { setTimezone } from './shared/formatters';
|
2023-05-09 18:04:57 +00:00
|
|
|
import { onMounted, watch } from 'vue';
|
2022-04-13 19:28:04 +00:00
|
|
|
import { useSettingsStore } from './stores/settings';
|
2023-10-18 04:56:22 +00:00
|
|
|
import { useColorStore } from './stores/colors';
|
2023-05-09 18:04:57 +00:00
|
|
|
const settingsStore = useSettingsStore();
|
2023-10-18 04:56:22 +00:00
|
|
|
const colorStore = useColorStore();
|
2023-05-09 18:04:57 +00:00
|
|
|
onMounted(() => {
|
|
|
|
setTimezone(settingsStore.timezone);
|
2023-10-18 04:56:22 +00:00
|
|
|
colorStore.updateProfitLossColor();
|
2022-04-13 19:28:04 +00:00
|
|
|
});
|
2023-05-09 18:04:57 +00:00
|
|
|
watch(
|
|
|
|
() => settingsStore.timezone,
|
|
|
|
(tz) => {
|
|
|
|
console.log('timezone changed', tz);
|
|
|
|
setTimezone(tz);
|
|
|
|
},
|
|
|
|
);
|
2020-05-06 19:24:12 +00:00
|
|
|
</script>
|
2020-05-06 17:38:52 +00:00
|
|
|
|
2020-09-12 14:29:41 +00:00
|
|
|
<style scoped>
|
|
|
|
#app {
|
|
|
|
font-family: Avenir, Helvetica, Arial, sans-serif;
|
|
|
|
-webkit-font-smoothing: antialiased;
|
|
|
|
-moz-osx-font-smoothing: grayscale;
|
|
|
|
text-align: center;
|
|
|
|
}
|
2021-06-25 18:00:40 +00:00
|
|
|
|
|
|
|
/* * {
|
|
|
|
outline: 1px solid #f00 !important;
|
|
|
|
} */
|
2020-09-12 14:29:41 +00:00
|
|
|
</style>
|