fixed editor missing peaces
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 0s

This commit is contained in:
2025-03-15 23:48:44 +01:00
parent d9ed115e56
commit 1597d4f113
29 changed files with 203 additions and 141 deletions
+19 -6
View File
@@ -13,14 +13,17 @@ import {
} from "@/components/ui/card";
import Avatar from "../avatar";
import { Icons } from "../icons";
import { Badge } from "../ui/badge";
function ArticleCard({
title,
slug,
author,
published,
createdAt,
}: Pick<Article, "title" | "slug" | "createdAt" | "author">) {
}: Pick<Article, "title" | "slug" | "createdAt" | "author" | "published">) {
const authorName = author?.name ?? `${appConfig.name} Team`;
return (
<Link href={appRoutes.article(slug)}>
<Card className="group flex h-full flex-col justify-between">
@@ -37,11 +40,21 @@ function ArticleCard({
)}
<span className="text-sm text-muted-foreground">{authorName}</span>
</div>
<p className="text-sm text-muted-foreground">
{createdAt.toLocaleDateString("de-DE", {
dateStyle: "long",
})}
</p>
<div className="flex items-center space-x-2">
{typeof published === "boolean" && (
<Badge
className="size-max px-2 py-px text-xs"
variant={published ? "outline" : "destructive"}
>
{published ? "Veröffentlicht" : "Draft"}
</Badge>
)}
<p className="text-sm text-muted-foreground">
{createdAt.toLocaleDateString("de-DE", {
dateStyle: "long",
})}
</p>
</div>
</CardFooter>
</Card>
</Link>