Files
admin/dashboard/frontend/src/router/elegant/routes.ts
T

243 lines
5.3 KiB
TypeScript
Raw Normal View History

/* eslint-disable */
/* prettier-ignore */
// Generated by elegant-router
// Read more: https://github.com/soybeanjs/elegant-router
import type { GeneratedRoute } from '@elegant-router/types';
export const generatedRoutes: GeneratedRoute[] = [
{
name: '403',
path: '/403',
component: 'layout.blank$view.403',
meta: {
title: '403',
i18nKey: 'route.403',
constant: true,
hideInMenu: true
}
},
{
name: '404',
path: '/404',
component: 'layout.blank$view.404',
meta: {
title: '404',
i18nKey: 'route.404',
constant: true,
hideInMenu: true
}
},
{
name: '500',
path: '/500',
component: 'layout.blank$view.500',
meta: {
title: '500',
i18nKey: 'route.500',
constant: true,
hideInMenu: true
}
},
{
name: 'headphone',
path: '/headphone',
component: 'layout.base',
meta: {
title: 'headphone',
i18nKey: 'route.headphone',
icon: 'mdi:headphones',
order: 2
},
children: [
{
name: 'headphone_brand',
path: '/headphone/brand',
component: 'view.headphone_brand',
meta: {
title: 'headphone_brand',
i18nKey: 'route.headphone_brand',
icon: 'mdi:tag-multiple-outline',
order: 1,
keepAlive: true
}
},
{
name: 'headphone_model',
path: '/headphone/model',
component: 'view.headphone_model',
meta: {
title: 'headphone_model',
i18nKey: 'route.headphone_model',
icon: 'mdi:earbuds',
order: 2,
keepAlive: true
}
}
]
},
{
name: 'home',
path: '/home',
component: 'layout.base$view.home',
meta: {
title: 'home',
i18nKey: 'route.home',
icon: 'mdi:monitor-dashboard',
order: 1,
keepAlive: true
}
},
{
name: 'iframe-page',
path: '/iframe-page/:url',
component: 'layout.base$view.iframe-page',
props: true,
meta: {
title: 'iframe-page',
i18nKey: 'route.iframe-page',
constant: true,
hideInMenu: true,
keepAlive: true
}
},
{
name: 'login',
path: '/login/:module(pwd-login|code-login|register|reset-pwd|bind-wechat)?',
component: 'layout.blank$view.login',
props: true,
meta: {
title: 'login',
i18nKey: 'route.login',
constant: true,
hideInMenu: true
}
},
{
name: 'share-code',
path: '/share-code',
component: 'layout.base',
meta: {
title: 'share-code',
i18nKey: 'route.share-code',
icon: 'mdi:share-variant-outline',
order: 4
},
children: [
{
name: 'share-code_log',
path: '/share-code/log',
component: 'view.share-code_log',
meta: {
title: 'share-code_log',
i18nKey: 'route.share-code_log',
icon: 'mdi:file-document-outline',
order: 1,
keepAlive: true
}
}
]
},
{
name: 'system',
path: '/system',
component: 'layout.base',
meta: {
title: 'system',
i18nKey: 'route.system',
icon: 'mdi:cog-outline',
order: 5,
hideInMenu: true
},
children: [
{
name: 'system_users',
path: '/system/users',
component: 'view.system_users',
meta: {
title: 'system_users',
i18nKey: 'route.system_users',
icon: 'mdi:account-cog-outline',
order: 1,
roles: ['R_SUPER'],
keepAlive: true
}
}
]
},
{
name: 'toolbox',
path: '/toolbox',
component: 'layout.base',
meta: {
title: 'toolbox',
i18nKey: 'route.toolbox',
icon: 'mdi:toolbox-outline',
order: 6
},
children: [
{
name: 'toolbox_luxsin-controller',
path: '/toolbox/luxsin-controller',
component: 'view.toolbox_luxsin-controller',
meta: {
title: 'toolbox_luxsin-controller',
i18nKey: 'route.toolbox_luxsin-controller',
icon: 'mdi:tune-vertical',
order: 1,
keepAlive: true
}
}
]
},
{
name: 'upgrade',
path: '/upgrade',
component: 'layout.base',
meta: {
title: 'upgrade',
i18nKey: 'route.upgrade',
icon: 'mdi:package-up',
order: 3
},
children: [
{
name: 'upgrade_blacklist',
path: '/upgrade/blacklist',
component: 'view.upgrade_blacklist',
meta: {
title: 'upgrade_blacklist',
i18nKey: 'route.upgrade_blacklist',
icon: 'mdi:account-cancel-outline',
order: 3,
keepAlive: true
}
},
{
name: 'upgrade_ota',
path: '/upgrade/ota',
component: 'view.upgrade_ota',
meta: {
title: 'upgrade_ota',
i18nKey: 'route.upgrade_ota',
icon: 'mdi:cellphone-arrow-down',
order: 1,
keepAlive: true
}
},
{
name: 'upgrade_ota-target-device',
path: '/upgrade/ota-target-device',
component: 'view.upgrade_ota-target-device',
meta: {
title: 'upgrade_ota-target-device',
i18nKey: 'route.upgrade_ota-target-device',
icon: 'mdi:crosshairs-gps',
order: 2,
keepAlive: true
}
}
]
}
];