feat(app): auth, orgs/events UI, router guards, and dev tooling

- Add Sanctum auth flow (store, composables, login, axios interceptors)
- Add dashboard, organisation list/detail, events CRUD dialogs
- Wire router guards, navigation, organisation switcher in layout
- Replace Vuexy @db types in NavSearchBar; add @iconify/types; themeConfig title typing
- Vuetify settings.scss + resolve configFile via fileURLToPath; drop dead path aliases
- Root index redirects to dashboard; fix events table route name
- API: DevSeeder + DatabaseSeeder updates; docs TEST_SCENARIO; corporate identity assets

Made-with: Cursor
This commit is contained in:
2026-04-07 21:51:10 +02:00
parent 0d24506c89
commit c417a6647a
45 changed files with 11554 additions and 832 deletions

View File

@@ -0,0 +1,61 @@
<script setup lang="ts">
import { useAuthStore } from '@/stores/useAuthStore'
const authStore = useAuthStore()
const stats = [
{ title: 'Evenementen', value: 0, icon: 'tabler-calendar-event', color: 'primary' },
{ title: 'Personen', value: 0, icon: 'tabler-users', color: 'success' },
{ title: 'Shifts', value: 0, icon: 'tabler-clock', color: 'warning' },
{ title: 'Briefings', value: 0, icon: 'tabler-mail', color: 'info' },
]
</script>
<template>
<div>
<VCard class="mb-6">
<VCardText>
<h4 class="text-h4 mb-1">
Welkom, {{ authStore.user?.name ?? 'gebruiker' }}! 👋
</h4>
<p class="text-body-1 mb-0">
{{ authStore.currentOrganisation?.name ?? 'Geen organisatie geselecteerd' }}
</p>
</VCardText>
</VCard>
<VRow>
<VCol
v-for="stat in stats"
:key="stat.title"
cols="12"
sm="6"
md="3"
>
<VCard>
<VCardText class="d-flex align-center gap-x-4">
<VAvatar
:color="stat.color"
variant="tonal"
size="44"
rounded
>
<VIcon
:icon="stat.icon"
size="28"
/>
</VAvatar>
<div>
<p class="text-body-1 mb-0">
{{ stat.title }}
</p>
<h4 class="text-h4">
{{ stat.value }}
</h4>
</div>
</VCardText>
</VCard>
</VCol>
</VRow>
</div>
</template>