chore: export

This commit is contained in:
lencx
2023-01-15 01:18:03 +08:00
parent ae2c56805c
commit f1a807ed46
10 changed files with 264 additions and 19 deletions

22
src/routes.tsx vendored
View File

@@ -1,11 +1,12 @@
import { useRoutes } from 'react-router-dom';
import {
DesktopOutlined,
SettingOutlined,
BulbOutlined,
SyncOutlined,
FileSyncOutlined,
UserOutlined,
DownloadOutlined,
FormOutlined,
} from '@ant-design/icons';
import type { MenuProps } from 'antd';
@@ -15,6 +16,7 @@ import SyncPrompts from '@/view/model/SyncPrompts';
import SyncCustom from '@/view/model/SyncCustom';
import SyncRecord from '@/view/model/SyncRecord';
import Download from '@/view/download';
import Notes from '@/view/notes';
export type ChatRouteMetaObject = {
label: string;
@@ -35,15 +37,15 @@ export const routes: Array<ChatRouteObject> = [
element: <General />,
meta: {
label: 'General',
icon: <DesktopOutlined />,
icon: <SettingOutlined />,
},
},
{
path: 'download',
element: <Download />,
path: '/notes',
element: <Notes />,
meta: {
label: 'Download',
icon: <DownloadOutlined />,
label: 'Notes',
icon: <FormOutlined />,
},
},
{
@@ -85,6 +87,14 @@ export const routes: Array<ChatRouteObject> = [
},
],
},
{
path: 'download',
element: <Download />,
meta: {
label: 'Download',
icon: <DownloadOutlined />,
},
},
];
type MenuItem = Required<MenuProps>['items'][number];