Herzen und Kommentare schon in der Vorschau (0.44.0)
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 7m6s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 7m4s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 7m25s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 8m3s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 10m26s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 9m49s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 9m1s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 8m41s
CI / Bekannte Sicherheitslücken in Paketen (pull_request) Successful in 45s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m6s
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 7m6s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 7m4s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 7m25s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 8m3s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 10m26s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 9m49s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 9m1s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 8m41s
CI / Bekannte Sicherheitslücken in Paketen (pull_request) Successful in 45s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m6s
- NewsPost::withStats: Herzen (Anzahl, eigenes) und Kommentare (Anzahl) für alle Vorschau-Abfragen: Übersicht, Widgets, Slider, Block, Profil, „Weitere Beiträge“, API - NewsPostResource: „comments“ (null bei ausgeschalteten Kommentaren) - NewsStats.vue in Karte, Listeneintrag, Block-Layouts, Slider und Seitenleiste Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
60dd200300
commit
21307fc953
145 changed files with 471 additions and 358 deletions
|
|
@ -6,6 +6,7 @@ import CategoryLabel from '../components/CategoryLabel.vue';
|
|||
import NewsCard from '../components/NewsCard.vue';
|
||||
import NewsImage from '../components/NewsImage.vue';
|
||||
import NewsListItem from '../components/NewsListItem.vue';
|
||||
import NewsStats from '../components/NewsStats.vue';
|
||||
import { formatShortDate } from '@/lib/format';
|
||||
|
||||
/**
|
||||
|
|
@ -38,7 +39,10 @@ const moreLabel = computed(() => props.block.data.more_label ?? 'Alle anzeigen')
|
|||
<CategoryLabel :category="post.category" />
|
||||
<h4 class="mt-1 line-clamp-2 text-base leading-snug font-semibold group-hover:underline">{{ post.title }}</h4>
|
||||
<p v-if="post.teaser" class="mt-1 line-clamp-2 text-[13px] text-muted-foreground">{{ post.teaser }}</p>
|
||||
<p class="mt-1.5 text-xs text-muted-foreground">{{ formatShortDate(post.published_at) }}</p>
|
||||
<p class="mt-1.5 flex flex-wrap items-center gap-x-3 gap-y-1 text-xs text-muted-foreground">
|
||||
{{ formatShortDate(post.published_at) }}
|
||||
<NewsStats :post="post" />
|
||||
</p>
|
||||
</div>
|
||||
</Link>
|
||||
</div>
|
||||
|
|
@ -51,6 +55,10 @@ const moreLabel = computed(() => props.block.data.more_label ?? 'Alle anzeigen')
|
|||
<CategoryLabel :category="posts[0].category" />
|
||||
<h4 class="mt-1 line-clamp-2 text-lg leading-snug font-semibold group-hover:underline">{{ posts[0].title }}</h4>
|
||||
<p v-if="posts[0].teaser" class="mt-1 line-clamp-3 text-sm text-muted-foreground">{{ posts[0].teaser }}</p>
|
||||
<p class="mt-1.5 flex flex-wrap items-center gap-x-3 gap-y-1 text-xs text-muted-foreground">
|
||||
{{ formatShortDate(posts[0].published_at) }}
|
||||
<NewsStats :post="posts[0]" />
|
||||
</p>
|
||||
</div>
|
||||
</Link>
|
||||
<div v-if="posts.length > 1" class="divide-y border-t">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue