58 lines
1.0 KiB
TypeScript
58 lines
1.0 KiB
TypeScript
export interface MenuItem {
|
|
url: string
|
|
title: string
|
|
icon?: string
|
|
isActive?: boolean
|
|
items?: MenuItem[]
|
|
}
|
|
|
|
export const withoutLayoutRoutes = ["/login"]
|
|
|
|
const currentComponentList: MenuItem[] = [
|
|
{
|
|
title: "图片标注",
|
|
url: "project",
|
|
icon: "ImageAnnotationIcon",
|
|
items: [
|
|
{
|
|
title: "我的项目",
|
|
url: "own",
|
|
icon: "MyProjectsIcon",
|
|
},
|
|
],
|
|
},
|
|
]
|
|
|
|
const lidarList: MenuItem[] =
|
|
process.env.NEXT_PUBLIC_ENV === "production"
|
|
? []
|
|
: [
|
|
{
|
|
title: "点云标注",
|
|
url: "lidar",
|
|
icon: "LidarAnnotationIcon",
|
|
},
|
|
]
|
|
|
|
export const componentList: MenuItem[] = [
|
|
{
|
|
title: "个人中心",
|
|
url: "person",
|
|
icon: "PersonalCenterIcon",
|
|
},
|
|
...currentComponentList,
|
|
{
|
|
title: "视频标注",
|
|
url: "video",
|
|
icon: "VideoAnnotationIcon",
|
|
},
|
|
...lidarList,
|
|
{
|
|
title: "管理中心",
|
|
url: "mgt",
|
|
icon: "ManagementCenterIcon",
|
|
},
|
|
]
|
|
|
|
export const showList: MenuItem[] = []
|