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

@ -1,5 +1,6 @@
<script setup>
import { computed } from 'vue';
import { usePage } from '@inertiajs/vue3';
import { useMediaQuery } from '@vueuse/core';
import { Eye } from '@lucide/vue';
import AppLayout from '@/layouts/AppLayout.vue';
@ -23,6 +24,15 @@ const known = computed(() => props.widgets.filter((widget) => widgetComponent(wi
const inArea = (area) => known.value.filter((widget) => widget.area === area);
const hero = computed(() => inArea('hero')[0] ?? null);
const mobile = computed(() => [...known.value].sort((a, b) => a.mobileSort - b.mobileSort));
// Oberfläche „Mitarbeiter-App“: drei Spalten – links ich (Begrüßung, Anwendungen, Gruppen),
// in der Mitte das Geschehen (Neuigkeiten), rechts der Tag (Aufgaben, Termine, Feiern …)
const page = usePage();
const isApp = computed(() => page.props.branding?.interface === 'app');
const LEFT = ['core.greeting', 'core.quick-links', 'gruppen.feed', 'downloads.favorites', 'core.people-search'];
const appLeft = computed(() => LEFT.map((key) => known.value.find((widget) => widget.key === key)).filter(Boolean));
const appCenter = computed(() => known.value.filter((widget) => !LEFT.includes(widget.key) && ['top', 'hero', 'feed', 'main'].includes(widget.area)));
const appRight = computed(() => known.value.filter((widget) => !LEFT.includes(widget.key) && widget.area === 'aside'));
</script>
<template>
@ -36,6 +46,29 @@ const mobile = computed(() => [...known.value].sort((a, b) => a.mobileSort - b.m
<PageContent :content="content" />
</template>
<!-- Mitarbeiter-App: drei Spalten -->
<div v-else-if="isApp && desktop" class="grid grid-cols-[17.5rem_minmax(0,1fr)] items-start gap-6 xl:grid-cols-[17.5rem_minmax(0,1fr)_21rem]">
<aside class="grid min-w-0 content-start gap-5">
<component :is="widgetComponent(widget.component)" v-for="widget in appLeft" :key="widget.key" v-bind="widget.props" variant="list" />
</aside>
<div class="grid min-w-0 content-start gap-5">
<component
:is="widgetComponent(widget.component)"
v-for="widget in appCenter"
:key="widget.key"
v-bind="widget.props"
:wide="widget.area === 'feed' ? true : undefined"
/>
<!-- Unter 1280 px rutscht die rechte Spalte unter die Mitte -->
<div class="grid content-start gap-5 xl:hidden">
<component :is="widgetComponent(widget.component)" v-for="widget in appRight" :key="widget.key" v-bind="widget.props" />
</div>
</div>
<aside class="hidden min-w-0 content-start gap-5 xl:grid">
<component :is="widgetComponent(widget.component)" v-for="widget in appRight" :key="widget.key" v-bind="widget.props" />
</aside>
</div>
<template v-else>
<div v-if="desktop && inArea('top').length" class="mb-6 grid gap-6">
<component :is="widgetComponent(widget.component)" v-for="widget in inArea('top')" :key="widget.key" v-bind="widget.props" />