Profil zeigt geschriebene Beiträge, Als Person anmelden (0.27.1)
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 4m47s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 4m40s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 5m0s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 4m51s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 7m1s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 6m57s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 5m45s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 5m36s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m21s

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Friederich Loheide 2026-09-27 10:03:27 +00:00
parent 1469f50401
commit 546c94db1c
127 changed files with 643 additions and 337 deletions

View file

@ -0,0 +1,37 @@
<script setup>
import { Link } from '@inertiajs/vue3';
import { ArrowRight } from '@lucide/vue';
import Panel from '@/components/Panel.vue';
import CategoryLabel from '../components/CategoryLabel.vue';
import NewsImage from '../components/NewsImage.vue';
import { formatShortDate } from '@/lib/format';
/**
* Profilseite: Neuigkeiten, die die Person geschrieben hat.
*/
defineProps({
total: { type: Number, required: true },
posts: { type: Array, required: true },
all_url: { type: String, required: true },
});
</script>
<template>
<Panel :title="`Beiträge (${total})`">
<ul class="grid gap-4 sm:grid-cols-2">
<li v-for="post in posts" :key="post.id">
<Link :href="`/neuigkeiten/${post.slug}`" class="group grid gap-2">
<NewsImage :src="post.thumb_url" :alt="post.title" class="rounded-md" />
<div class="min-w-0">
<CategoryLabel :category="post.category" />
<p class="mt-0.5 line-clamp-2 text-sm leading-snug font-semibold group-hover:underline">{{ post.title }}</p>
<p class="mt-0.5 text-xs text-muted-foreground">{{ formatShortDate(post.published_at) }}</p>
</div>
</Link>
</li>
</ul>
<Link v-if="total > posts.length" :href="all_url" class="mt-4 inline-flex items-center gap-1.5 text-[13px] font-medium text-brand-text hover:underline">
Alle {{ total }} Beiträge <ArrowRight class="size-3.5" />
</Link>
</Panel>
</template>