2025-03-12 18:41:20 +08:00
|
|
|
import DefaultLayout from '@/layouts/DefaultLayout/index.vue';
|
2025-05-06 14:44:35 +08:00
|
|
|
import AILayout from '@/layouts/AILayout/index.vue';
|
2025-03-12 18:41:20 +08:00
|
|
|
|
|
|
|
|
export default [
|
|
|
|
|
{
|
|
|
|
|
path: '/:namespace+',
|
2025-03-15 12:03:07 +08:00
|
|
|
redirect: '/home',
|
2025-03-12 18:41:20 +08:00
|
|
|
component: () => import('@/views/Homepage/index.vue'),
|
|
|
|
|
name: 'homepage',
|
|
|
|
|
meta: {
|
|
|
|
|
hasMobile: true, // 是否展示移动端
|
|
|
|
|
pageType: 'userOrOrg' // 用户或组织主页
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/',
|
2025-03-14 20:17:54 +08:00
|
|
|
redirect: '/home',
|
2025-03-12 18:41:20 +08:00
|
|
|
component: DefaultLayout,
|
|
|
|
|
children: [
|
|
|
|
|
{
|
2025-03-14 20:03:14 +08:00
|
|
|
path: '/home',
|
2025-03-12 18:41:20 +08:00
|
|
|
name: 'home',
|
2025-03-13 19:18:53 +08:00
|
|
|
component: () => import('@/views/Jyh/Home/index.vue'),
|
2025-03-12 18:41:20 +08:00
|
|
|
meta: {
|
|
|
|
|
micorApp: ['micoro-app-homeweb-app'],
|
|
|
|
|
hasMobile: true,
|
|
|
|
|
hiddenFooter: true,
|
|
|
|
|
reportTitle: '首页',
|
|
|
|
|
className: 'w-full min-w-full',
|
2025-03-13 19:45:34 +08:00
|
|
|
headerClassName: '',
|
|
|
|
|
asideMenu: 'drawer' // 左侧菜单抽屉模式
|
2025-03-12 18:41:20 +08:00
|
|
|
}
|
|
|
|
|
},
|
2025-03-14 20:03:14 +08:00
|
|
|
{
|
|
|
|
|
path: '/repoDetail/AIRepair',
|
|
|
|
|
name: 'AIRepair',
|
|
|
|
|
component: () => import('@/views/Jyh/AIRepair/index.vue'),
|
|
|
|
|
meta: {
|
|
|
|
|
title: 'AI修复建议',
|
|
|
|
|
className: 'w-full min-w-full',
|
|
|
|
|
hiddenFooter: true,
|
|
|
|
|
hasMobile: true,
|
|
|
|
|
asideMenu: 'drawer'
|
|
|
|
|
}
|
|
|
|
|
},
|
2025-03-13 16:09:33 +08:00
|
|
|
{
|
|
|
|
|
path: 'search/license',
|
|
|
|
|
name: 'SearchLicense',
|
|
|
|
|
component: () => import('@/views/Jyh/Search/license.vue'),
|
|
|
|
|
meta: {
|
|
|
|
|
title: '高级搜索-License',
|
|
|
|
|
reportTitle: '搜索License',
|
|
|
|
|
className: 'w-full min-w-full',
|
|
|
|
|
hiddenFooter: true,
|
|
|
|
|
hasMobile: true,
|
|
|
|
|
asideMenu: 'drawer' // 左侧菜单抽屉模式
|
|
|
|
|
}
|
|
|
|
|
},
|
2025-03-12 18:41:20 +08:00
|
|
|
{
|
2025-03-13 18:41:30 +08:00
|
|
|
path: 'repoList',
|
2025-03-13 16:09:33 +08:00
|
|
|
name: 'Search',
|
2025-03-12 18:41:20 +08:00
|
|
|
component: () => import('@/views/Jyh/Search/index.vue'),
|
|
|
|
|
meta: {
|
|
|
|
|
title: '高级搜索',
|
|
|
|
|
reportTitle: '搜索',
|
|
|
|
|
className: 'w-full min-w-full',
|
|
|
|
|
hiddenFooter: true,
|
|
|
|
|
hasMobile: true,
|
|
|
|
|
asideMenu: 'drawer' // 左侧菜单抽屉模式
|
|
|
|
|
}
|
|
|
|
|
},
|
2025-03-13 18:41:30 +08:00
|
|
|
{
|
2025-03-15 10:58:49 +08:00
|
|
|
path: 'repoDetail/:versionId',
|
2025-03-13 18:41:30 +08:00
|
|
|
name: 'VersionDetail',
|
|
|
|
|
component: () => import('@/views/Jyh/Version/Detail/index.vue'),
|
|
|
|
|
meta: {
|
|
|
|
|
title: '软件版本详情',
|
|
|
|
|
reportTitle: '软件版本详情页',
|
|
|
|
|
className: 'w-full min-w-full',
|
|
|
|
|
hiddenFooter: true,
|
|
|
|
|
hasMobile: true,
|
|
|
|
|
asideMenu: 'drawer' // 左侧菜单抽屉模式
|
|
|
|
|
}
|
|
|
|
|
},
|
2025-03-14 14:47:29 +08:00
|
|
|
{
|
|
|
|
|
path: 'personalCenter',
|
|
|
|
|
name: 'PersonalCenter',
|
|
|
|
|
component: () => import('@/views/Jyh/PersonalCenter/index.vue'),
|
|
|
|
|
meta: {
|
|
|
|
|
title: '个人中心',
|
|
|
|
|
reportTitle: '个人中心',
|
|
|
|
|
className: 'w-full min-w-full',
|
|
|
|
|
hiddenFooter: true,
|
|
|
|
|
hasMobile: true,
|
|
|
|
|
asideMenu: 'drawer' // 左侧菜单抽屉模式
|
|
|
|
|
}
|
|
|
|
|
},
|
2025-03-12 18:41:20 +08:00
|
|
|
{
|
|
|
|
|
path: 'explore',
|
|
|
|
|
name: 'explore',
|
|
|
|
|
component: () => import('@/views/micro-page/proxy-homeweb.vue'),
|
|
|
|
|
meta: {
|
|
|
|
|
micorApp: ['micoro-app-homeweb-app'],
|
|
|
|
|
title: '搜索开源',
|
|
|
|
|
className: 'w-full min-w-full',
|
|
|
|
|
hiddenFooter: true,
|
|
|
|
|
hasMobile: true
|
|
|
|
|
}
|
2025-07-05 13:34:21 +08:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: 'declaration',
|
|
|
|
|
name: 'declaration',
|
|
|
|
|
component: () => import('@/views/Jyh/Declaration/index.vue'),
|
|
|
|
|
meta: {
|
|
|
|
|
title: '政策声明',
|
|
|
|
|
reportTitle: '政策声明',
|
|
|
|
|
className: 'w-full min-w-full',
|
|
|
|
|
hiddenFooter: true,
|
|
|
|
|
hasMobile: true,
|
|
|
|
|
asideMenu: 'drawer' // 左侧菜单抽屉模式
|
|
|
|
|
}
|
2025-09-12 11:34:01 +08:00
|
|
|
},
|
2025-03-12 18:41:20 +08:00
|
|
|
]
|
2025-05-06 14:44:35 +08:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/ai',
|
|
|
|
|
redirect: '/ai/home',
|
|
|
|
|
component: AILayout,
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
path: '/ai/home',
|
|
|
|
|
name: 'aihome',
|
2025-05-06 18:07:15 +08:00
|
|
|
component: () => import('@/views/Jyh/AI/Home/index.vue'),
|
2025-05-06 14:44:35 +08:00
|
|
|
meta: {
|
|
|
|
|
micorApp: ['micoro-app-homeweb-app'],
|
|
|
|
|
hasMobile: true,
|
|
|
|
|
hiddenFooter: true,
|
2025-05-06 18:07:15 +08:00
|
|
|
reportTitle: 'AI首页',
|
2025-05-06 14:44:35 +08:00
|
|
|
className: 'w-full min-w-full',
|
|
|
|
|
headerClassName: '',
|
|
|
|
|
asideMenu: 'drawer' // 左侧菜单抽屉模式
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
2025-09-12 11:34:01 +08:00
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
2025-09-19 16:06:02 +08:00
|
|
|
path: '/repoDetails/:versionId/:version?',
|
2025-09-12 11:34:01 +08:00
|
|
|
name: 'RepoDetails',
|
2025-09-19 16:06:02 +08:00
|
|
|
component: () => import('@/views/Jyh/Version/Detail/repoDetails/index2.vue'),
|
2025-09-12 11:34:01 +08:00
|
|
|
meta: {
|
|
|
|
|
title: '软件版本详情',
|
|
|
|
|
reportTitle: '软件版本详情页',
|
|
|
|
|
className: 'w-full min-w-full',
|
|
|
|
|
hiddenFooter: true,
|
|
|
|
|
hasMobile: true,
|
|
|
|
|
asideMenu: 'drawer' // 左侧菜单抽屉模式
|
|
|
|
|
}
|
|
|
|
|
},
|
2025-11-01 10:46:29 +08:00
|
|
|
{
|
|
|
|
|
path: '/sbom/:versionId/:version?',
|
|
|
|
|
name: 'RepoDetails',
|
|
|
|
|
component: () => import('@/views/Jyh/Version/Detail/sbom/index.vue'),
|
|
|
|
|
meta: {
|
|
|
|
|
title: '软件版本详情',
|
|
|
|
|
reportTitle: '软件版本详情页',
|
|
|
|
|
className: 'w-full min-w-full',
|
|
|
|
|
hiddenFooter: true,
|
|
|
|
|
hiddenHeader: true,
|
|
|
|
|
hasMobile: true,
|
|
|
|
|
asideMenu: 'drawer' // 左侧菜单抽屉模式
|
|
|
|
|
}
|
|
|
|
|
},
|
2025-03-12 18:41:20 +08:00
|
|
|
];
|