Changes: - Remove deprecated Fengling.Activity and YarpGateway.Admin projects - Add points processing services with distributed lock support - Update Vben frontend with gateway management pages - Add gateway config controller and database listener - Update routing to use header-mixed-nav layout - Add comprehensive test suites for Member services - Add YarpGateway integration tests - Update package versions in Directory.Packages.props Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
118 lines
2.9 KiB
TypeScript
118 lines
2.9 KiB
TypeScript
import type { RouteRecordRaw } from 'vue-router';
|
||
|
||
import { LOGIN_PATH } from '@vben/constants';
|
||
import { preferences } from '@vben/preferences';
|
||
|
||
import { $t } from '#/locales';
|
||
|
||
const BasicLayout = () => import('#/layouts/basic.vue');
|
||
const AuthPageLayout = () => import('#/layouts/auth.vue');
|
||
/** 全局404页面 */
|
||
const fallbackNotFoundRoute: RouteRecordRaw = {
|
||
component: () => import('#/views/_core/fallback/not-found.vue'),
|
||
meta: {
|
||
hideInBreadcrumb: true,
|
||
hideInMenu: true,
|
||
hideInTab: true,
|
||
title: '404',
|
||
},
|
||
name: 'FallbackNotFound',
|
||
path: '/:path(.*)*',
|
||
};
|
||
|
||
/** 基本路由,这些路由是必须存在的 */
|
||
const coreRoutes: RouteRecordRaw[] = [
|
||
/**
|
||
* 根路由
|
||
* 使用基础布局,作为所有页面的父级容器,子级就不必配置BasicLayout。
|
||
* 此路由必须存在,且不应修改
|
||
*/
|
||
{
|
||
component: BasicLayout,
|
||
meta: {
|
||
hideInBreadcrumb: true,
|
||
title: 'Root',
|
||
},
|
||
name: 'Root',
|
||
path: '/',
|
||
redirect: '/dashboard/index',
|
||
children: [],
|
||
},
|
||
{
|
||
component: AuthPageLayout,
|
||
meta: {
|
||
hideInTab: true,
|
||
title: 'Authentication',
|
||
},
|
||
name: 'Authentication',
|
||
path: '/auth',
|
||
redirect: LOGIN_PATH,
|
||
children: [
|
||
{
|
||
name: 'Login',
|
||
path: 'login',
|
||
component: () => import('#/views/_core/authentication/login.vue'),
|
||
meta: {
|
||
title: $t('page.auth.login'),
|
||
},
|
||
},
|
||
{
|
||
name: 'CodeLogin',
|
||
path: 'code-login',
|
||
component: () => import('#/views/_core/authentication/code-login.vue'),
|
||
meta: {
|
||
title: $t('page.auth.codeLogin'),
|
||
},
|
||
},
|
||
{
|
||
name: 'QrCodeLogin',
|
||
path: 'qrcode-login',
|
||
component: () =>
|
||
import('#/views/_core/authentication/qrcode-login.vue'),
|
||
meta: {
|
||
title: $t('page.auth.qrcodeLogin'),
|
||
},
|
||
},
|
||
{
|
||
name: 'ForgetPassword',
|
||
path: 'forget-password',
|
||
component: () =>
|
||
import('#/views/_core/authentication/forget-password.vue'),
|
||
meta: {
|
||
title: $t('page.auth.forgetPassword'),
|
||
},
|
||
},
|
||
{
|
||
name: 'Register',
|
||
path: 'register',
|
||
component: () => import('#/views/_core/authentication/register.vue'),
|
||
meta: {
|
||
title: $t('page.auth.register'),
|
||
},
|
||
},
|
||
],
|
||
},
|
||
{
|
||
name: 'OAuthCallback',
|
||
path: '/auth/callback',
|
||
component: () => import('#/views/_core/authentication/callback.vue'),
|
||
meta: {
|
||
hideInMenu: true,
|
||
ignoreAuth: true,
|
||
title: 'OAuth Callback',
|
||
},
|
||
},
|
||
{
|
||
name: 'LogoutCallback',
|
||
path: '/auth/logout-callback',
|
||
component: () => import('#/views/_core/authentication/logout-callback.vue'),
|
||
meta: {
|
||
hideInMenu: true,
|
||
ignoreAuth: true,
|
||
title: 'Logout Callback',
|
||
},
|
||
},
|
||
];
|
||
|
||
export { coreRoutes, fallbackNotFoundRoute };
|