refactor: 模块管理支持内置工具展示

将邮件配置、IP 安全、审计日志等系统功能从固定菜单移至模块管理页面,以内置工具形式统一展示
This commit is contained in:
fawney19
2026-02-09 22:52:46 +08:00
parent 80d65ad2e4
commit 1d625916ff
3 changed files with 107 additions and 5 deletions

View File

@@ -0,0 +1,35 @@
import { Mail, Shield, AlertTriangle } from 'lucide-vue-next'
import type { LucideIcon } from 'lucide-vue-next'
export interface BuiltinTool {
name: string
description: string
href: string
icon: LucideIcon
}
export const BUILTIN_TOOLS: BuiltinTool[] = [
{
name: '邮件配置',
description: '配置 SMTP 邮件服务,管理邮件模板和发送设置',
href: '/admin/email',
icon: Mail,
},
{
name: 'IP 安全',
description: '管理 IP 黑白名单,控制系统访问权限',
href: '/admin/ip-security',
icon: Shield,
},
{
name: '审计日志',
description: '查看系统操作日志,追踪安全事件与变更记录',
href: '/admin/audit-logs',
icon: AlertTriangle,
},
]
/** href → display name mapping for breadcrumbs */
export const BUILTIN_TOOL_BREADCRUMBS: Record<string, string> = Object.fromEntries(
BUILTIN_TOOLS.map(t => [t.href, t.name])
)