Feste Profilfelder in Formularen, Geburtstage, anpassbare Startseite
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 2m18s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 2m21s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 2m40s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 2m34s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 3m8s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 3m6s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 2m43s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 2m47s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m1s

- Formulare: Felder fest aus dem Profil (nicht änderbar, Server setzt den
  Profilwert ein), Hinweis bei fehlender Profilangabe
- Geburtstage (optionales Plugin, standardmäßig aus): Tag und Monat freiwillig
  im Profil, Kachel, Liste /geburtstage, Pagebuilder-Block, Glückwunsch am
  eigenen Geburtstag; Sichtbarkeit alle/Abteilung/Standort
- Startseite: Kacheln je Bereich sortieren und ausblenden; eigene Kacheln
  (Bild mit Link, Text, Hinweis) mit Zeitraum und Zielgruppe
- Kern: optionale mitgelieferte Plugins, Startseitenbereich „top“,
  Profilabschnitte für Plugins, Kachel-Bezeichnungen

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Friederich Loheide 2026-09-26 09:51:19 +00:00
parent 435960725d
commit ee8dde93c0
262 changed files with 2385 additions and 692 deletions

View file

@ -0,0 +1,55 @@
<script setup>
import { ref } from 'vue';
import { Cake, X } from '@lucide/vue';
/**
* Glückwunsch am eigenen Geburtstag – lässt sich für heute ausblenden.
*/
const props = defineProps({
name: { type: String, required: true },
});
const key = `inhaus.birthday-greeting.${new Date().toISOString().slice(0, 10)}`;
const hidden = ref(false);
try {
hidden.value = localStorage.getItem(key) === '1';
} catch {
// Speicher nicht verfügbar – dann eben immer zeigen.
}
function dismiss() {
hidden.value = true;
try {
localStorage.setItem(key, '1');
} catch {
// ignorieren
}
}
</script>
<template>
<section v-if="!hidden" class="relative overflow-hidden rounded-lg bg-brand text-brand-foreground" role="status">
<!-- dezente Konfetti-Punkte -->
<svg class="pointer-events-none absolute inset-0 size-full opacity-25" aria-hidden="true">
<circle cx="8%" cy="30%" r="4" fill="currentColor" />
<circle cx="15%" cy="75%" r="3" fill="currentColor" />
<rect x="24%" y="18%" width="7" height="7" transform="rotate(20)" fill="currentColor" />
<circle cx="62%" cy="20%" r="3" fill="currentColor" />
<circle cx="78%" cy="70%" r="5" fill="currentColor" />
<rect x="88%" y="30%" width="8" height="8" fill="currentColor" />
<circle cx="94%" cy="80%" r="3" fill="currentColor" />
</svg>
<div class="relative flex items-center gap-4 px-5 py-5 sm:px-8">
<span class="grid size-12 shrink-0 place-items-center rounded-full bg-white/15"><Cake class="size-6" /></span>
<div class="min-w-0 flex-1">
<p class="text-xl font-semibold tracking-tight">Alles Gute zum Geburtstag, {{ props.name }}!</p>
<p class="mt-0.5 text-sm opacity-90">Wir wünschen Ihnen einen schönen Tag.</p>
</div>
<button type="button" class="grid size-9 shrink-0 place-items-center rounded-md hover:bg-white/15" aria-label="Glückwunsch ausblenden" @click="dismiss">
<X class="size-5" />
</button>
</div>
</section>
</template>

View file

@ -0,0 +1,17 @@
<script setup>
import Panel from '@/components/Panel.vue';
import BirthdayItem from '../components/BirthdayItem.vue';
defineProps({
birthdays: { type: Array, required: true },
days: { type: Number, default: 7 },
});
</script>
<template>
<Panel title="Geburtstage" action-label="Alle" action-href="/geburtstage">
<div class="-my-2 divide-y">
<BirthdayItem v-for="item in birthdays" :key="`${item.person.id}-${item.date}`" :item="item" />
</div>
</Panel>
</template>