ai-chatbot/app/(admin)/settings/_lib/settings-navigation.ts
Your Name 1365a22d5b refactor: modularize admin settings local ai sections
Also removes the legacy home mode selector from the settings form because the affected JSX lives inside the same settings client refactor.
2026-05-26 19:31:57 +08:00

110 lines
2.6 KiB
TypeScript

import {
BarChart3,
Bell,
Bot,
HardDrive,
Image as ImageIcon,
Key,
Menu,
MessageSquare,
Scissors,
Settings,
Sparkles,
User,
} from "lucide-react";
import type { AdminSettingsNavGroup } from "./types";
export const ADMIN_SETTINGS_NAV_GROUPS: AdminSettingsNavGroup[] = [
{
title: "运营与数据",
description: "日常运营最常用入口,优先看用户、资产记录和效果数据。",
items: [
{
value: "users",
label: "用户管理",
description: "用户、权限与账号状态",
icon: User,
},
{
value: "images",
label: "生图/视频记录",
description: "生成资产、任务与产物追踪",
icon: ImageIcon,
},
{
value: "analytics",
label: "数据分析",
description: "用量、趋势与运营指标",
icon: BarChart3,
},
],
},
{
title: "站点体验",
description: "面向用户可见的站点配置,影响导航、文案、认证和通知体验。",
items: [
{
value: "site",
label: "网站设置",
description: "基础信息、展示与安全策略",
icon: Settings,
},
{
value: "style-pro",
label: "风格化 PRO",
description: "独立高级风格化配置",
icon: Sparkles,
href: "/settings/style-pro",
},
{
value: "nav",
label: "导航设置",
description: "菜单、入口与站内路径",
icon: Menu,
},
{
value: "questions",
label: "快捷短语",
description: "预设问题与提示短语",
icon: MessageSquare,
},
{
value: "auth",
label: "认证设置",
description: "登录、注册与访问控制",
icon: Key,
},
{
value: "notification",
label: "钉钉通知",
description: "告警、审批与业务通知",
icon: Bell,
},
],
},
{
title: "模型与基础设施",
description: "上线前重点检查,集中管理模型、存储和外部服务依赖。",
items: [
{
value: "ai",
label: "AI 模型",
description: "供应商、模型与 Key 池",
icon: Bot,
},
{
value: "storage",
label: "存储配置",
description: "对象存储、迁移与清理",
icon: HardDrive,
},
{
value: "rmbg",
label: "高级能力",
description: "本地 AI、3D/CAD 与图像处理",
icon: Scissors,
},
],
},
];