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

@ -22,6 +22,10 @@ const mobile = computed(() => [...known.value].sort((a, b) => a.mobileSort - b.m
<template>
<AppLayout title="Startseite">
<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" />
</div>
<div v-if="desktop" class="grid grid-cols-12 gap-6">
<div class="col-span-8 grid min-w-0 grid-cols-1 content-start gap-6 xl:col-span-9 xl:grid-cols-3">
<component :is="widgetComponent(hero.component)" v-if="hero" v-bind="hero.props" class="xl:col-span-2" />

View file

@ -1,5 +1,5 @@
<script setup>
import { ref } from 'vue';
import { defineAsyncComponent, ref } from 'vue';
import { router, useForm } from '@inertiajs/vue3';
import { Camera, LoaderCircle, Trash2 } from '@lucide/vue';
import { toast } from 'vue-sonner';
@ -15,8 +15,16 @@ const props = defineProps({
profile: { type: Object, required: true },
managed: { type: Array, default: () => [] },
customFields: { type: Array, default: () => [] },
sections: { type: Array, default: () => [] },
});
// Abschnitte aus Plugins (App\Profile\ProfileSections): „<plugin>::Name“ aus plugins-core/<plugin>/resources/js/profile
const sectionLoaders = import.meta.glob('../../../../plugins-core/*/resources/js/profile/*.vue');
const sectionComponents = Object.fromEntries(Object.entries(sectionLoaders).map(([path, loader]) => [
`${path.match(/plugins-core\/([^/]+)\//)[1]}::${path.split('/').pop().replace('.vue', '')}`,
defineAsyncComponent(loader),
]));
const isManaged = (field) => props.managed.includes(field);
// Stammdaten
@ -204,6 +212,8 @@ function savePassword() {
</form>
</Panel>
<component :is="sectionComponents[section.component]" v-for="section in sections" :key="section.key" v-bind="section.props" />
<Panel v-if="profile.has_password" title="Passwort ändern">
<form class="grid gap-5" @submit.prevent="savePassword">
<FormField id="current_password" label="Aktuelles Passwort" :error="passwordForm.errors.current_password" class="sm:max-w-sm">