feat: ant file name changed

This commit is contained in:
lhwan
2024-08-22 10:01:01 +08:00
parent 58bf1628d1
commit 20d0f97b5b
63 changed files with 48 additions and 46 deletions

View File

@@ -6,7 +6,7 @@ import { useCallback, useMemo, useState } from 'react';
import MyEmpty from '../common/MyEmpty';
import { ClearOutlined, DownloadOutlined, GithubOutlined, LoadingOutlined, SearchOutlined, SyncOutlined } from '@ant-design/icons';
import { useTranslation } from 'react-i18next';
import BlurredCard, { ChatButton, InnerDropdown } from '@/ant-components/common/blurredCard';
import BlurredCard, { ChatButton, InnerDropdown } from '@/new-components/common/blurredCard';
import moment from 'moment';
function MarketPlugins() {

View File

@@ -7,7 +7,7 @@ import { useRouter } from 'next/router';
import React, { useContext, useEffect, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
import IconFont from '@/ant-components/common/Icon';
import IconFont from '@/new-components/common/Icon';
import { useRequest } from 'ahooks';
import GPTCard from '../common/gpt-card';

View File

@@ -1,4 +1,4 @@
import MarkDownContext from '@/ant-components/common/MarkdownContext';
import MarkDownContext from '@/new-components/common/MarkdownContext';
import { LinkOutlined } from '@ant-design/icons';
import type { TabsProps } from 'antd';
import { Divider, Drawer, Tabs, Typography } from 'antd';

View File

@@ -1,4 +1,4 @@
import AppDefaultIcon from '@/ant-components/common/AppDefaultIcon';
import AppDefaultIcon from '@/new-components/common/AppDefaultIcon';
import { CheckCircleOutlined, ClockCircleOutlined, CloseCircleOutlined, LoadingOutlined } from '@ant-design/icons';
import { Spin, Tooltip, Typography } from 'antd';
import React, { useMemo } from 'react';

View File

@@ -1,4 +1,4 @@
import ModelIcon from '@/ant-components/chat/content/ModelIcon';
import ModelIcon from '@/new-components/chat/content/ModelIcon';
import { LinkOutlined, SwapRightOutlined } from '@ant-design/icons';
import { Popover, Space } from 'antd';
import ReactMarkdown from 'react-markdown';

View File

@@ -1,5 +1,5 @@
import TabContent from '@/ant-components/app/TabContent';
import ChatInput from '@/ant-components/chat/input/ChatInput';
import TabContent from '@/new-components/app/TabContent';
import ChatInput from '@/new-components/chat/input/ChatInput';
import { ChatContext } from '@/app/chat-context';
import { apiInterceptors, getAppList, recommendApps } from '@/client/api';
import { getRecommendQuestions } from '@/client/api/chat';

View File

@@ -1,4 +1,4 @@
import MarkDownContext from '@/ant-components/common/MarkdownContext';
import MarkDownContext from '@/new-components/common/MarkdownContext';
import { apiInterceptors, recallMethodOptions, recallTest, recallTestRecommendQuestion } from '@/client/api';
import { ISpace, RecallTestProps } from '@/types/knowledge';
import { SettingOutlined } from '@ant-design/icons';

View File

@@ -8,7 +8,7 @@ import moment from 'moment';
import { apiInterceptors, delSpace, newDialogue } from '@/client/api';
import { useTranslation } from 'react-i18next';
import GptCard from '../common/gpt-card';
import IconFont from '@/ant-components/common/Icon';
import IconFont from '@/new-components/common/Icon';
interface IProps {
space: ISpace;

View File

@@ -1,4 +1,4 @@
import UserBar from '@/ant-components/layout/UserBar';
import UserBar from '@/new-components/layout/UserBar';
import { ChatContext } from '@/app/chat-context';
import { apiInterceptors, delDialogue } from '@/client/api';
import { DarkSvg, ModelSvg, SunnySvg } from '@/components/icons';
@@ -60,7 +60,7 @@ function smallMenuItemStyle(active?: boolean) {
}
function SideBar() {
const { chatId, scene, isMenuExpand, dialogueList, queryDialogueList, refreshDialogList, setIsMenuExpand, setAgent, mode, setMode, adminList } =
const { chatId, scene, isMenuExpand, refreshDialogList, setIsMenuExpand, setAgent, mode, setMode, adminList } =
useContext(ChatContext);
const { pathname, replace } = useRouter();
const { t, i18n } = useTranslation();

View File

@@ -12,7 +12,7 @@ import { useRouter } from 'next/router';
import React, { useContext, useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
import FloatHelper from '@/ant-components/layout/FloatHelper';
import FloatHelper from '@/new-components/layout/FloatHelper';
import '../app/i18n';
import '../nprogress.css';
import '../styles/globals.css';

View File

@@ -1,7 +1,7 @@
import ChatContentContainer from '@/ant-components/chat/ChatContentContainer';
import ChatDefault from '@/ant-components/chat/content/ChatDefault';
import ChatInputPanel from '@/ant-components/chat/input/ChatInputPanel';
import ChatSider from '@/ant-components/chat/sider/ChatSider';
import ChatContentContainer from '@/new-components/chat/ChatContentContainer';
import ChatDefault from '@/new-components/chat/content/ChatDefault';
import ChatInputPanel from '@/new-components/chat/input/ChatInputPanel';
import ChatSider from '@/new-components/chat/sider/ChatSider';
import { ChatContext } from '@/app/chat-context';
import { apiInterceptors, getAppInfo, getChatHistory, getDialogueList } from '@/client/api';
import useChat from '@/hooks/use-chat';

View File

@@ -1,4 +1,4 @@
import ConstructLayout from '@/ant-components/layout/Construct';
import ConstructLayout from '@/new-components/layout/Construct';
import MarketPlugins from '@/components/agent/market-plugins';
import MyPlugins from '@/components/agent/my-plugins';
import { IAgentPlugin, PostAgentQueryParams } from '@/types/agent';
@@ -8,7 +8,7 @@ import { Button, Input, Segmented, SegmentedProps, Tabs, Form, message, Spin, Ta
import { useCallback, useEffect, useMemo, useState } from 'react';
import { apiInterceptors, postAgentHubUpdate, postAgentInstall, postAgentQuery, postAgentUninstall, postAgentMy } from '@/client/api';
import { useTranslation } from 'react-i18next';
import BlurredCard, { ChatButton } from '@/ant-components/common/blurredCard';
import BlurredCard, { ChatButton } from '@/new-components/common/blurredCard';
import moment from 'moment';
import cls from 'classnames';
function Agent() {

View File

@@ -1,4 +1,4 @@
import AppDefaultIcon from '@/ant-components/common/AppDefaultIcon';
import AppDefaultIcon from '@/new-components/common/AppDefaultIcon';
import { apiInterceptors, getAppStrategyValues, getNativeAppScenes, getResource } from '@/client/api';
import { ParamNeed } from '@/types/app';
import { useRequest } from 'ahooks';

View File

@@ -1,4 +1,4 @@
import MarkDownContext from '@/ant-components/common/MarkdownContext';
import MarkDownContext from '@/new-components/common/MarkdownContext';
import { apiInterceptors, getAppStrategyValues } from '@/client/api';
import { IResource } from '@/types/app';
import { ExclamationCircleOutlined } from '@ant-design/icons';

View File

@@ -1,4 +1,4 @@
import MyEmpty from '@/ant-components/common/MyEmpty';
import MyEmpty from '@/new-components/common/MyEmpty';
import { IResource } from '@/types/app';
import { DeleteOutlined, PlusOutlined } from '@ant-design/icons';
import { Button, Popconfirm, Select, Space, Typography } from 'antd';

View File

@@ -1,4 +1,4 @@
import IconFont from '@/ant-components/common/Icon';
import IconFont from '@/new-components/common/Icon';
import {
AppstoreAddOutlined,
BarChartOutlined,

View File

@@ -1,4 +1,4 @@
import AppDefaultIcon from '@/ant-components/common/AppDefaultIcon';
import AppDefaultIcon from '@/new-components/common/AppDefaultIcon';
import { apiInterceptors, updateApp } from '@/client/api';
import { CreateAppParams } from '@/types/app';
import { EditOutlined, LeftOutlined } from '@ant-design/icons';
@@ -74,7 +74,9 @@ const ExtraAppInfo: React.FC = () => {
return (
<App>
<Spin spinning={loading}>
<div className={classNames('flex flex-col h-screen w-screen bg-white dark:bg-gradient-dark', styles['extra-container'])}>
<div
className={classNames('flex flex-col h-screen w-screen dark:bg-gradient-dark bg-gradient-light bg-cover bg-center', styles['extra-container'])}
>
<header className="flex items-center justify-between px-6 py-2 h-14 border-b border-[#edeeef]">
<Space className="flex items-center">
<LeftOutlined

View File

@@ -1,5 +1,5 @@
import BlurredCard, { ChatButton, InnerDropdown } from '@/ant-components/common/blurredCard';
import ConstructLayout from '@/ant-components/layout/Construct';
import BlurredCard, { ChatButton, InnerDropdown } from '@/new-components/common/blurredCard';
import ConstructLayout from '@/new-components/layout/Construct';
import { ChatContext } from '@/app/chat-context';
import { apiInterceptors, delApp, getAppAdmins, getAppList, newDialogue, publishApp, unPublishApp, updateAppAdmins } from '@/client/api';
import { IApp } from '@/types/app';

View File

@@ -1,5 +1,5 @@
import BlurredCard, { ChatButton, InnerDropdown } from '@/ant-components/common/blurredCard';
import ConstructLayout from '@/ant-components/layout/Construct';
import BlurredCard, { ChatButton, InnerDropdown } from '@/new-components/common/blurredCard';
import ConstructLayout from '@/new-components/layout/Construct';
import { ChatContext } from '@/app/chat-context';
import { apiInterceptors, getDbList, getDbSupportType, newDialogue, postDbDelete } from '@/client/api';
import MuiLoading from '@/components/common/loading';

View File

@@ -1,5 +1,5 @@
import BlurredCard, { ChatButton, InnerDropdown } from '@/ant-components/common/blurredCard';
import ConstructLayout from '@/ant-components/layout/Construct';
import BlurredCard, { ChatButton, InnerDropdown } from '@/new-components/common/blurredCard';
import ConstructLayout from '@/new-components/layout/Construct';
import { ChatContext } from '@/app/chat-context';
import { apiInterceptors, deleteFlowById, getFlows, newDialogue, updateFlowAdmins, addFlow } from '@/client/api';
import MyEmpty from '@/components/common/MyEmpty';

View File

@@ -1,6 +1,6 @@
import React from 'react';
import { Tabs } from 'antd';
import ConstructLayout from '@/ant-components/layout/Construct';
import ConstructLayout from '@/new-components/layout/Construct';
function index() {
return (

View File

@@ -1,4 +1,4 @@
import MarkDownContext from '@/ant-components/common/MarkdownContext';
import MarkDownContext from '@/new-components/common/MarkdownContext';
import { apiInterceptors, getChunkList, chunkAddQuestion } from '@/client/api';
import MenuModal from '@/components/MenuModal';
import { MinusCircleOutlined, PlusOutlined, SearchOutlined } from '@ant-design/icons';

View File

@@ -1,5 +1,5 @@
import BlurredCard, { ChatButton, InnerDropdown } from '@/ant-components/common/blurredCard';
import ConstructLayout from '@/ant-components/layout/Construct';
import BlurredCard, { ChatButton, InnerDropdown } from '@/new-components/common/blurredCard';
import ConstructLayout from '@/new-components/layout/Construct';
import { ChatContext } from '@/app/chat-context';
import { apiInterceptors, delSpace, getSpaceList, newDialogue, getSpaceConfig } from '@/client/api';
import DocPanel from '@/components/knowledge/doc-panel';

View File

@@ -1,5 +1,5 @@
import BlurredCard from '@/ant-components/common/blurredCard';
import ConstructLayout from '@/ant-components/layout/Construct';
import BlurredCard from '@/new-components/common/blurredCard';
import ConstructLayout from '@/new-components/layout/Construct';
import { apiInterceptors, getModelList, modelSearch, stopModel } from '@/client/api';
import ModelForm from '@/components/model/model-form';
import { IModelData } from '@/types/model';

View File

@@ -1,4 +1,4 @@
import ModelIcon from '@/ant-components/chat/content/ModelIcon';
import ModelIcon from '@/new-components/chat/content/ModelIcon';
import { ChatContext } from '@/app/chat-context';
import { addPrompt, apiInterceptors, llmOutVerify, promptTemplateLoad, promptTypeTarget, updatePrompt } from '@/client/api';
import useUser from '@/hooks/use-user';
@@ -24,7 +24,7 @@ import styles from '../styles.module.css';
const MarkdownEditor = dynamic(() => import('react-markdown-editor-lite'), { ssr: false });
const mdParser = new MarkdownIt();
const MarkdownContext = dynamic(() => import('@/ant-components/common/MarkdownContext'), { ssr: false });
const MarkdownContext = dynamic(() => import('@/new-components/common/MarkdownContext'), { ssr: false });
const TypeOptions = [
{

View File

@@ -1,4 +1,4 @@
import ConstructLayout from '@/ant-components/layout/Construct';
import ConstructLayout from '@/new-components/layout/Construct';
import { apiInterceptors, deletePrompt, getPromptList } from '@/client/api';
import useUser from '@/hooks/use-user';
import { IPrompt, PromptListResponse } from '@/types/prompt';

View File

@@ -11,8 +11,8 @@ import { useTranslation } from 'react-i18next';
import type { GridCellRenderer, Index, IndexRange } from 'react-virtualized';
import { AutoSizer, Grid, InfiniteLoader } from 'react-virtualized';
import IconFont from '@/ant-components/common/Icon';
import BlurredCard from '@/ant-components/common/blurredCard';
import IconFont from '@/new-components/common/Icon';
import BlurredCard from '@/new-components/common/blurredCard';
import { ChatContext } from '@/app/chat-context';
import moment from 'moment';

View File

@@ -1,5 +1,5 @@
import ModelIcon from '@/ant-components/chat/content/ModelIcon';
import MarkdownContext from '@/ant-components/common/MarkdownContext';
import ModelIcon from '@/new-components/chat/content/ModelIcon';
import MarkdownContext from '@/new-components/common/MarkdownContext';
import { IChatDialogueMessageSchema } from '@/types/chat';
import { Divider } from 'antd';
import cls from 'classnames';

View File

@@ -1,4 +1,4 @@
import AppDefaultIcon from '@/ant-components/common/AppDefaultIcon';
import AppDefaultIcon from '@/new-components/common/AppDefaultIcon';
import { ExportOutlined } from '@ant-design/icons';
import { App, Typography } from 'antd';
import copy from 'copy-to-clipboard';

View File

@@ -1,4 +1,4 @@
import ModelIcon from '@/ant-components/chat/content/ModelIcon';
import ModelIcon from '@/new-components/chat/content/ModelIcon';
import { ChatContext } from '@/app/chat-context';
import { SwapOutlined } from '@ant-design/icons';
import type { MenuProps } from 'antd';

View File

@@ -2,7 +2,7 @@ import { ControlOutlined } from '@ant-design/icons';
import { Dropdown, Slider } from 'antd';
import React, { useContext } from 'react';
import { MobileChatContext } from '../';
import IconFont from '@/ant-components/common/Icon';
import IconFont from '@/new-components/common/Icon';
const Thermometer: React.FC = () => {
const { temperature, setTemperature } = useContext(MobileChatContext);