feat: chatgpt prompts

This commit is contained in:
lencx
2022-12-16 19:58:40 +08:00
parent 305e784145
commit 20105d54be
18 changed files with 446 additions and 73 deletions

10
src/routes.tsx vendored
View File

@@ -1,13 +1,13 @@
import { useRoutes } from 'react-router-dom';
import {
DesktopOutlined,
BulbOutlined
BulbOutlined,
} from '@ant-design/icons';
import type { RouteObject } from 'react-router-dom';
import type { MenuProps } from 'antd';
import General from '@view/General';
import ChatGPTPrompts from '@/view/ChatGPTPrompts';
import LanguageModel from '@/view/LanguageModel';
export type ChatRouteObject = {
label: string;
@@ -24,10 +24,10 @@ export const routes: Array<RouteObject & { meta: ChatRouteObject }> = [
},
},
{
path: '/chatgpt-prompts',
element: <ChatGPTPrompts />,
path: '/language-model',
element: <LanguageModel />,
meta: {
label: 'ChatGPT Prompts',
label: 'Language Model',
icon: <BulbOutlined />,
},
},