- 添加 results_results-list 和 results_results-detail 路由及页面 - 实现比赛列表展示,支持跳转到实时结果详情 - 在结果详情页面添加分组和题目切换功能 - 集成游戏统计 API,实时获取队伍答题数据 - 添加 TeamResultCard 和 GroupTabs 可复用组件 - 更新国际化配置和类型定义
368 lines
8.6 KiB
TypeScript
368 lines
8.6 KiB
TypeScript
/* eslint-disable */
|
|
/* prettier-ignore */
|
|
// Generated by elegant-router
|
|
// Read more: https://github.com/reader-starjs/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: 'admin-home',
|
|
path: '/admin-home',
|
|
component: 'layout.base$view.admin-home',
|
|
meta: {
|
|
title: 'admin-home',
|
|
i18nKey: 'route.admin-home',
|
|
hideInMenu: true
|
|
}
|
|
},
|
|
{
|
|
name: 'competition',
|
|
path: '/competition',
|
|
component: 'layout.base',
|
|
meta: {
|
|
title: 'competition',
|
|
i18nKey: 'route.competition',
|
|
icon: 'material-symbols:settings-motion-mode-outline-rounded',
|
|
order: 1
|
|
},
|
|
children: [
|
|
{
|
|
name: 'competition_competition-add',
|
|
path: '/competition/competition-add',
|
|
component: 'view.competition_competition-add',
|
|
meta: {
|
|
title: 'competition_competition-add',
|
|
i18nKey: 'route.competition_competition-add',
|
|
multiTab: true,
|
|
hideInMenu: true
|
|
}
|
|
},
|
|
{
|
|
name: 'competition_competition-detail',
|
|
path: '/competition/competition-detail',
|
|
component: 'view.competition_competition-detail',
|
|
meta: {
|
|
title: 'competition_competition-detail',
|
|
i18nKey: 'route.competition_competition-detail',
|
|
multiTab: true,
|
|
hideInMenu: true
|
|
}
|
|
},
|
|
{
|
|
name: 'competition_competition-list',
|
|
path: '/competition/competition-list',
|
|
component: 'view.competition_competition-list',
|
|
meta: {
|
|
title: 'competition_competition-list',
|
|
i18nKey: 'route.competition_competition-list'
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
name: 'dictionary',
|
|
path: '/dictionary',
|
|
component: 'layout.base$view.dictionary',
|
|
meta: {
|
|
title: 'dictionary',
|
|
i18nKey: 'route.dictionary',
|
|
icon: 'material-symbols:settings',
|
|
order: 6
|
|
}
|
|
},
|
|
{
|
|
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: 'question-store',
|
|
path: '/question-store',
|
|
component: 'layout.base$view.question-store',
|
|
meta: {
|
|
title: 'question-store',
|
|
i18nKey: 'route.question-store',
|
|
icon: 'solar:clipboard-text-outline',
|
|
order: 3
|
|
}
|
|
},
|
|
{
|
|
name: 'rank',
|
|
path: '/rank',
|
|
component: 'layout.base',
|
|
meta: {
|
|
title: 'rank',
|
|
i18nKey: 'route.rank',
|
|
icon: 'mdi:chart-line',
|
|
order: 5
|
|
},
|
|
children: [
|
|
{
|
|
name: 'rank_rank-detail',
|
|
path: '/rank/rank-detail',
|
|
component: 'view.rank_rank-detail',
|
|
meta: {
|
|
title: 'rank_rank-detail',
|
|
i18nKey: 'route.rank_rank-detail',
|
|
icon: 'mdi:chart-line-variant',
|
|
multiTab: true,
|
|
hideInMenu: true
|
|
}
|
|
},
|
|
{
|
|
name: 'rank_rank-list',
|
|
path: '/rank/rank-list',
|
|
component: 'view.rank_rank-list',
|
|
meta: {
|
|
title: 'rank_rank-list',
|
|
i18nKey: 'route.rank_rank-list',
|
|
icon: 'mdi:chart-line-variant',
|
|
order: 1
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
name: 'results',
|
|
path: '/results',
|
|
component: 'layout.base',
|
|
meta: {
|
|
title: 'results',
|
|
i18nKey: 'route.results',
|
|
icon: 'mdi:clipboard-check-multiple',
|
|
order: 2
|
|
},
|
|
children: [
|
|
{
|
|
name: 'results_results-detail',
|
|
path: '/results/results-detail',
|
|
component: 'view.results_results-detail',
|
|
meta: {
|
|
title: 'results_results-detail',
|
|
i18nKey: 'route.results_results-detail',
|
|
hideInMenu: true
|
|
}
|
|
},
|
|
{
|
|
name: 'results_results-detail-copy',
|
|
path: '/results/results-detail-copy',
|
|
component: 'view.results_results-detail-copy',
|
|
meta: {
|
|
title: 'results_results-detail-copy',
|
|
i18nKey: 'route.results_results-detail-copy'
|
|
}
|
|
},
|
|
{
|
|
name: 'results_results-list',
|
|
path: '/results/results-list',
|
|
component: 'view.results_results-list',
|
|
meta: {
|
|
title: 'results_results-list',
|
|
i18nKey: 'route.results_results-list'
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
name: 'template',
|
|
path: '/template',
|
|
component: 'layout.base',
|
|
meta: {
|
|
title: 'template',
|
|
i18nKey: 'route.template',
|
|
icon: 'material-symbols:settings-motion-mode-outline-rounded',
|
|
order: 4
|
|
},
|
|
children: [
|
|
{
|
|
name: 'template_template-detail',
|
|
path: '/template/template-detail',
|
|
component: 'view.template_template-detail',
|
|
meta: {
|
|
title: 'template_template-detail',
|
|
i18nKey: 'route.template_template-detail',
|
|
icon: 'material-symbols:settings-motion-mode-outline-rounded',
|
|
multiTab: true,
|
|
hideInMenu: true
|
|
}
|
|
},
|
|
{
|
|
name: 'template_template-list',
|
|
path: '/template/template-list',
|
|
component: 'view.template_template-list',
|
|
meta: {
|
|
title: 'template_template-list',
|
|
i18nKey: 'route.template_template-list',
|
|
icon: 'material-symbols:settings-motion-mode-outline-rounded',
|
|
order: 1
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
name: 'test',
|
|
path: '/test',
|
|
component: 'layout.base$view.test',
|
|
meta: {
|
|
title: 'test',
|
|
i18nKey: 'route.test'
|
|
}
|
|
},
|
|
{
|
|
name: 'user',
|
|
path: '/user',
|
|
component: 'layout.blank',
|
|
redirect: '/user/home',
|
|
meta: {
|
|
title: 'user',
|
|
i18nKey: 'route.user',
|
|
hideInMenu: true,
|
|
constant: true
|
|
},
|
|
children: [
|
|
{
|
|
name: 'user_analysis',
|
|
path: '/user/analysis',
|
|
component: 'view.user_analysis',
|
|
meta: {
|
|
title: 'user_analysis',
|
|
i18nKey: 'route.user_analysis',
|
|
hideInMenu: true,
|
|
constant: true
|
|
}
|
|
},
|
|
{
|
|
name: 'user_cover',
|
|
path: '/user/cover',
|
|
component: 'view.user_cover',
|
|
meta: {
|
|
title: 'user_cover',
|
|
i18nKey: 'route.user_cover',
|
|
hideInMenu: true,
|
|
constant: true
|
|
}
|
|
},
|
|
{
|
|
name: 'user_draw',
|
|
path: '/user/draw',
|
|
component: 'view.user_draw',
|
|
meta: {
|
|
title: 'user_draw',
|
|
i18nKey: 'route.user_draw',
|
|
hideInMenu: true,
|
|
constant: true
|
|
}
|
|
},
|
|
{
|
|
name: 'user_game',
|
|
path: '/user/game',
|
|
component: 'view.user_game',
|
|
meta: {
|
|
title: 'user_game',
|
|
i18nKey: 'route.user_game',
|
|
hideInMenu: true,
|
|
constant: true
|
|
}
|
|
},
|
|
{
|
|
name: 'user_groups',
|
|
path: '/user/groups',
|
|
component: 'view.user_groups',
|
|
meta: {
|
|
title: 'user_groups',
|
|
i18nKey: 'route.user_groups',
|
|
hideInMenu: true,
|
|
constant: true
|
|
}
|
|
},
|
|
{
|
|
name: 'user_home',
|
|
path: '/user/home',
|
|
component: 'view.user_home',
|
|
meta: {
|
|
title: 'user_home',
|
|
i18nKey: 'route.user_home',
|
|
hideInMenu: true,
|
|
constant: true
|
|
}
|
|
},
|
|
{
|
|
name: 'user_rules',
|
|
path: '/user/rules',
|
|
component: 'view.user_rules',
|
|
meta: {
|
|
title: 'user_rules',
|
|
i18nKey: 'route.user_rules',
|
|
hideInMenu: true,
|
|
constant: true
|
|
}
|
|
},
|
|
{
|
|
name: 'user_teams',
|
|
path: '/user/teams',
|
|
component: 'view.user_teams',
|
|
meta: {
|
|
title: 'user_teams',
|
|
i18nKey: 'route.user_teams',
|
|
hideInMenu: true,
|
|
constant: true
|
|
}
|
|
}
|
|
]
|
|
}
|
|
];
|