IT-Service: Baumstruktur, HTML-Antworten, Fehlermeldungen, geschlossene Tickets, Meine IT im Profilkasten
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 3m31s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 3m39s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 3m57s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 3m46s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 5m9s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 5m13s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 4m30s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 4m27s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m7s

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Friederich Loheide 2026-09-26 20:30:24 +00:00
parent ab35a67406
commit 50ee85c06b
119 changed files with 611 additions and 463 deletions

View file

@ -1,13 +1,19 @@
<script setup>
import { computed } from 'vue';
import { Link } from '@inertiajs/vue3';
import { LogOut, Settings, UserRound, UserRoundPen } from '@lucide/vue';
import AppIcon from '@/components/AppIcon.vue';
import PersonAvatar from '@/components/PersonAvatar.vue';
defineProps({
const props = defineProps({
user: { type: Object, required: true },
profile: { type: Object, required: true },
greeting: { type: String, required: true },
// Zusätzliche Knöpfe aus Plugins (z. B. „Meine IT“)
actions: { type: Array, default: () => [] },
});
const columns = computed(() => ({ 3: 'grid-cols-3', 4: 'grid-cols-4', 5: 'grid-cols-5' })[Math.min(5, 3 + props.actions.length)]);
</script>
<template>
@ -22,7 +28,7 @@ defineProps({
</div>
<PersonAvatar :person="user" class="size-16 shrink-0 text-lg ring-4 ring-white/25 xl:size-20 xl:text-xl" />
</div>
<nav class="grid grid-cols-3 divide-x" aria-label="Mein Bereich">
<nav class="grid divide-x" :class="columns" aria-label="Mein Bereich">
<Link :href="`/personen/${user.id}`" class="flex flex-col items-center gap-2 px-2 py-4 text-center text-xs font-medium text-foreground/80 hover:bg-accent hover:text-foreground">
<UserRound class="size-5 text-brand-text" :stroke-width="1.75" />
Mein Profil
@ -31,6 +37,15 @@ defineProps({
<UserRoundPen class="size-5 text-brand-text" :stroke-width="1.75" />
Profil bearbeiten
</Link>
<Link
v-for="action in actions"
:key="action.href"
:href="action.href"
class="flex flex-col items-center gap-2 px-2 py-4 text-center text-xs font-medium text-foreground/80 hover:bg-accent hover:text-foreground"
>
<AppIcon :name="action.icon || 'link'" class="size-5 text-brand-text" :stroke-width="1.75" />
{{ action.label }}
</Link>
<a v-if="user.can_admin" href="/admin" class="flex flex-col items-center gap-2 px-2 py-4 text-center text-xs font-medium text-foreground/80 hover:bg-accent hover:text-foreground">
<Settings class="size-5 text-brand-text" :stroke-width="1.75" />
Administration