Profilseite: Kommentare der Person
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 3m41s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 3m32s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 4m11s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 3m55s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 5m32s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 5m30s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 4m39s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 4m30s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m3s

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Friederich Loheide 2026-09-26 20:57:09 +00:00
parent 53df8918f6
commit 8a59023569
118 changed files with 620 additions and 438 deletions

View file

@ -1,5 +1,5 @@
<script setup>
import { computed } from 'vue';
import { computed, defineAsyncComponent } from 'vue';
import { Link } from '@inertiajs/vue3';
import { Building2, Mail, MapPin, Phone, Smartphone, UserRoundPen } from '@lucide/vue';
import { Button } from '@/components/ui/button';
@ -10,8 +10,16 @@ import AppLayout from '@/layouts/AppLayout.vue';
const props = defineProps({
person: { type: Object, required: true },
isOwnProfile: { type: Boolean, default: false },
panels: { type: Array, default: () => [] },
});
// Bereiche aus Plugins (App\Profile\ProfilePanels): „<plugin>::Name“ aus plugins-core/<plugin>/resources/js/profile-panels
const panelLoaders = import.meta.glob('../../../../plugins-core/*/resources/js/profile-panels/*.vue');
const panelComponents = Object.fromEntries(Object.entries(panelLoaders).map(([path, loader]) => [
`${path.match(/plugins-core\/([^/]+)\//)[1]}::${path.split('/').pop().replace('.vue', '')}`,
defineAsyncComponent(loader),
]));
const contact = computed(() => [
{ icon: Mail, label: 'E-Mail', value: props.person.email, href: `mailto:${props.person.email}` },
{ icon: Phone, label: 'Telefon', value: props.person.phone, href: props.person.phone && `tel:${props.person.phone}` },
@ -108,6 +116,10 @@ function fieldHref(field) {
</div>
</div>
</Panel>
<template v-for="panel in panels" :key="panel.key">
<component :is="panelComponents[panel.component]" v-if="panelComponents[panel.component]" v-bind="panel.props" />
</template>
</div>
</div>
</AppLayout>