chore: ARTEX 初始化
ARTEX — AI 自主渗透测试系统(Go 后端 + Next.js 前端,单二进制内嵌)。 Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
This commit is contained in:
commit
0ef8561411
287 files changed
+70178
No files matched your search
@@ -0,0 +1,88 @@
|
||||
import {
|
||||
Activity,
|
||||
Bot,
|
||||
Brain,
|
||||
Bug,
|
||||
ClipboardList,
|
||||
FolderSync,
|
||||
LayoutDashboard,
|
||||
type LucideIcon,
|
||||
MessageSquare,
|
||||
Network,
|
||||
Plug,
|
||||
ScrollText,
|
||||
Settings2,
|
||||
ShieldAlert,
|
||||
Sparkles,
|
||||
Target,
|
||||
Wrench,
|
||||
} from "lucide-react";
|
||||
|
||||
export type NavBadge = "new" | "soon";
|
||||
|
||||
export interface NavSubItem {
|
||||
id: string;
|
||||
title: string;
|
||||
url: string;
|
||||
icon?: LucideIcon;
|
||||
badge?: NavBadge;
|
||||
disabled?: boolean;
|
||||
newTab?: boolean;
|
||||
}
|
||||
|
||||
interface NavItemBase {
|
||||
id: string;
|
||||
title: string;
|
||||
icon?: LucideIcon;
|
||||
badge?: NavBadge;
|
||||
disabled?: boolean;
|
||||
newTab?: boolean;
|
||||
}
|
||||
|
||||
export interface NavMainLinkItem extends NavItemBase {
|
||||
url: string;
|
||||
subItems?: never;
|
||||
}
|
||||
|
||||
export interface NavMainParentItem extends NavItemBase {
|
||||
subItems: NavSubItem[];
|
||||
}
|
||||
|
||||
export type NavMainItem = NavMainLinkItem | NavMainParentItem;
|
||||
|
||||
export interface NavGroup {
|
||||
id: number;
|
||||
label?: string;
|
||||
items: NavMainItem[];
|
||||
}
|
||||
|
||||
export const sidebarItems: NavGroup[] = [
|
||||
{
|
||||
id: 1,
|
||||
label: "功能",
|
||||
items: [
|
||||
{ id: "dashboard", title: "仪表盘", url: "/dashboard", icon: LayoutDashboard },
|
||||
{ id: "chat", title: "对话", url: "/chat", icon: MessageSquare },
|
||||
{ id: "tasks", title: "任务", url: "/function/tasks", icon: Target },
|
||||
{ id: "findings", title: "发现", url: "/function/findings", icon: Bug },
|
||||
{ id: "traffic", title: "流量", url: "/function/traffic", icon: Activity },
|
||||
{ id: "assets", title: "资产", url: "/function/assets", icon: Network },
|
||||
{ id: "sync", title: "资产同步", url: "/function/sync", icon: FolderSync },
|
||||
],
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
label: "系统",
|
||||
items: [
|
||||
{ id: "llm", title: "LLM", url: "/system/llm", icon: Brain },
|
||||
{ id: "agents", title: "Agent", url: "/system/agents", icon: Bot },
|
||||
{ id: "mcp", title: "MCP", url: "/system/mcp", icon: Plug },
|
||||
{ id: "skills", title: "Skill", url: "/system/skills", icon: Sparkles },
|
||||
{ id: "tools", title: "工具", url: "/system/tools", icon: Wrench },
|
||||
{ id: "intercept", title: "拦截规则", url: "/system/intercept", icon: ShieldAlert },
|
||||
{ id: "approvals", title: "审批记录", url: "/system/intercept/approvals", icon: ClipboardList },
|
||||
{ id: "logs", title: "日志", url: "/system/logs", icon: ScrollText },
|
||||
{ id: "settings", title: "系统配置", url: "/system/settings", icon: Settings2 },
|
||||
],
|
||||
},
|
||||
];
|
||||
Reference in new issue
Block a user