From 41713933c5fb52dc02a4901a204e35547d91f8ed Mon Sep 17 00:00:00 2001 From: fangyuan99 <62874116+fangyuan99@users.noreply.github.com> Date: Wed, 19 Apr 2023 18:14:34 +0800 Subject: [PATCH] change to FyGPT --- app/components/home.tsx | 11 +-- app/components/settings.tsx | 145 +++++++----------------------------- app/layout.tsx | 6 +- 3 files changed, 31 insertions(+), 131 deletions(-) diff --git a/app/components/home.tsx b/app/components/home.tsx index 828b7576a..3590d4177 100644 --- a/app/components/home.tsx +++ b/app/components/home.tsx @@ -167,10 +167,8 @@ function _Home() { className={styles.sidebar + ` ${showSideBar && styles["sidebar-show"]}`} >
-
ChatGPT Next
-
- Build your own AI assistant. -
+
FyGPT
+
你的GPT助手
@@ -204,11 +202,6 @@ function _Home() { shadow />
-
- - } shadow /> - -
void }) {
- - setShowEmojiPicker(false)} - content={ - { - updateConfig((config) => (config.avatar = e.unified)); - setShowEmojiPicker(false); - }} - /> - } - open={showEmojiPicker} + {enabledAccessControl ? ( + -
setShowEmojiPicker(true)} - > - -
-
-
+ { + accessStore.updateCode(e.currentTarget.value); + }} + /> + + ) : ( + <> + )} - {checkingUpdate ? ( -
- ) : hasNewVersion ? ( - - {Locale.Settings.Update.GoToUpdate} - - ) : ( - } - text={Locale.Settings.Update.CheckUpdate} - onClick={() => checkUpdate(true)} - /> - )} + { + accessStore.updateToken(e.currentTarget.value); + }} + /> @@ -448,62 +430,6 @@ export function Settings(props: { closeSettings: () => void }) { - {enabledAccessControl ? ( - - { - accessStore.updateCode(e.currentTarget.value); - }} - /> - - ) : ( - <> - )} - - - { - accessStore.updateToken(e.currentTarget.value); - }} - /> - - - - {!showUsage || loadingUsage ? ( -
- ) : ( - } - text={Locale.Settings.Usage.Check} - onClick={checkUsage} - /> - )} - - void }) { - - -