GF-6, #8 Added auth.
Some checks failed
Production PR / QA Tests (pull_request) Failing after 13s

This commit is contained in:
Liviu Burcusel 2026-01-07 09:54:06 +01:00
parent e8818d6eaa
commit 10e4363cbd
Signed by: liviu
GPG key ID: 6CDB37A4AD2C610C
60 changed files with 4855 additions and 160 deletions

View file

@ -1,4 +1,5 @@
<script setup lang="ts">
import { useAuthStore } from "~/stores/auth";
import DefaultSidebar from "~/layouts/default/Sidebar.vue";
import { SidebarInset, SidebarProvider, SidebarTrigger } from "~/components/ui/sidebar";
@ -19,11 +20,14 @@ import { useRuntimeConfig } from "#app";
const currentYear = new Date().getFullYear();
const config = useRuntimeConfig();
const authStore = useAuthStore();
await authStore.init();
</script>
<template>
<SidebarProvider>
<DefaultSidebar />
<DefaultSidebar :user="authStore.user" />
<SidebarInset>
<header class="flex h-12 shrink-0 items-center gap-2 border-b px-4">
<SidebarTrigger class="-ml-1" />