mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-24 12:05:16 +00:00
48 lines
1.1 KiB
Vue
48 lines
1.1 KiB
Vue
<template>
|
|
<div id="app" class="d-flex flex-column vh-100">
|
|
<NavBar />
|
|
<Body class="flex-fill overflow-auto" />
|
|
<NavFooter />
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import NavBar from '@/components/layout/NavBar.vue';
|
|
import NavFooter from '@/components/layout/NavFooter.vue';
|
|
import Body from '@/components/layout/Body.vue';
|
|
import { setTimezone } from './shared/formatters';
|
|
import { defineComponent, onMounted, watch } from 'vue';
|
|
import { useSettingsStore } from './stores/settings';
|
|
export default defineComponent({
|
|
name: 'App',
|
|
components: { NavBar, Body, NavFooter },
|
|
setup() {
|
|
const settingsStore = useSettingsStore();
|
|
onMounted(() => {
|
|
setTimezone(settingsStore.timezone);
|
|
});
|
|
watch(
|
|
() => settingsStore.timezone,
|
|
(tz) => {
|
|
console.log('timezone changed', tz);
|
|
setTimezone(tz);
|
|
},
|
|
);
|
|
return {};
|
|
},
|
|
});
|
|
</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>
|