mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-11 04:26:37 +08:00
按钮1
This commit is contained in:
parent
c575dcccd8
commit
5d7a0aff0d
@ -325,32 +325,6 @@ export function Settings() {
|
|||||||
</div>
|
</div>
|
||||||
</Popover>
|
</Popover>
|
||||||
</SettingItem>
|
</SettingItem>
|
||||||
|
|
||||||
<SettingItem
|
|
||||||
title={Locale.Settings.Update.Version(currentVersion ?? "unknown")}
|
|
||||||
subTitle={
|
|
||||||
checkingUpdate
|
|
||||||
? Locale.Settings.Update.IsChecking
|
|
||||||
: hasNewVersion
|
|
||||||
? Locale.Settings.Update.FoundUpdate(remoteId ?? "ERROR")
|
|
||||||
: Locale.Settings.Update.IsLatest
|
|
||||||
}
|
|
||||||
>
|
|
||||||
{checkingUpdate ? (
|
|
||||||
<div />
|
|
||||||
) : hasNewVersion ? (
|
|
||||||
<Link href={UPDATE_URL} target="_blank" className="link">
|
|
||||||
{Locale.Settings.Update.GoToUpdate}
|
|
||||||
</Link>
|
|
||||||
) : (
|
|
||||||
<IconButton
|
|
||||||
icon={<ResetIcon></ResetIcon>}
|
|
||||||
text={Locale.Settings.Update.CheckUpdate}
|
|
||||||
onClick={() => checkUpdate(true)}
|
|
||||||
/>
|
|
||||||
)}
|
|
||||||
</SettingItem>
|
|
||||||
|
|
||||||
<SettingItem title={Locale.Settings.SendKey}>
|
<SettingItem title={Locale.Settings.SendKey}>
|
||||||
<select
|
<select
|
||||||
value={config.submitKey}
|
value={config.submitKey}
|
||||||
@ -468,20 +442,6 @@ export function Settings() {
|
|||||||
<></>
|
<></>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
<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
|
<SettingItem
|
||||||
title={Locale.Settings.Usage.Title}
|
title={Locale.Settings.Usage.Title}
|
||||||
subTitle={
|
subTitle={
|
||||||
|
Loading…
Reference in New Issue
Block a user