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
32
resources/js/components/hubs/HubTile.vue
Normal file
32
resources/js/components/hubs/HubTile.vue
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
<script setup>
|
||||
import { Link } from '@inertiajs/vue3';
|
||||
import AppIcon from '@/components/AppIcon.vue';
|
||||
import PersonAvatar from '@/components/PersonAvatar.vue';
|
||||
|
||||
/** Kachel auf „Wissen“ bzw. „Service“: Bereich bzw. Anlaufstelle mit Ansprechperson */
|
||||
const props = defineProps({
|
||||
entry: { type: Object, required: true },
|
||||
});
|
||||
|
||||
const internal = props.entry.url.startsWith('/');
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<article class="flex flex-col gap-3 rounded-lg border bg-card p-5">
|
||||
<component :is="internal ? Link : 'a'" :href="entry.url" :target="internal ? undefined : '_blank'" :rel="internal ? undefined : 'noopener'" class="group flex items-start gap-3.5">
|
||||
<span class="grid size-11 shrink-0 place-items-center rounded-md bg-brand-soft text-brand-text"><AppIcon :name="entry.icon" class="size-[22px]" :stroke-width="1.75" /></span>
|
||||
<span class="grid min-w-0 gap-1">
|
||||
<span class="text-[17px] leading-snug font-semibold group-hover:underline">{{ entry.title }}</span>
|
||||
<span v-if="entry.text" class="text-sm leading-relaxed text-muted-foreground">{{ entry.text }}</span>
|
||||
</span>
|
||||
</component>
|
||||
<div v-if="entry.person || entry.action" class="mt-auto flex items-center gap-3 border-t pt-3 text-[13px]">
|
||||
<template v-if="entry.person">
|
||||
<PersonAvatar :person="entry.person" class="size-7 text-[10px]" />
|
||||
<span class="min-w-0 flex-1 truncate text-muted-foreground">Fragen? <Link :href="`/personen/${entry.person.id}`" class="font-semibold text-foreground hover:underline">{{ entry.person.name }}</Link></span>
|
||||
</template>
|
||||
<span v-else class="flex-1" />
|
||||
<component :is="internal ? Link : 'a'" v-if="entry.action" :href="entry.url" class="shrink-0 font-semibold text-brand-text hover:underline">{{ entry.action }} →</component>
|
||||
</div>
|
||||
</article>
|
||||
</template>
|
||||
Loading…
Add table
Add a link
Reference in a new issue