Some checks failed
CI / PHP 8.4 / mariadb:10.6 (pull_request) Failing after 9m9s
CI / PHP 8.3 / mariadb:10.6 (pull_request) Failing after 9m19s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Failing after 10m30s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Failing after 11m5s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 13m15s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 13m54s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 10m57s
CI / Bekannte Sicherheitslücken in Paketen (pull_request) Successful in 45s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 11m44s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m20s
Übersichtsseiten /wissen und /service (Hubs, im Admin pflegbar), Baustein „Mitglieder mit Rolle“, Menü-Vorschlag für die Mitarbeiter-App. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
52 lines
2.6 KiB
Vue
52 lines
2.6 KiB
Vue
<script setup>
|
||
import { Link } from '@inertiajs/vue3';
|
||
import { Headset, LifeBuoy } from '@lucide/vue';
|
||
import AppLayout from '@/layouts/AppLayout.vue';
|
||
import PageHeader from '@/components/PageHeader.vue';
|
||
import AppIcon from '@/components/AppIcon.vue';
|
||
import EmptyState from '@/components/EmptyState.vue';
|
||
import HubTile from '@/components/hubs/HubTile.vue';
|
||
import { widgetComponent } from '@/lib/widgets';
|
||
|
||
defineProps({
|
||
entries: { type: Array, required: true },
|
||
// IT-Service (Plugin): Aktionen; darunter die Kachel „Meine IT“ mit Tickets und Ausleihen
|
||
it: { type: Array, default: null },
|
||
});
|
||
|
||
const myIt = widgetComponent('it-service::MyIt');
|
||
</script>
|
||
|
||
<template>
|
||
<AppLayout title="Service">
|
||
<PageHeader title="Wie können wir helfen?" description="Alle Anlaufstellen im Haus – melden, beantragen, ausleihen." icon="life-buoy" />
|
||
|
||
<div class="grid items-start gap-6" :class="it ? 'lg:grid-cols-[minmax(0,1.35fr)_minmax(0,1fr)]' : ''">
|
||
<section v-if="it" class="grid gap-5 rounded-lg border bg-card p-5 sm:p-6" aria-labelledby="it-titel">
|
||
<div class="flex items-center gap-3.5">
|
||
<span class="grid size-12 place-items-center rounded-md bg-brand-soft text-brand-text"><Headset class="size-6" /></span>
|
||
<h2 id="it-titel" class="text-xl font-bold">IT-Service</h2>
|
||
</div>
|
||
<div class="grid gap-3 sm:grid-cols-3">
|
||
<Link
|
||
v-for="action in it"
|
||
:key="action.url"
|
||
:href="action.url"
|
||
class="grid gap-1.5 rounded-lg p-4"
|
||
:class="action.primary ? 'bg-brand text-brand-foreground hover:opacity-95' : 'bg-muted hover:bg-accent'"
|
||
>
|
||
<AppIcon :name="action.icon" class="size-5" />
|
||
<span class="font-semibold">{{ action.label }}</span>
|
||
<span class="text-xs" :class="action.primary ? 'opacity-85' : 'text-muted-foreground'">{{ action.text }}</span>
|
||
</Link>
|
||
</div>
|
||
<component :is="myIt" v-if="myIt" />
|
||
</section>
|
||
|
||
<div class="grid gap-4" :class="it ? '' : 'sm:grid-cols-2 xl:grid-cols-3'">
|
||
<HubTile v-for="entry in entries" :key="entry.title + entry.url" :entry="entry" />
|
||
<EmptyState v-if="!it && !entries.length" :icon="LifeBuoy" title="Noch keine Anlaufstellen" text="Die Administration legt sie unter Startseite & Menü → Wissen & Service fest." />
|
||
</div>
|
||
</div>
|
||
</AppLayout>
|
||
</template>
|