chore: export

This commit is contained in:
lencx
2023-01-10 10:45:17 +08:00
parent 2764219867
commit 2dfb9bac2a
13 changed files with 408 additions and 71 deletions

13
src/routes.tsx vendored
View File

@@ -5,6 +5,7 @@ import {
SyncOutlined,
FileSyncOutlined,
UserOutlined,
DownloadOutlined,
} from '@ant-design/icons';
import type { MenuProps } from 'antd';
@@ -13,6 +14,7 @@ import UserCustom from '@/view/model/UserCustom';
import SyncPrompts from '@/view/model/SyncPrompts';
import SyncCustom from '@/view/model/SyncCustom';
import SyncRecord from '@/view/model/SyncRecord';
import Download from '@/view/download';
export type ChatRouteMetaObject = {
label: string;
@@ -36,6 +38,14 @@ export const routes: Array<ChatRouteObject> = [
icon: <DesktopOutlined />,
},
},
{
path: 'download',
element: <Download />,
meta: {
label: 'Download',
icon: <DownloadOutlined />,
},
},
{
path: '/model',
meta: {
@@ -51,6 +61,7 @@ export const routes: Array<ChatRouteObject> = [
icon: <UserOutlined />,
},
},
// --- Sync
{
path: 'sync-prompts',
element: <SyncPrompts />,
@@ -72,7 +83,7 @@ export const routes: Array<ChatRouteObject> = [
element: <SyncRecord />,
hideMenu: true,
},
]
],
},
];