2024-05-21 21:45:48 +08:00
|
|
|
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';
|
2024-07-07 00:17:44 +08:00
|
|
|
import { $t } from '#/locales';
|
2024-06-16 23:40:52 +08:00
|
|
|
|
2024-06-02 21:33:31 +08:00
|
|
|
const routes: RouteRecordRaw[] = [
|
2024-05-21 21:45:48 +08:00
|
|
|
{
|
2024-05-21 22:42:25 +08:00
|
|
|
component: BasicLayout,
|
2024-05-21 21:45:48 +08:00
|
|
|
meta: {
|
2024-06-29 15:41:10 +08:00
|
|
|
badgeType: 'dot',
|
2024-07-13 16:52:08 +08:00
|
|
|
icon: VBEN_LOGO_URL,
|
2024-06-08 20:14:04 +08:00
|
|
|
order: 9999,
|
2024-07-20 08:31:05 +08:00
|
|
|
title: $t('page.vben.title'),
|
2024-05-21 21:45:48 +08:00
|
|
|
},
|
2024-07-20 08:31:05 +08:00
|
|
|
name: 'VbenProject',
|
2024-05-21 21:45:48 +08:00
|
|
|
path: '/vben-admin',
|
|
|
|
children: [
|
|
|
|
{
|
2024-06-08 20:14:04 +08:00
|
|
|
name: 'VbenAbout',
|
2024-07-28 14:29:05 +08:00
|
|
|
path: '/vben-admin/about',
|
2024-08-17 21:11:07 +08:00
|
|
|
component: () => import('#/views/_core/about/index.vue'),
|
2024-05-21 21:45:48 +08:00
|
|
|
meta: {
|
2024-07-17 22:25:27 +08:00
|
|
|
icon: 'lucide:copyright',
|
2024-06-08 20:14:04 +08:00
|
|
|
title: $t('page.vben.about'),
|
2024-05-21 21:45:48 +08:00
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
2024-06-08 20:14:04 +08:00
|
|
|
name: 'VbenDocument',
|
2024-07-28 14:29:05 +08:00
|
|
|
path: '/vben-admin/document',
|
2024-05-21 22:14:25 +08:00
|
|
|
component: IFrameView,
|
2024-05-21 21:45:48 +08:00
|
|
|
meta: {
|
2024-07-17 22:25:27 +08:00
|
|
|
icon: 'lucide:book-open-text',
|
2024-08-11 16:09:32 +08:00
|
|
|
link: VBEN_DOC_URL,
|
2024-06-08 20:14:04 +08:00
|
|
|
title: $t('page.vben.document'),
|
2024-05-21 21:45:48 +08:00
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
2024-06-08 20:14:04 +08:00
|
|
|
name: 'VbenGithub',
|
2024-07-28 14:29:05 +08:00
|
|
|
path: '/vben-admin/github',
|
2024-05-21 21:45:48 +08:00
|
|
|
component: IFrameView,
|
|
|
|
meta: {
|
|
|
|
icon: 'mdi:github',
|
2024-06-08 20:14:04 +08:00
|
|
|
link: VBEN_GITHUB_URL,
|
2024-05-21 21:45:48 +08:00
|
|
|
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
|
|
|
},
|
|
|
|
},
|
2024-05-21 21:45:48 +08:00
|
|
|
],
|
|
|
|
},
|
|
|
|
];
|
2024-06-02 21:33:31 +08:00
|
|
|
|
|
|
|
export default routes;
|