feat(fe): added header

ToDo: connect clock to shows, style corrections
This commit is contained in:
Marco Cavalli 2025-03-04 17:10:30 +01:00
parent 0b570a25af
commit 75d56a1b7b
3 changed files with 16 additions and 6 deletions

View file

@ -1,13 +1,23 @@
<script setup lang="ts">
import axios from "axios";
import {useAuthStore} from "@/stores/auth.store.ts";
import {computed, ref} from "vue";
const auth = useAuthStore();
const timezone = auth.userData.timezone;
const time = ref(new Date().toLocaleString("it-IT", {timeZone: timezone}));
setInterval(() => {
time.value = new Date().toLocaleString("it-IT", {timeZone: timezone});
}, 1000)
</script>
<template>
<div class="timer">
<span>
{{ time }}
</span>
</div>
</template>
<style scoped>