-
Notifications
You must be signed in to change notification settings - Fork 60.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
禁用gpt-4不禁用gpt-4o-mini #5206
禁用gpt-4不禁用gpt-4o-mini #5206
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -382,7 +382,7 @@ export function ChatAction(props: { | |||||||||
} as React.CSSProperties | ||||||||||
} | ||||||||||
> | ||||||||||
<div ref={iconRef} className={styles["icon"]}> | ||||||||||
<div ref={iconRef} className={styles["icon"]} aria-label={props.text}> | ||||||||||
{props.icon} | ||||||||||
</div> | ||||||||||
<div className={styles["text"]} ref={textRef}> | ||||||||||
|
@@ -1337,6 +1337,8 @@ function _Chat() { | |||||||||
<IconButton | ||||||||||
icon={<RenameIcon />} | ||||||||||
bordered | ||||||||||
title={Locale.Chat.EditMessage.Title} | ||||||||||
aria={Locale.Chat.EditMessage.Title} | ||||||||||
onClick={() => setIsEditingMessage(true)} | ||||||||||
/> | ||||||||||
</div> | ||||||||||
|
@@ -1356,6 +1358,8 @@ function _Chat() { | |||||||||
<IconButton | ||||||||||
icon={config.tightBorder ? <MinIcon /> : <MaxIcon />} | ||||||||||
bordered | ||||||||||
title={Locale.Chat.Actions.FullScreen} | ||||||||||
aria={Locale.Chat.Actions.FullScreen} | ||||||||||
Comment on lines
+1361
to
+1362
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove redundant The - <IconButton
- icon={config.tightBorder ? <MinIcon /> : <MaxIcon />}
- bordered
- title={Locale.Chat.Actions.FullScreen}
- aria={Locale.Chat.Actions.FullScreen}
- onClick={() => {
- config.update(
- (config) => (config.tightBorder = !config.tightBorder),
- );
- }}
- />
+ <IconButton
+ icon={config.tightBorder ? <MinIcon /> : <MaxIcon />}
+ bordered
+ title={Locale.Chat.Actions.FullScreen}
+ aria-label={Locale.Chat.Actions.FullScreen}
+ onClick={() => {
+ config.update(
+ (config) => (config.tightBorder = !config.tightBorder),
+ );
+ }}
+ /> Committable suggestion
Suggested change
|
||||||||||
onClick={() => { | ||||||||||
config.update( | ||||||||||
(config) => (config.tightBorder = !config.tightBorder), | ||||||||||
|
@@ -1407,6 +1411,7 @@ function _Chat() { | |||||||||
<div className={styles["chat-message-edit"]}> | ||||||||||
<IconButton | ||||||||||
icon={<EditIcon />} | ||||||||||
aria={Locale.Chat.Actions.Edit} | ||||||||||
onClick={async () => { | ||||||||||
const newMessage = await showPrompt( | ||||||||||
Locale.Chat.Actions.Edit, | ||||||||||
|
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -285,7 +285,10 @@ export function SideBar(props: { className?: string }) { | |||||||||||||||||||||||||
<SideBarTail | ||||||||||||||||||||||||||
primaryAction={ | ||||||||||||||||||||||||||
<> | ||||||||||||||||||||||||||
<div className={styles["sidebar-action"] + " " + styles.mobile}> | ||||||||||||||||||||||||||
<div | ||||||||||||||||||||||||||
aria-label={Locale.Settings.Title} | ||||||||||||||||||||||||||
className={styles["sidebar-action"] + " " + styles.mobile} | ||||||||||||||||||||||||||
> | ||||||||||||||||||||||||||
Comment on lines
+288
to
+291
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add The + <IconButton
+ icon={<DeleteIcon />}
+ aria-label={Locale.Home.DeleteChat}
+ onClick={async () => {
+ if (await showConfirm(Locale.Home.DeleteChat)) {
+ chatStore.deleteSession(chatStore.currentSessionIndex);
+ }
+ }}
/>
|
||||||||||||||||||||||||||
<IconButton | ||||||||||||||||||||||||||
icon={<DeleteIcon />} | ||||||||||||||||||||||||||
onClick={async () => { | ||||||||||||||||||||||||||
|
@@ -296,13 +299,21 @@ export function SideBar(props: { className?: string }) { | |||||||||||||||||||||||||
/> | ||||||||||||||||||||||||||
</div> | ||||||||||||||||||||||||||
<div className={styles["sidebar-action"]}> | ||||||||||||||||||||||||||
<Link to={Path.Settings}> | ||||||||||||||||||||||||||
<IconButton icon={<SettingsIcon />} shadow /> | ||||||||||||||||||||||||||
<Link to={Path.Settings} aria-label={Locale.Settings.Title}> | ||||||||||||||||||||||||||
<IconButton | ||||||||||||||||||||||||||
aria={Locale.Settings.Title} | ||||||||||||||||||||||||||
icon={<SettingsIcon />} | ||||||||||||||||||||||||||
shadow | ||||||||||||||||||||||||||
/> | ||||||||||||||||||||||||||
Comment on lines
+302
to
+307
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove redundant The - <IconButton
- aria={Locale.Settings.Title}
- icon={<SettingsIcon />}
- shadow
- />
+ <IconButton
+ aria-label={Locale.Settings.Title}
+ icon={<SettingsIcon />}
+ shadow
+ /> Committable suggestion
Suggested change
|
||||||||||||||||||||||||||
</Link> | ||||||||||||||||||||||||||
</div> | ||||||||||||||||||||||||||
<div className={styles["sidebar-action"]}> | ||||||||||||||||||||||||||
<a href={REPO_URL} target="_blank" rel="noopener noreferrer"> | ||||||||||||||||||||||||||
<IconButton icon={<GithubIcon />} shadow /> | ||||||||||||||||||||||||||
<IconButton | ||||||||||||||||||||||||||
aria={Locale.Export.MessageFromChatGPT} | ||||||||||||||||||||||||||
icon={<GithubIcon />} | ||||||||||||||||||||||||||
shadow | ||||||||||||||||||||||||||
/> | ||||||||||||||||||||||||||
Comment on lines
+312
to
+316
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add The - <IconButton
- aria={Locale.Export.MessageFromChatGPT}
- icon={<GithubIcon />}
- shadow
- />
+ <IconButton
+ aria-label={Locale.Export.MessageFromChatGPT}
+ icon={<GithubIcon />}
+ shadow
+ /> Committable suggestion
Suggested change
|
||||||||||||||||||||||||||
</a> | ||||||||||||||||||||||||||
</div> | ||||||||||||||||||||||||||
</> | ||||||||||||||||||||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove redundant
aria
attribute.The
aria
attribute on theIconButton
is redundant. Usearia-label
instead.Committable suggestion