mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-09 19:46:37 +08:00
change to FyGPT
This commit is contained in:
parent
beb04d8181
commit
41713933c5
@ -167,10 +167,8 @@ function _Home() {
|
|||||||
className={styles.sidebar + ` ${showSideBar && styles["sidebar-show"]}`}
|
className={styles.sidebar + ` ${showSideBar && styles["sidebar-show"]}`}
|
||||||
>
|
>
|
||||||
<div className={styles["sidebar-header"]}>
|
<div className={styles["sidebar-header"]}>
|
||||||
<div className={styles["sidebar-title"]}>ChatGPT Next</div>
|
<div className={styles["sidebar-title"]}>FyGPT</div>
|
||||||
<div className={styles["sidebar-sub-title"]}>
|
<div className={styles["sidebar-sub-title"]}>你的GPT助手</div>
|
||||||
Build your own AI assistant.
|
|
||||||
</div>
|
|
||||||
<div className={styles["sidebar-logo"]}>
|
<div className={styles["sidebar-logo"]}>
|
||||||
<ChatGptIcon />
|
<ChatGptIcon />
|
||||||
</div>
|
</div>
|
||||||
@ -204,11 +202,6 @@ function _Home() {
|
|||||||
shadow
|
shadow
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className={styles["sidebar-action"]}>
|
|
||||||
<a href={REPO_URL} target="_blank">
|
|
||||||
<IconButton icon={<GithubIcon />} shadow />
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<IconButton
|
<IconButton
|
||||||
|
@ -299,54 +299,36 @@ export function Settings(props: { closeSettings: () => void }) {
|
|||||||
</div>
|
</div>
|
||||||
<div className={styles["settings"]}>
|
<div className={styles["settings"]}>
|
||||||
<List>
|
<List>
|
||||||
<SettingItem title={Locale.Settings.Avatar}>
|
{enabledAccessControl ? (
|
||||||
<Popover
|
<SettingItem
|
||||||
onClose={() => setShowEmojiPicker(false)}
|
title={Locale.Settings.AccessCode.Title}
|
||||||
content={
|
subTitle={Locale.Settings.AccessCode.SubTitle}
|
||||||
<EmojiPicker
|
|
||||||
lazyLoadEmojis
|
|
||||||
theme={EmojiTheme.AUTO}
|
|
||||||
getEmojiUrl={getEmojiUrl}
|
|
||||||
onEmojiClick={(e) => {
|
|
||||||
updateConfig((config) => (config.avatar = e.unified));
|
|
||||||
setShowEmojiPicker(false);
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
}
|
|
||||||
open={showEmojiPicker}
|
|
||||||
>
|
>
|
||||||
<div
|
<PasswordInput
|
||||||
className={styles.avatar}
|
value={accessStore.accessCode}
|
||||||
onClick={() => setShowEmojiPicker(true)}
|
type="text"
|
||||||
>
|
placeholder={Locale.Settings.AccessCode.Placeholder}
|
||||||
<Avatar role="user" />
|
onChange={(e) => {
|
||||||
</div>
|
accessStore.updateCode(e.currentTarget.value);
|
||||||
</Popover>
|
}}
|
||||||
</SettingItem>
|
/>
|
||||||
|
</SettingItem>
|
||||||
|
) : (
|
||||||
|
<></>
|
||||||
|
)}
|
||||||
|
|
||||||
<SettingItem
|
<SettingItem
|
||||||
title={Locale.Settings.Update.Version(currentVersion ?? "unknown")}
|
title={Locale.Settings.Token.Title}
|
||||||
subTitle={
|
subTitle={Locale.Settings.Token.SubTitle}
|
||||||
checkingUpdate
|
|
||||||
? Locale.Settings.Update.IsChecking
|
|
||||||
: hasNewVersion
|
|
||||||
? Locale.Settings.Update.FoundUpdate(remoteId ?? "ERROR")
|
|
||||||
: Locale.Settings.Update.IsLatest
|
|
||||||
}
|
|
||||||
>
|
>
|
||||||
{checkingUpdate ? (
|
<PasswordInput
|
||||||
<div />
|
value={accessStore.token}
|
||||||
) : hasNewVersion ? (
|
type="text"
|
||||||
<Link href={UPDATE_URL} target="_blank" className="link">
|
placeholder={Locale.Settings.Token.Placeholder}
|
||||||
{Locale.Settings.Update.GoToUpdate}
|
onChange={(e) => {
|
||||||
</Link>
|
accessStore.updateToken(e.currentTarget.value);
|
||||||
) : (
|
}}
|
||||||
<IconButton
|
/>
|
||||||
icon={<ResetIcon></ResetIcon>}
|
|
||||||
text={Locale.Settings.Update.CheckUpdate}
|
|
||||||
onClick={() => checkUpdate(true)}
|
|
||||||
/>
|
|
||||||
)}
|
|
||||||
</SettingItem>
|
</SettingItem>
|
||||||
|
|
||||||
<SettingItem title={Locale.Settings.SendKey}>
|
<SettingItem title={Locale.Settings.SendKey}>
|
||||||
@ -448,62 +430,6 @@ export function Settings(props: { closeSettings: () => void }) {
|
|||||||
</List>
|
</List>
|
||||||
|
|
||||||
<List>
|
<List>
|
||||||
{enabledAccessControl ? (
|
|
||||||
<SettingItem
|
|
||||||
title={Locale.Settings.AccessCode.Title}
|
|
||||||
subTitle={Locale.Settings.AccessCode.SubTitle}
|
|
||||||
>
|
|
||||||
<PasswordInput
|
|
||||||
value={accessStore.accessCode}
|
|
||||||
type="text"
|
|
||||||
placeholder={Locale.Settings.AccessCode.Placeholder}
|
|
||||||
onChange={(e) => {
|
|
||||||
accessStore.updateCode(e.currentTarget.value);
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
</SettingItem>
|
|
||||||
) : (
|
|
||||||
<></>
|
|
||||||
)}
|
|
||||||
|
|
||||||
<SettingItem
|
|
||||||
title={Locale.Settings.Token.Title}
|
|
||||||
subTitle={Locale.Settings.Token.SubTitle}
|
|
||||||
>
|
|
||||||
<PasswordInput
|
|
||||||
value={accessStore.token}
|
|
||||||
type="text"
|
|
||||||
placeholder={Locale.Settings.Token.Placeholder}
|
|
||||||
onChange={(e) => {
|
|
||||||
accessStore.updateToken(e.currentTarget.value);
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
</SettingItem>
|
|
||||||
|
|
||||||
<SettingItem
|
|
||||||
title={Locale.Settings.Usage.Title}
|
|
||||||
subTitle={
|
|
||||||
showUsage
|
|
||||||
? loadingUsage
|
|
||||||
? Locale.Settings.Usage.IsChecking
|
|
||||||
: Locale.Settings.Usage.SubTitle(
|
|
||||||
usage?.used ?? "[?]",
|
|
||||||
usage?.subscription ?? "[?]",
|
|
||||||
)
|
|
||||||
: Locale.Settings.Usage.NoAccess
|
|
||||||
}
|
|
||||||
>
|
|
||||||
{!showUsage || loadingUsage ? (
|
|
||||||
<div />
|
|
||||||
) : (
|
|
||||||
<IconButton
|
|
||||||
icon={<ResetIcon></ResetIcon>}
|
|
||||||
text={Locale.Settings.Usage.Check}
|
|
||||||
onClick={checkUsage}
|
|
||||||
/>
|
|
||||||
)}
|
|
||||||
</SettingItem>
|
|
||||||
|
|
||||||
<SettingItem
|
<SettingItem
|
||||||
title={Locale.Settings.HistoryCount.Title}
|
title={Locale.Settings.HistoryCount.Title}
|
||||||
subTitle={Locale.Settings.HistoryCount.SubTitle}
|
subTitle={Locale.Settings.HistoryCount.SubTitle}
|
||||||
@ -576,25 +502,6 @@ export function Settings(props: { closeSettings: () => void }) {
|
|||||||
</List>
|
</List>
|
||||||
|
|
||||||
<List>
|
<List>
|
||||||
<SettingItem title={Locale.Settings.Model}>
|
|
||||||
<select
|
|
||||||
value={config.modelConfig.model}
|
|
||||||
onChange={(e) => {
|
|
||||||
updateConfig(
|
|
||||||
(config) =>
|
|
||||||
(config.modelConfig.model = ModalConfigValidator.model(
|
|
||||||
e.currentTarget.value,
|
|
||||||
)),
|
|
||||||
);
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
{ALL_MODELS.map((v) => (
|
|
||||||
<option value={v.name} key={v.name} disabled={!v.available}>
|
|
||||||
{v.name}
|
|
||||||
</option>
|
|
||||||
))}
|
|
||||||
</select>
|
|
||||||
</SettingItem>
|
|
||||||
<SettingItem
|
<SettingItem
|
||||||
title={Locale.Settings.Temperature.Title}
|
title={Locale.Settings.Temperature.Title}
|
||||||
subTitle={Locale.Settings.Temperature.SubTitle}
|
subTitle={Locale.Settings.Temperature.SubTitle}
|
||||||
|
@ -7,10 +7,10 @@ import { getBuildConfig } from "./config/build";
|
|||||||
const buildConfig = getBuildConfig();
|
const buildConfig = getBuildConfig();
|
||||||
|
|
||||||
export const metadata = {
|
export const metadata = {
|
||||||
title: "ChatGPT Next Web",
|
title: "FyGPT",
|
||||||
description: "Your personal ChatGPT Chat Bot.",
|
description: "你的GPT助手.",
|
||||||
appleWebApp: {
|
appleWebApp: {
|
||||||
title: "ChatGPT Next Web",
|
title: "FyGPT",
|
||||||
statusBarStyle: "default",
|
statusBarStyle: "default",
|
||||||
},
|
},
|
||||||
themeColor: "#fafafa",
|
themeColor: "#fafafa",
|
||||||
|
Loading…
Reference in New Issue
Block a user