feat: 交付官方 Docker 运行时,外观改背景图并下线自定义 CSS/JS

站点/后台分轨背景与用户列表排序一并落地;生产 CORS 改走 SITE_URL,健康检查带版本号。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-18 05:27:33 +08:00
parent 5f7193042f
commit d784b0ea7a
68 changed files with 2588 additions and 768 deletions

View File

@@ -96,61 +96,63 @@ export default async function AboutIndexPage() {
<SiteDocShell
left={left}
right={right}
breadcrumb={
<SiteDocBreadcrumb
items={[
{ href: "/", label: "首页" },
{ label: "关于本站" },
]}
/>
}
mobileExtras={
announcements.length > 0 ? <SiteDocAnnoNav items={announcements} /> : null
}
>
<header className="mb-5 flex items-end justify-between gap-3">
<div>
<h1
className="text-[24px] sm:text-[28px] font-extrabold tracking-tight flex items-center gap-2"
style={{ color: "var(--ink)" }}
>
<Info size={26} style={{ color: "var(--accent)" }} aria-hidden />
关于本站
</h1>
<p className="meta mt-2">
{error
? "加载失败"
: pages.length > 0
? `共 ${pages.length} 篇站点文档`
: "站点说明与政策文档"}
</p>
</div>
{canManagePages ? (
<Link
href="/admin/pages"
className="meta text-[13px] shrink-0 mb-0.5 transition-colors hover:text-[var(--accent)]"
>
管理
</Link>
) : null}
</header>
<div className="panel overflow-hidden">
<header
className="px-5 sm:px-6 pt-5 pb-4"
style={{ borderBottom: "1px solid var(--line)" }}
>
<SiteDocBreadcrumb
className="mb-3"
items={[
{ href: "/", label: "首页" },
{ label: "关于本站" },
]}
/>
<div className="flex items-end justify-between gap-3">
<div>
<h1
className="text-[24px] sm:text-[28px] font-extrabold tracking-tight flex items-center gap-2"
style={{ color: "var(--ink)" }}
>
<Info size={26} style={{ color: "var(--accent)" }} aria-hidden />
关于本站
</h1>
<p className="meta mt-2">
{error
? "加载失败"
: pages.length > 0
? `共 ${pages.length} 篇站点文档`
: "站点说明与政策文档"}
</p>
</div>
{canManagePages ? (
<Link
href="/admin/pages"
className="meta text-[13px] shrink-0 mb-0.5 transition-colors hover:text-[var(--accent)]"
>
管理
</Link>
) : null}
</div>
</header>
{error ? (
<p className="alert-error">{error}</p>
) : pages.length === 0 ? (
<div className="panel p-10 text-center">
<p className="font-medium" style={{ color: "var(--ink)" }}>
暂无介绍
</p>
<p className="meta mt-1.5">有新文档时会显示在这里</p>
</div>
) : (
<div className="panel overflow-hidden">
{pages.map((p, i) => (
<PageRow key={p.id} p={p} showDivider={i > 0} />
))}
</div>
)}
{error ? (
<p className="alert-error m-5">{error}</p>
) : pages.length === 0 ? (
<div className="p-10 text-center">
<p className="font-medium" style={{ color: "var(--ink)" }}>
暂无介绍
</p>
<p className="meta mt-1.5">有新文档时会显示在这里</p>
</div>
) : (
pages.map((p, i) => <PageRow key={p.id} p={p} showDivider={i > 0} />)
)}
</div>
</SiteDocShell>
);
}