mirror of
https://github.com/fawney19/Aether.git
synced 2026-09-02 09:20:22 +08:00
refactor: 模块管理支持内置工具展示
将邮件配置、IP 安全、审计日志等系统功能从固定菜单移至模块管理页面,以内置工具形式统一展示
This commit is contained in:
35
frontend/src/config/builtin-tools.ts
Normal file
35
frontend/src/config/builtin-tools.ts
Normal 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])
|
||||
)
|
||||
Reference in New Issue
Block a user