| 1 | /** |
| 2 | * 路由/导航数据配置 |
| 3 | * 包含开源版保留导航项的图标、路径、翻译键等信息。 |
| 4 | */ |
| 5 | |
| 6 | import { |
| 7 | Bot, |
| 8 | History, |
| 9 | Home, |
| 10 | Sparkles, |
| 11 | Upload, |
| 12 | } from 'lucide-react' |
| 13 | |
| 14 | export interface IRouterDataItem { |
| 15 | // 导航标题 |
| 16 | name: string |
| 17 | // 翻译键 |
| 18 | translationKey: string |
| 19 | // 跳转链接 |
| 20 | path?: string |
| 21 | // 图标 |
| 22 | icon?: React.ReactNode |
| 23 | // 子导航 |
| 24 | children?: IRouterDataItem[] |
| 25 | } |
| 26 | |
| 27 | export const routerData: IRouterDataItem[] = [ |
| 28 | { |
| 29 | name: 'Content Management', |
| 30 | translationKey: 'header.draftBox', |
| 31 | path: '/', |
| 32 | icon: <Home size={20} />, |
| 33 | }, |
| 34 | { |
| 35 | name: 'AI Publish', |
| 36 | translationKey: 'aiSocial', |
| 37 | path: '/ai-social', |
| 38 | icon: <Sparkles size={20} />, |
| 39 | }, |
| 40 | { |
| 41 | name: 'Task History', |
| 42 | translationKey: 'tasksHistory', |
| 43 | path: '/tasks-history', |
| 44 | icon: <History size={20} />, |
| 45 | }, |
| 46 | { |
| 47 | name: 'Publish', |
| 48 | translationKey: 'accounts', |
| 49 | path: '/accounts', |
| 50 | icon: <Upload size={20} />, |
| 51 | }, |
| 52 | { |
| 53 | name: 'Agent Assets', |
| 54 | translationKey: 'header.agentAssets', |
| 55 | path: '/agent-assets', |
| 56 | icon: <Bot size={20} />, |
| 57 | }, |
| 58 | ] |
| 59 | |
| 60 | export const visibleRouterData = routerData |
| 61 |