Commit abcf48d5 by papapatrick Committed by GitHub

perf: switch perf (#2131)

* feat:  新增对话框底部复制按钮

* fix: 对话框底部复制按钮定位问题

* perf: 优化应用切换逻辑

* perf: 删除不必要代码

* fix: 修复编译失败bug&&修复冲突错误

* feat:  新增对话框底部复制按钮

* fix: 对话框底部复制按钮定位问题

* feat: 过长引用折叠功能

* merge: 合并主仓库代码

* refactor:  删除不必要代码

* perf: 优化应用切换逻辑

* perf: 删除不必要代码

* fix: 修复编译失败bug&&修复冲突错误

* merge

* merge: 处理冲突

* refactor: 重构代码删除不必要代码

* perf: 删除不必要代码
parent bf5145e6
...@@ -97,6 +97,8 @@ export const iconPaths = { ...@@ -97,6 +97,8 @@ export const iconPaths = {
'core/app/variable/textarea': () => import('./icons/core/app/variable/textarea.svg'), 'core/app/variable/textarea': () => import('./icons/core/app/variable/textarea.svg'),
'core/chat/QGFill': () => import('./icons/core/chat/QGFill.svg'), 'core/chat/QGFill': () => import('./icons/core/chat/QGFill.svg'),
'core/chat/cancelSpeak': () => import('./icons/core/chat/cancelSpeak.svg'), 'core/chat/cancelSpeak': () => import('./icons/core/chat/cancelSpeak.svg'),
'core/chat/chevronSelector': () => import('./icons/core/chat/chevronSelector.svg'),
'core/chat/sideLine': () => import('./icons/core/chat/sideLine.svg'),
'core/chat/chatFill': () => import('./icons/core/chat/chatFill.svg'), 'core/chat/chatFill': () => import('./icons/core/chat/chatFill.svg'),
'core/chat/chatLight': () => import('./icons/core/chat/chatLight.svg'), 'core/chat/chatLight': () => import('./icons/core/chat/chatLight.svg'),
'core/chat/chatModelTag': () => import('./icons/core/chat/chatModelTag.svg'), 'core/chat/chatModelTag': () => import('./icons/core/chat/chatModelTag.svg'),
......
<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M7.28082 5.72828C6.95538 6.05372 6.95538 6.58136 7.28082 6.90679C7.60626 7.23223 8.1339 7.23223 8.45933 6.90679L10.5 4.86615L12.5406 6.90679C12.8661 7.23223 13.3937 7.23223 13.7191 6.90679C14.0446 6.58136 14.0446 6.05372 13.7191 5.72828L11.0892 3.09839C10.7638 2.77295 10.2362 2.77295 9.91072 3.09839L7.28082 5.72828ZM7.28082 13.0893C6.95538 13.4147 6.95538 13.9424 7.28082 14.2678L9.91072 16.8977C9.9514 16.9384 9.99524 16.974 10.0414 17.0045C10.3649 17.2181 10.8045 17.1825 11.0892 16.8977L13.7191 14.2678C14.0446 13.9424 14.0446 13.4147 13.7191 13.0893C13.3937 12.7639 12.8661 12.7639 12.5406 13.0893L10.5 15.1299L8.45933 13.0893C8.1339 12.7639 7.60626 12.7639 7.28082 13.0893Z"/>
</svg>
<svg width="4" height="14" viewBox="0 0 4 14" fill="none" xmlns="http://www.w3.org/2000/svg">
<line x1="2" y1="2" x2="2" y2="12" stroke="#3370FF" stroke-width="4" stroke-linecap="round"/>
</svg>
{ {
"add_new": "Add new", "add_new": "Add new",
"App": "App", "App": "App",
"all_apps": "All Apps",
"click_to_resume": "Resume", "click_to_resume": "Resume",
"code_editor": "Code edit", "code_editor": "Code edit",
"Export": "Export", "Export": "Export",
......
{ {
"add_new": "新增", "add_new": "新增",
"App": "应用", "App": "应用",
"all_apps": "全部应用",
"click_to_resume": "点击恢复", "click_to_resume": "点击恢复",
"code_editor": "代码编辑", "code_editor": "代码编辑",
"Export": "导出", "Export": "导出",
......
...@@ -226,6 +226,7 @@ const Chat = ({ ...@@ -226,6 +226,7 @@ const Chat = ({
> >
{/* header */} {/* header */}
<ChatHeader <ChatHeader
apps={myApps}
chatData={chatData} chatData={chatData}
history={chatRecords} history={chatRecords}
onRoute2AppDetail={() => router.push(`/app/detail?appId=${appId}`)} onRoute2AppDetail={() => router.push(`/app/detail?appId=${appId}`)}
......
...@@ -230,7 +230,7 @@ const Chat = ({ myApps }: { myApps: AppListItemType[] }) => { ...@@ -230,7 +230,7 @@ const Chat = ({ myApps }: { myApps: AppListItemType[] }) => {
flexDirection={'column'} flexDirection={'column'}
> >
{/* header */} {/* header */}
<ChatHeader chatData={chatData} history={chatData.history} showHistory /> <ChatHeader apps={myApps} chatData={chatData} history={chatData.history} showHistory />
{/* chat box */} {/* chat box */}
<Box flex={1}> <Box flex={1}>
{chatData.app.type === AppTypeEnum.plugin ? ( {chatData.app.type === AppTypeEnum.plugin ? (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment