safetwitch/src/App.vue

24 lines
620 B
Vue
Raw Normal View History

2023-03-07 01:19:05 -05:00
<script setup lang="ts">
import { RouterView } from 'vue-router'
2023-03-18 13:49:02 -04:00
import NavbarItem from './components/NavbarView.vue'
2023-07-18 20:26:32 -04:00
import FooterItem from './components/FooterView.vue'
2023-06-13 14:51:35 -04:00
import DevWarning from './components/DevWarning.vue'
2023-09-27 16:43:55 -04:00
import { getTheme } from '@/settingsManager'
2023-06-13 14:51:35 -04:00
const dev = import.meta.env.DEV
2023-03-07 01:19:05 -05:00
</script>
2023-09-27 16:48:45 -04:00
<template>
<dev-warning v-if="dev"></dev-warning>
<div :class="getTheme()" class="flex flex-col justify-between min-h-[100vh] bg-primary">
2023-09-24 11:47:48 -04:00
<navbar-item></navbar-item>
2023-03-18 13:49:02 -04:00
2023-09-24 11:47:48 -04:00
<Suspense>
<RouterView :key="$route.fullPath"/>
</Suspense>
2023-07-18 20:26:32 -04:00
2023-09-24 11:47:48 -04:00
<footer-item></footer-item>
</div>
2023-03-18 13:49:02 -04:00
</template>