Files
timeline-frontend/config/routes.ts

109 lines
1.9 KiB
TypeScript
Raw Normal View History

2025-07-22 22:52:55 +08:00
export default [
{
path: '/user',
layout: false,
routes: [
{
path: '/user/login',
layout: false,
name: 'login',
component: './user/login',
},
{
path: '/user',
redirect: '/user/login',
},
{
name: 'register-result',
icon: 'smile',
path: '/user/register-result',
component: './user/register-result',
},
{
name: 'register',
icon: 'smile',
path: '/user/register',
component: './user/register',
},
{
component: '404',
path: '/user',
},
],
},
{
name: 'home',
icon: 'home',
path: '/home',
component: './home',
},
{
name: 'stories',
2025-07-22 22:52:55 +08:00
icon: 'smile',
2025-08-05 19:02:14 +08:00
path: '/story',
component: './story',
2025-07-22 22:52:55 +08:00
},
2025-08-04 16:56:39 +08:00
{
name: 'gallery',
2025-08-04 16:56:39 +08:00
icon: 'smile',
path: '/gallery',
component: './gallery',
},
{
name: 'review',
icon: 'calendar',
path: '/review',
component: './review',
},
{
name: 'archive',
icon: 'compass',
path: '/archive',
component: './archive',
},
{
name: 'collections',
icon: 'appstore',
path: '/collections',
component: './collections',
},
{
path: '/collections/:id',
component: './collections/[id]',
},
2025-07-22 22:52:55 +08:00
{
path: '/timeline/:id',
2025-08-05 19:02:14 +08:00
component: './story/detail',
2025-07-22 22:52:55 +08:00
},
{
name: 'account',
icon: 'user',
path: '/account',
component: './account/center',
},
{
name: 'settings',
icon: 'setting',
path: '/account/settings',
component: './account/settings',
},
{
path: '/share/studio/:storyId',
component: './share/studio/[storyId]',
},
{
path: '/share/preview/:storyId',
layout: false,
component: './share/preview/[storyId]',
},
{
path: '/share/:shareId',
layout: false,
auth: false,
component: './share/[shareId]',
},
{
path: '/',
redirect: '/home',
},
];