From a7427d6cb6f9f9a13bf56aec83002a9425e2e918 Mon Sep 17 00:00:00 2001 From: kangfenmao Date: Mon, 5 Aug 2024 13:14:57 +0800 Subject: [PATCH] feat(i18n): new topic --- src/renderer/src/i18n/index.ts | 4 ++-- .../pages/home/components/input/Inputbar.tsx | 22 +++++++++---------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/renderer/src/i18n/index.ts b/src/renderer/src/i18n/index.ts index a900be83..197a4e84 100644 --- a/src/renderer/src/i18n/index.ts +++ b/src/renderer/src/i18n/index.ts @@ -60,7 +60,7 @@ const resources = { 'topics.edit.placeholder': 'Enter new name', 'topics.delete.all.title': 'Delete all topics', 'topics.delete.all.content': 'Are you sure you want to delete all topics?', - 'input.new_chat': ' New Chat ', + 'input.new_topic': 'New Topic', 'input.topics': ' Topics ', 'input.clear': 'Clear', 'input.expand': 'Expand', @@ -247,7 +247,7 @@ const resources = { 'topics.edit.placeholder': '输入新名称', 'topics.delete.all.title': '删除所有话题', 'topics.delete.all.content': '确定要删除所有话题吗?', - 'input.new_chat': ' 新聊天 ', + 'input.new_topic': '新话题', 'input.topics': ' 话题 ', 'input.clear': '清除', 'input.expand': '展开', diff --git a/src/renderer/src/pages/home/components/input/Inputbar.tsx b/src/renderer/src/pages/home/components/input/Inputbar.tsx index b11e9d01..2ed326bc 100644 --- a/src/renderer/src/pages/home/components/input/Inputbar.tsx +++ b/src/renderer/src/pages/home/components/input/Inputbar.tsx @@ -148,11 +148,21 @@ const Inputbar: FC = ({ assistant, setActiveTopic }) => { setExpend(!expended)}> - + + + EventEmitter.emit(EVENT_NAMES.SHOW_TOPIC_SIDEBAR)}> + + + + + EventEmitter.emit(EVENT_NAMES.SHOW_CHAT_SETTINGS)}> + + + = ({ assistant, setActiveTopic }) => { - - EventEmitter.emit(EVENT_NAMES.SHOW_TOPIC_SIDEBAR)}> - - - - - EventEmitter.emit(EVENT_NAMES.SHOW_CHAT_SETTINGS)}> - - - setExpend(!expended)}> {expended ? : }