feat(frontend/admin): M10 后台管理面板(/admin hash 路由 + 15 大模块 + RBAC(owner/admin/viewer) + 审计 + Miuix);Docs/api-client.md v0.3 契约补全;tsc+vite build 通过
This commit is contained in:
1 parent
4c48e94659
commit
f43eb17030
26 files changed
+2253
-4
No files matched your search
@@ -0,0 +1,36 @@
|
||||
import type { AdminSectionId } from "./router";
|
||||
|
||||
/** Sidebar grouping for the 15 admin modules. Groups are visual only. */
|
||||
export interface AdminSectionMeta {
|
||||
id: AdminSectionId;
|
||||
label: string;
|
||||
icon: string;
|
||||
group: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* The 15-module registry (design/10 §3). Order drives the sidebar; group drives
|
||||
* the section headers. All are clickable — several are shells until M10+ backend.
|
||||
*/
|
||||
export const ADMIN_SECTIONS: ReadonlyArray<AdminSectionMeta> = [
|
||||
{ id: "dashboard", label: "仪表盘", icon: "📊", group: "总览" },
|
||||
{ id: "personas", label: "人格管理", icon: "🧬", group: "内容" },
|
||||
{ id: "sessions", label: "会话管理", icon: "💬", group: "内容" },
|
||||
{ id: "memories", label: "记忆管理", icon: "🧠", group: "内容" },
|
||||
{ id: "rag", label: "知识库 RAG", icon: "📚", group: "内容" },
|
||||
{ id: "plugins", label: "插件与能力", icon: "🔌", group: "能力与连接" },
|
||||
{ id: "channels", label: "渠道管理", icon: "📡", group: "能力与连接" },
|
||||
{ id: "iot", label: "IoT 设备", icon: "📲", group: "能力与连接" },
|
||||
{ id: "llm", label: "LLM 模型", icon: "🤖", group: "能力与连接" },
|
||||
{ id: "automations", label: "自动化与提醒", icon: "⏰", group: "能力与连接" },
|
||||
{ id: "agents", label: "Agent 监控", icon: "🧩", group: "运行时" },
|
||||
{ id: "backthink", label: "后台思考", icon: "🌙", group: "运行时" },
|
||||
{ id: "observability", label: "可观测性", icon: "📈", group: "运行时" },
|
||||
{ id: "users", label: "用户与权限", icon: "👥", group: "治理" },
|
||||
{ id: "system", label: "系统设置", icon: "⚙", group: "治理" },
|
||||
];
|
||||
|
||||
/** Group headers in sidebar order (derived from ADMIN_SECTIONS). */
|
||||
export const ADMIN_GROUPS: ReadonlyArray<string> = Array.from(
|
||||
new Set(ADMIN_SECTIONS.map((s) => s.group))
|
||||
);
|
||||
Reference in new issue
Block a user