Wissen, Service, Gremien-Baustein und Menü-Vorschlag (0.56.0)
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
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>
This commit is contained in:
parent
68f90c2c68
commit
4d0a2984ec
156 changed files with 1021 additions and 363 deletions
52
resources/js/pages/Hubs/Service.vue
Normal file
52
resources/js/pages/Hubs/Service.vue
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
<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>
|
||||
34
resources/js/pages/Hubs/Wissen.vue
Normal file
34
resources/js/pages/Hubs/Wissen.vue
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
<script setup>
|
||||
import { ref } from 'vue';
|
||||
import { router } from '@inertiajs/vue3';
|
||||
import { BookOpen, Search } from '@lucide/vue';
|
||||
import AppLayout from '@/layouts/AppLayout.vue';
|
||||
import EmptyState from '@/components/EmptyState.vue';
|
||||
import HubTile from '@/components/hubs/HubTile.vue';
|
||||
|
||||
defineProps({
|
||||
entries: { type: Array, required: true },
|
||||
});
|
||||
|
||||
const query = ref('');
|
||||
const search = () => query.value.trim() && router.get('/suche', { q: query.value.trim() });
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<AppLayout title="Wissen" :header="false">
|
||||
<section class="grid justify-items-center gap-5 py-6 text-center sm:py-10">
|
||||
<h1 class="text-3xl font-bold tracking-tight text-balance sm:text-4xl">Was möchten Sie wissen?</h1>
|
||||
<form role="search" class="flex w-full max-w-2xl items-center gap-2 rounded-pill border bg-card p-1.5 pl-5 shadow-sm focus-within:ring-3 focus-within:ring-ring/30" @submit.prevent="search">
|
||||
<Search class="size-5 shrink-0 text-muted-foreground" />
|
||||
<label for="wissen-suche" class="sr-only">Portal durchsuchen</label>
|
||||
<input id="wissen-suche" v-model="query" type="search" placeholder="z. B. „Wie beantrage ich eine Fortbildung?“" class="h-11 min-w-0 flex-1 bg-transparent text-base outline-none" />
|
||||
<button type="submit" class="h-11 rounded-pill bg-brand px-5 text-sm font-semibold text-brand-foreground hover:opacity-90">Suchen</button>
|
||||
</form>
|
||||
</section>
|
||||
|
||||
<div v-if="entries.length" class="grid gap-5 sm:grid-cols-2 xl:grid-cols-3">
|
||||
<HubTile v-for="entry in entries" :key="entry.title + entry.url" :entry="entry" />
|
||||
</div>
|
||||
<EmptyState v-else :icon="BookOpen" title="Noch keine Bereiche" text="Die Administration legt sie unter Startseite & Menü → Wissen & Service fest." />
|
||||
</AppLayout>
|
||||
</template>
|
||||
Loading…
Add table
Add a link
Reference in a new issue