From 47a4436006ef904d5dfad2b34469e6d733d84c52 Mon Sep 17 00:00:00 2001 From: yjding Date: Sun, 24 Sep 2023 17:03:53 -0400 Subject: [PATCH 01/10] Update layout.tsx --- app/layout.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/layout.tsx b/app/layout.tsx index 5e0762653a8..501e13c0ac1 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -6,8 +6,8 @@ import { getClientConfig } from "./config/client"; import { type Metadata } from "next"; export const metadata: Metadata = { - title: "ChatGPT Next Web", - description: "Your personal ChatGPT Chat Bot.", + title: "聊天机器人", + description: "", viewport: { width: "device-width", initialScale: 1, @@ -18,7 +18,7 @@ export const metadata: Metadata = { { media: "(prefers-color-scheme: dark)", color: "#151515" }, ], appleWebApp: { - title: "ChatGPT Next Web", + title: "聊天机器人", statusBarStyle: "default", }, }; From d4c89b5dd50fc5b089531717bc4f6394cf76b4e4 Mon Sep 17 00:00:00 2001 From: yjding Date: Sun, 24 Sep 2023 17:10:13 -0400 Subject: [PATCH 02/10] Update sidebar.tsx --- app/components/sidebar.tsx | 32 +------------------------------- 1 file changed, 1 insertion(+), 31 deletions(-) diff --git a/app/components/sidebar.tsx b/app/components/sidebar.tsx index 3ca1678963e..b8697fccdb7 100644 --- a/app/components/sidebar.tsx +++ b/app/components/sidebar.tsx @@ -145,33 +145,13 @@ export function SideBar(props: { className?: string }) { >
- ChatGPT Next -
-
- Build your own AI assistant. + 聊天列表
-
- } - text={shouldNarrow ? undefined : Locale.Mask.Name} - className={styles["sidebar-bar-button"]} - onClick={() => navigate(Path.NewChat, { state: { fromHome: true } })} - shadow - /> - } - text={shouldNarrow ? undefined : Locale.Plugin.Name} - className={styles["sidebar-bar-button"]} - onClick={() => showToast(Locale.WIP)} - shadow - /> -
-
{ @@ -195,16 +175,6 @@ export function SideBar(props: { className?: string }) { }} />
-
- - } shadow /> - -
-
- - } shadow /> - -
Date: Sun, 24 Sep 2023 17:13:11 -0400 Subject: [PATCH 03/10] Update chat.tsx --- app/components/chat.tsx | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/app/components/chat.tsx b/app/components/chat.tsx index 4e6aedecc60..98489296111 100644 --- a/app/components/chat.tsx +++ b/app/components/chat.tsx @@ -1237,23 +1237,6 @@ function _Chat() {
- - setShowPromptModal(true)} - scrollToBottom={scrollToBottom} - hitBottom={hitBottom} - showPromptHints={() => { - // Click again to close - if (promptHints.length > 0) { - setPromptHints([]); - return; - } - - inputRef.current?.focus(); - setUserInput("/"); - onSearch(""); - }} - />