feat: 代码片段功能与 Markdown 内嵌片段渲染、文档截图等

This commit is contained in:
2026-10-09 18:53:38 +08:00
parent 5598e1cbb7
commit da72843c70
64 changed files with 7047 additions and 248 deletions

View File

@@ -31,6 +31,7 @@ import {
Layers,
Images,
Link2,
CodeXml,
} from "lucide-react";
import type { User } from "@/lib/api";
import { apiAdminPendingCounts, apiLogout } from "@/lib/api";
@@ -118,6 +119,12 @@ const NAV_GROUPS: NavGroup[] = [
icon: BookOpen,
visible: (u) => hasPerm(u, PERMS.LIBRARY),
},
{
href: "/admin/snippets",
label: "片段管理",
icon: CodeXml,
visible: (u) => isStaff(u.role),
},
{
href: "/admin/friend-links",
label: "友情链接",