新增站点设置与内容管理(含已删除恢复/清除),用户页改用独有运营指标,并按概览/内容/成员与经济/站点重组侧栏。 Co-authored-by: Cursor <cursoragent@cursor.com>
23 lines
939 B
TypeScript
23 lines
939 B
TypeScript
import pkg from "../package.json";
|
|
import FooterTiming from "./FooterTiming";
|
|
|
|
// 仅把明确发布过的版本视为"真实版本";脚手架默认号视为未设计,传空显示占位
|
|
function realVersion(v: string): string {
|
|
return !v || v === "0.0.0" || v === "0.1.0" ? "" : v;
|
|
}
|
|
|
|
// 极简页脚:版权 + 实时性能指标(版本 / 页面加载 / 模板生成)
|
|
export default function Footer({ siteName = "姜十三社区" }: { siteName?: string }) {
|
|
const year = new Date().getFullYear();
|
|
const brand = siteName.trim() || "姜十三社区";
|
|
|
|
return (
|
|
<footer className="mt-14" style={{ borderTop: "1px solid var(--line)" }}>
|
|
<div className="max-w-[1440px] mx-auto px-4 sm:px-6 py-4 flex items-center justify-between gap-4">
|
|
<span className="meta text-[12px] whitespace-nowrap">© {year} {brand}</span>
|
|
<FooterTiming version={realVersion(pkg.version)} />
|
|
</div>
|
|
</footer>
|
|
);
|
|
}
|