Oberfläche Mitarbeiter-App umschaltbar (0.52.0)
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 14m38s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 14m13s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 11m56s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 11m44s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 56m9s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 1h2m6s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 10m30s
CI / Bekannte Sicherheitslücken in Paketen (pull_request) Successful in 47s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m16s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 9m13s
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 14m38s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 14m13s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 11m56s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 11m44s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 56m9s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 1h2m6s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 10m30s
CI / Bekannte Sicherheitslücken in Paketen (pull_request) Successful in 47s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m16s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 9m13s
Einstellung interface (classic|app) im Erscheinungsbild; data-ui am Wurzelelement, warme Tokens, Karten mit Schatten, Menüpunkte als Pillen; Startseite dreispaltig. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
d79c6284e1
commit
38f47f98e2
145 changed files with 656 additions and 379 deletions
|
|
@ -18,7 +18,7 @@ const columns = computed(() => ({ 3: 'grid-cols-3', 4: 'grid-cols-4', 5: 'grid-c
|
|||
</script>
|
||||
|
||||
<template>
|
||||
<section class="overflow-hidden rounded-lg border bg-card">
|
||||
<section class="@container overflow-hidden rounded-lg border bg-card">
|
||||
<CoverBanner :image="user.cover_url" class="flex items-center justify-between gap-4 px-6 py-6 text-brand-foreground">
|
||||
<div class="min-w-0">
|
||||
<div class="text-sm opacity-85">{{ greeting }},</div>
|
||||
|
|
@ -29,12 +29,13 @@ const columns = computed(() => ({ 3: 'grid-cols-3', 4: 'grid-cols-4', 5: 'grid-c
|
|||
</div>
|
||||
<PersonAvatar :person="user" class="size-16 shrink-0 text-lg ring-4 ring-white/25 xl:size-20 xl:text-xl" />
|
||||
</CoverBanner>
|
||||
<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">
|
||||
<!-- In schmalen Spalten (Mitarbeiter-App) zwei Knöpfe je Zeile -->
|
||||
<nav class="grid divide-x @max-[22rem]:grid-cols-2! @max-[22rem]:gap-px @max-[22rem]:divide-x-0 @max-[22rem]:bg-border" :class="columns" aria-label="Mein Bereich">
|
||||
<Link :href="`/personen/${user.id}`" class="flex flex-col items-center gap-2 bg-card 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
|
||||
</Link>
|
||||
<Link href="/profil/bearbeiten" 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">
|
||||
<Link href="/profil/bearbeiten" class="flex flex-col items-center gap-2 bg-card px-2 py-4 text-center text-xs font-medium text-foreground/80 hover:bg-accent hover:text-foreground">
|
||||
<UserRoundPen class="size-5 text-brand-text" :stroke-width="1.75" />
|
||||
Profil bearbeiten
|
||||
</Link>
|
||||
|
|
@ -42,16 +43,16 @@ const columns = computed(() => ({ 3: 'grid-cols-3', 4: 'grid-cols-4', 5: 'grid-c
|
|||
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"
|
||||
class="flex flex-col items-center gap-2 bg-card 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">
|
||||
<a v-if="user.can_admin" href="/admin" class="flex flex-col items-center gap-2 bg-card 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
|
||||
</a>
|
||||
<Link v-else href="/logout" method="post" as="button" 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">
|
||||
<Link v-else href="/logout" method="post" as="button" class="flex flex-col items-center gap-2 bg-card px-2 py-4 text-center text-xs font-medium text-foreground/80 hover:bg-accent hover:text-foreground">
|
||||
<LogOut class="size-5 text-brand-text" :stroke-width="1.75" />
|
||||
Abmelden
|
||||
</Link>
|
||||
|
|
|
|||
43
resources/js/components/apps/QuickLinksList.vue
Normal file
43
resources/js/components/apps/QuickLinksList.vue
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
<script setup>
|
||||
import { Link } from '@inertiajs/vue3';
|
||||
import { ArrowUpRight, LayoutGrid } from '@lucide/vue';
|
||||
import AppMark from '@/components/apps/AppMark.vue';
|
||||
import { appsOpen } from '@/lib/apps';
|
||||
|
||||
/** Schnellzugriffe als ruhige Liste – für die Seitenspalte der Mitarbeiter-App */
|
||||
const props = defineProps({
|
||||
links: { type: Array, required: true },
|
||||
total: { type: Number, default: 0 },
|
||||
});
|
||||
|
||||
const more = () => Math.max(0, props.total - props.links.length);
|
||||
const isInternal = (link) => link.url.startsWith('/') && !link.new_tab;
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<section class="rounded-lg border bg-card p-3" aria-label="Anwendungen">
|
||||
<h2 class="px-2 pt-1 pb-2 text-xs font-semibold tracking-wide text-muted-foreground uppercase">Anwendungen</h2>
|
||||
<div class="grid gap-0.5">
|
||||
<component
|
||||
:is="isInternal(link) ? Link : 'a'"
|
||||
v-for="link in links"
|
||||
:key="link.label + link.url"
|
||||
:href="link.url"
|
||||
:target="link.new_tab ? '_blank' : undefined"
|
||||
:rel="link.new_tab ? 'noopener' : undefined"
|
||||
class="group flex items-center gap-3 rounded-md px-2 py-2 hover:bg-accent"
|
||||
>
|
||||
<AppMark :app="link" class="size-9" />
|
||||
<span class="grid min-w-0 flex-1 leading-tight">
|
||||
<span class="truncate text-sm font-semibold">{{ link.label }}</span>
|
||||
<span v-if="link.subtitle" class="truncate text-xs text-muted-foreground">{{ link.subtitle }}</span>
|
||||
</span>
|
||||
<ArrowUpRight v-if="link.new_tab" class="size-4 shrink-0 text-muted-foreground/70 group-hover:text-foreground" aria-label="öffnet in neuem Tab" />
|
||||
</component>
|
||||
<button v-if="more()" type="button" class="flex items-center gap-3 rounded-md px-2 py-2 text-left hover:bg-accent" @click.stop="appsOpen = true">
|
||||
<span class="grid size-9 place-items-center rounded-lg bg-muted text-foreground/70"><LayoutGrid class="size-4" /></span>
|
||||
<span class="text-sm font-medium">Alle Anwendungen <span class="text-muted-foreground">({{ total }})</span></span>
|
||||
</button>
|
||||
</div>
|
||||
</section>
|
||||
</template>
|
||||
Loading…
Add table
Add a link
Reference in a new issue