132 lines
2.6 KiB
TypeScript
132 lines
2.6 KiB
TypeScript
export interface MenuItem {
|
|
url: string
|
|
title: string
|
|
icon?: string
|
|
isActive?: boolean
|
|
items?: MenuItem[]
|
|
}
|
|
|
|
export const withoutLayoutRoutes = [
|
|
"/login",
|
|
"/component/label/picture/standalone",
|
|
]
|
|
|
|
export const subPathList: MenuItem[] = [
|
|
{
|
|
title: "图片标注",
|
|
url: "image",
|
|
icon: "SystemIcon",
|
|
},
|
|
{
|
|
title: "视频标注",
|
|
url: "video",
|
|
icon: "SystemIcon",
|
|
},
|
|
]
|
|
|
|
export const subConfigList: { source: string; url: string }[] =
|
|
process.env.NEXT_PUBLIC_ENV === "development"
|
|
? [
|
|
{
|
|
source: "/image",
|
|
url: "http://localhost:5532",
|
|
},
|
|
{
|
|
source: "/video",
|
|
url: "http://localhost:5533",
|
|
},
|
|
]
|
|
: process.env.NEXT_PUBLIC_ENV === "standalone"
|
|
? []
|
|
: []
|
|
|
|
export const componentList: MenuItem[] = [
|
|
{
|
|
title: "管理平台",
|
|
url: "management",
|
|
icon: "SystemIcon",
|
|
items: [
|
|
{
|
|
title: "个人中心",
|
|
url: "person",
|
|
icon: "PersonalMenuIcon",
|
|
items: [
|
|
{
|
|
title: "个人看板",
|
|
url: "dashboard",
|
|
},
|
|
{
|
|
title: "个人日报",
|
|
url: "report",
|
|
},
|
|
{
|
|
title: "我的收藏",
|
|
url: "collection",
|
|
},
|
|
],
|
|
},
|
|
{
|
|
title: "项目管理",
|
|
url: "project",
|
|
icon: "TaskMenuIcon",
|
|
items: [
|
|
{
|
|
title: "全部项目",
|
|
url: "all",
|
|
},
|
|
{
|
|
title: "动态项目",
|
|
url: "dynamic",
|
|
},
|
|
{
|
|
title: "项目审核",
|
|
url: "audit",
|
|
},
|
|
],
|
|
},
|
|
{
|
|
title: "团队管理",
|
|
url: "team",
|
|
icon: "AuthMenuIcon",
|
|
items: [
|
|
{
|
|
title: "员工管理",
|
|
url: "employee",
|
|
},
|
|
{
|
|
title: "组织管理",
|
|
url: "organization",
|
|
},
|
|
{
|
|
title: "团队日报",
|
|
url: "dailypaper",
|
|
},
|
|
{
|
|
title: "数据统计",
|
|
url: "workload",
|
|
},
|
|
{
|
|
title: "结算管理",
|
|
url: "cost",
|
|
},
|
|
{
|
|
title: "同步服务",
|
|
url: "sync_server",
|
|
},
|
|
{
|
|
title: "同步任务",
|
|
url: "sync_task",
|
|
},
|
|
{
|
|
title: "项目参与",
|
|
url: "board",
|
|
},
|
|
],
|
|
},
|
|
],
|
|
},
|
|
...subPathList,
|
|
]
|
|
|
|
export const showList: MenuItem[] = []
|