From b5cc35db36d95683149d36a395d63e2379dea176 Mon Sep 17 00:00:00 2001 From: ch-liuzhide Date: Tue, 19 Nov 2024 15:16:34 +0800 Subject: [PATCH 1/2] docs(bot): update bot create text --- client/.kiwi/en/edit.ts | 8 ++-- .../{BotCreateFrom.tsx => BotCreateForm.tsx} | 12 ++--- .../DeployBotModal/DeployContent.tsx | 41 +++++++++++++----- .../app/factory/edit/components/Knowledge.tsx | 4 +- .../factory/edit/components/KnowledgeBtn.tsx | 21 ++++++--- client/app/factory/edit/page.tsx | 28 +++++++----- client/public/images/delete-button.svg | 38 ++++++++++++++++ client/public/images/delete.png | Bin 195793 -> 0 bytes server/README.zh-CN.md | 24 ++++++++++ server/agent/base.py | 4 +- server/bot/builder.py | 2 +- 11 files changed, 139 insertions(+), 43 deletions(-) rename client/app/factory/edit/components/{BotCreateFrom.tsx => BotCreateForm.tsx} (98%) create mode 100644 client/public/images/delete-button.svg delete mode 100644 client/public/images/delete.png diff --git a/client/.kiwi/en/edit.ts b/client/.kiwi/en/edit.ts index 3c9c2a66..7ff3761b 100644 --- a/client/.kiwi/en/edit.ts +++ b/client/.kiwi/en/edit.ts @@ -9,13 +9,13 @@ export default { chongXinShengChengPei: 'Regenerate Configuration', ziDongShengChengPei: 'Automatically Generate Configuration', diZhiYouWu: 'Invalid Address', - qingShuRuGI: 'Please enter the GitHub project address', + qingShuRuGI: 'Please enter the GitHub project URL', fuZhiTOK: 'Copy Token', tOKEN: 'Token has been copied to clipboard', - gITHU: 'GitHub Project Address', - bangWoPeiZhiYi: 'Help me configure a Q&A bot', + gITHU: 'GitHub Project URL', + bangWoPeiZhiYi: 'Help me create a Q&A bot', chuCiJianMianXian: - '👋🏻 Hello! Nice to meet you. Let me introduce myself: I am PeterCat, a robot for an open-source project. You can configure a Q&A robot by talking to me.', + '👋🏻 Hello! Nice to meet you. Let me introduce myself: I am PeterCat, a robot for an open-source project. You can create a Q&A robot by talking to me.', shengChengShiBai: 'Generation Failed', shengChengChengGongE: 'Generation Successful', baoCunShiBaiE: 'Save Failed', diff --git a/client/app/factory/edit/components/BotCreateFrom.tsx b/client/app/factory/edit/components/BotCreateForm.tsx similarity index 98% rename from client/app/factory/edit/components/BotCreateFrom.tsx rename to client/app/factory/edit/components/BotCreateForm.tsx index 8ee6c59a..6e849878 100644 --- a/client/app/factory/edit/components/BotCreateFrom.tsx +++ b/client/app/factory/edit/components/BotCreateForm.tsx @@ -17,6 +17,7 @@ import { SelectItem, SelectSection, Chip, + Image, } from '@nextui-org/react'; import Collapse from './Collapse'; import { BotProfile } from '@/app/interface'; @@ -233,11 +234,12 @@ const BotCreateFrom = () => { -