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

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:
Friederich Loheide 2026-09-29 19:17:23 +00:00
parent d79c6284e1
commit 38f47f98e2
145 changed files with 656 additions and 379 deletions

View 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>