mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-09 11:36:38 +08:00
change setting
This commit is contained in:
parent
41713933c5
commit
348b361200
@ -299,23 +299,31 @@ export function Settings(props: { closeSettings: () => void }) {
|
|||||||
</div>
|
</div>
|
||||||
<div className={styles["settings"]}>
|
<div className={styles["settings"]}>
|
||||||
<List>
|
<List>
|
||||||
{enabledAccessControl ? (
|
<SettingItem title={Locale.Settings.Avatar}>
|
||||||
<SettingItem
|
<Popover
|
||||||
title={Locale.Settings.AccessCode.Title}
|
onClose={() => setShowEmojiPicker(false)}
|
||||||
subTitle={Locale.Settings.AccessCode.SubTitle}
|
content={
|
||||||
>
|
<EmojiPicker
|
||||||
<PasswordInput
|
lazyLoadEmojis
|
||||||
value={accessStore.accessCode}
|
theme={EmojiTheme.AUTO}
|
||||||
type="text"
|
getEmojiUrl={getEmojiUrl}
|
||||||
placeholder={Locale.Settings.AccessCode.Placeholder}
|
onEmojiClick={(e) => {
|
||||||
onChange={(e) => {
|
updateConfig((config) => (config.avatar = e.unified));
|
||||||
accessStore.updateCode(e.currentTarget.value);
|
setShowEmojiPicker(false);
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
}
|
||||||
|
open={showEmojiPicker}
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
className={styles.avatar}a
|
||||||
|
onClick={() => setShowEmojiPicker(true)}
|
||||||
|
>
|
||||||
|
<Avatar role="user" />
|
||||||
|
</div>
|
||||||
|
</Popover>
|
||||||
</SettingItem>
|
</SettingItem>
|
||||||
) : (
|
|
||||||
<></>
|
|
||||||
)}
|
|
||||||
|
|
||||||
<SettingItem
|
<SettingItem
|
||||||
title={Locale.Settings.Token.Title}
|
title={Locale.Settings.Token.Title}
|
||||||
@ -331,6 +339,7 @@ export function Settings(props: { closeSettings: () => void }) {
|
|||||||
/>
|
/>
|
||||||
</SettingItem>
|
</SettingItem>
|
||||||
|
|
||||||
|
|
||||||
<SettingItem title={Locale.Settings.SendKey}>
|
<SettingItem title={Locale.Settings.SendKey}>
|
||||||
<select
|
<select
|
||||||
value={config.submitKey}
|
value={config.submitKey}
|
||||||
@ -430,6 +439,7 @@ export function Settings(props: { closeSettings: () => void }) {
|
|||||||
</List>
|
</List>
|
||||||
|
|
||||||
<List>
|
<List>
|
||||||
|
|
||||||
<SettingItem
|
<SettingItem
|
||||||
title={Locale.Settings.HistoryCount.Title}
|
title={Locale.Settings.HistoryCount.Title}
|
||||||
subTitle={Locale.Settings.HistoryCount.SubTitle}
|
subTitle={Locale.Settings.HistoryCount.SubTitle}
|
||||||
@ -502,6 +512,7 @@ export function Settings(props: { closeSettings: () => void }) {
|
|||||||
</List>
|
</List>
|
||||||
|
|
||||||
<List>
|
<List>
|
||||||
|
|
||||||
<SettingItem
|
<SettingItem
|
||||||
title={Locale.Settings.Temperature.Title}
|
title={Locale.Settings.Temperature.Title}
|
||||||
subTitle={Locale.Settings.Temperature.SubTitle}
|
subTitle={Locale.Settings.Temperature.SubTitle}
|
||||||
|
Loading…
Reference in New Issue
Block a user