2023-11-04 00:27:28 +01:00
|
|
|
<template>
|
2023-11-04 14:31:48 +01:00
|
|
|
<div id="container">
|
2023-11-09 02:17:51 +01:00
|
|
|
<NavBar />
|
2023-11-04 14:31:48 +01:00
|
|
|
<router-view />
|
|
|
|
</div>
|
2023-11-04 00:27:28 +01:00
|
|
|
</template>
|
|
|
|
|
2023-11-07 09:01:54 +01:00
|
|
|
<script setup>
|
|
|
|
import { useSession } from './stores/session'
|
|
|
|
const session = useSession()
|
2023-11-07 18:55:20 +01:00
|
|
|
session.checkSession()
|
2023-11-07 09:01:54 +01:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<!-- eslint-disable -->
|
|
|
|
<!-- eslint wants to combine this <script> and <script setup> which breaks the code ... -->
|
2023-11-04 00:27:28 +01:00
|
|
|
<script>
|
2023-11-04 14:31:48 +01:00
|
|
|
import NavBar from './components/NavBar'
|
2023-11-04 00:27:28 +01:00
|
|
|
export default {
|
|
|
|
name: 'App',
|
2023-11-04 14:31:48 +01:00
|
|
|
components: { NavBar }
|
2023-11-04 00:27:28 +01:00
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style>
|
2023-11-04 14:31:48 +01:00
|
|
|
html,
|
|
|
|
body {
|
|
|
|
background-color: #091833;
|
|
|
|
color: #ffffff;
|
|
|
|
}
|
|
|
|
|
2023-11-04 00:27:28 +01:00
|
|
|
#app {
|
|
|
|
font-family: Avenir, Helvetica, Arial, sans-serif;
|
|
|
|
-webkit-font-smoothing: antialiased;
|
|
|
|
-moz-osx-font-smoothing: grayscale;
|
|
|
|
text-align: center;
|
2023-11-04 14:31:48 +01:00
|
|
|
color: #ffffff;
|
|
|
|
margin-top: 1em;
|
|
|
|
}
|
|
|
|
|
|
|
|
#container {
|
2023-11-09 02:17:51 +01:00
|
|
|
margin: 1em auto;
|
|
|
|
width: fit-content;
|
2023-11-04 00:27:28 +01:00
|
|
|
}
|
|
|
|
</style>
|