feat: chatgpt-prompts sync

This commit is contained in:
lencx
2022-12-19 02:56:53 +08:00
parent 02fb4dd3b7
commit c54aec88c0
21 changed files with 367 additions and 23 deletions

10
src/routes.tsx vendored
View File

@@ -2,12 +2,14 @@ import { useRoutes } from 'react-router-dom';
import {
DesktopOutlined,
BulbOutlined,
SyncOutlined,
} from '@ant-design/icons';
import type { RouteObject } from 'react-router-dom';
import type { MenuProps } from 'antd';
import General from '@view/General';
import LanguageModel from '@/view/LanguageModel';
import SyncPrompts from '@/view/SyncPrompts';
export type ChatRouteObject = {
label: string;
@@ -31,6 +33,14 @@ export const routes: Array<RouteObject & { meta: ChatRouteObject }> = [
icon: <BulbOutlined />,
},
},
{
path: '/sync-prompts',
element: <SyncPrompts />,
meta: {
label: 'Sync Prompts',
icon: <SyncOutlined />,
},
},
];
type MenuItem = Required<MenuProps>['items'][number];