admin-vben5/apps/web-antd/src/router/routes/modules/vben.ts

82 lines
1.8 KiB
TypeScript
Raw Normal View History

import type { RouteRecordRaw } from 'vue-router';
2024-08-01 00:01:39 +08:00
import {
VBEN_DOC_URL,
VBEN_ELE_PREVIEW_URL,
VBEN_GITHUB_URL,
VBEN_LOGO_URL,
VBEN_NAIVE_PREVIEW_URL,
} from '@vben/constants';
2024-06-08 19:49:06 +08:00
2024-06-16 23:40:52 +08:00
import { BasicLayout, IFrameView } from '#/layouts';
import { $t } from '#/locales';
2024-06-16 23:40:52 +08:00
const routes: RouteRecordRaw[] = [
{
2024-05-21 22:42:25 +08:00
component: BasicLayout,
meta: {
2024-06-29 15:41:10 +08:00
badgeType: 'dot',
icon: VBEN_LOGO_URL,
2024-06-08 20:14:04 +08:00
order: 9999,
title: $t('page.vben.title'),
},
name: 'VbenProject',
path: '/vben-admin',
children: [
{
2024-06-08 20:14:04 +08:00
name: 'VbenAbout',
path: '/vben-admin/about',
component: () => import('#/views/_core/about/index.vue'),
meta: {
icon: 'lucide:copyright',
2024-06-08 20:14:04 +08:00
title: $t('page.vben.about'),
},
},
{
2024-06-08 20:14:04 +08:00
name: 'VbenDocument',
path: '/vben-admin/document',
2024-05-21 22:14:25 +08:00
component: IFrameView,
meta: {
icon: 'lucide:book-open-text',
link: VBEN_DOC_URL,
2024-06-08 20:14:04 +08:00
title: $t('page.vben.document'),
},
},
{
2024-06-08 20:14:04 +08:00
name: 'VbenGithub',
path: '/vben-admin/github',
component: IFrameView,
meta: {
icon: 'mdi:github',
2024-06-08 20:14:04 +08:00
link: VBEN_GITHUB_URL,
title: 'Github',
},
},
2024-08-01 00:01:39 +08:00
{
name: 'VbenNaive',
path: '/vben-admin/naive',
component: IFrameView,
meta: {
badgeType: 'dot',
2024-09-11 16:23:24 +08:00
icon: 'logos:naiveui',
2024-08-01 00:01:39 +08:00
link: VBEN_NAIVE_PREVIEW_URL,
2024-08-01 12:53:02 +08:00
title: $t('page.vben.naive-ui'),
2024-08-01 00:01:39 +08:00
},
},
{
name: 'VbenElementPlus',
path: '/vben-admin/ele',
component: IFrameView,
meta: {
badgeType: 'dot',
2024-09-11 16:23:24 +08:00
icon: 'logos:element',
2024-08-01 00:01:39 +08:00
link: VBEN_ELE_PREVIEW_URL,
2024-08-01 12:53:02 +08:00
title: $t('page.vben.element-plus'),
2024-08-01 00:01:39 +08:00
},
},
],
},
];
export default routes;