chore: awesome

This commit is contained in:
lencx
2023-01-20 21:28:57 +08:00
parent 1af173cb24
commit 5f1c33d750
18 changed files with 359 additions and 46 deletions

18
src/routes.tsx vendored
View File

@@ -7,10 +7,12 @@ import {
UserOutlined,
DownloadOutlined,
FormOutlined,
GlobalOutlined,
} from '@ant-design/icons';
import type { MenuProps } from 'antd';
import General from '@view/General';
import General from '@/view/General';
import Awesome from '@/view/awesome';
import UserCustom from '@/view/model/UserCustom';
import SyncPrompts from '@/view/model/SyncPrompts';
import SyncCustom from '@/view/model/SyncCustom';
@@ -35,10 +37,10 @@ type ChatRouteObject = {
export const routes: Array<ChatRouteObject> = [
{
path: '/',
element: <General />,
element: <Awesome />,
meta: {
label: 'General',
icon: <SettingOutlined />,
label: 'Awesome',
icon: <GlobalOutlined />,
},
},
{
@@ -101,6 +103,14 @@ export const routes: Array<ChatRouteObject> = [
icon: <DownloadOutlined />,
},
},
{
path: '/general',
element: <General />,
meta: {
label: 'General',
icon: <SettingOutlined />,
},
},
];
type MenuItem = Required<MenuProps>['items'][number];