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

@ -0,0 +1,31 @@
<script setup>
import { Link } from '@inertiajs/vue3';
import { CornerDownRight, MessageCircle } from '@lucide/vue';
import Panel from '@/components/Panel.vue';
/**
* Profilseite: Kommentare der Person zu Neuigkeiten.
*/
defineProps({
total: { type: Number, required: true },
comments: { type: Array, required: true },
});
const dateFormat = new Intl.DateTimeFormat('de-DE', { day: 'numeric', month: 'long', year: 'numeric' });
</script>
<template>
<Panel :title="`Kommentare (${total})`">
<ol class="-my-1 divide-y">
<li v-for="comment in comments" :key="comment.id" class="py-3">
<p class="flex items-center gap-1.5 text-xs text-muted-foreground">
<component :is="comment.is_reply ? CornerDownRight : MessageCircle" class="size-3.5 shrink-0" />
<span>{{ comment.is_reply ? 'Antwort' : 'Kommentar' }} am {{ dateFormat.format(new Date(comment.created_at)) }} zu</span>
</p>
<Link :href="comment.post.url" class="mt-0.5 block text-sm font-medium text-brand-text hover:underline">{{ comment.post.title }}</Link>
<p class="mt-1 text-sm leading-relaxed break-words text-foreground/80">„{{ comment.excerpt }}“</p>
</li>
</ol>
<p v-if="total > comments.length" class="mt-2 border-t pt-3 text-xs text-muted-foreground">Die neuesten {{ comments.length }} von {{ total }} Kommentaren.</p>
</Panel>
</template>