docs: visual updates to shortcutsettings page
This commit is contained in:
parent
f0a96bb34c
commit
d2dd70000b
@ -63,10 +63,11 @@ electronDownload:
|
|||||||
afterSign: scripts/notarize.js
|
afterSign: scripts/notarize.js
|
||||||
releaseInfo:
|
releaseInfo:
|
||||||
releaseNotes: |
|
releaseNotes: |
|
||||||
增加最小化到托盘功能 @injurka
|
话题搜索修改为弹窗模式
|
||||||
托盘图标使用彩色图标
|
设置界面样式调整
|
||||||
修复 Mermaid png 格式图表无法下载问题
|
增加APP数据目录显示
|
||||||
选择模型弹窗支持固定一些常用模型
|
增加代码折叠功能
|
||||||
默认助手合并到模型设置里
|
修复编辑消息后没有保存的问题
|
||||||
设置面板移除模型相关设置项
|
|
||||||
修复一些视觉模型不能识别问题
|
修复一些视觉模型不能识别问题
|
||||||
|
修复一些特殊的数据会导致APP启动后崩溃问题
|
||||||
|
修复备份文件在某些情况下无法恢复问题
|
||||||
|
|||||||
@ -138,7 +138,10 @@ const AgentsPage: FC = () => {
|
|||||||
) : (
|
) : (
|
||||||
filteredAgentGroups[group]?.map((agent, index) => (
|
filteredAgentGroups[group]?.map((agent, index) => (
|
||||||
<Col span={6} key={group + index}>
|
<Col span={6} key={group + index}>
|
||||||
<AgentCard onClick={() => onAddAgentConfirm(getAgentFromSystemAgent(agent))} agent={agent as any} />
|
<AgentCard
|
||||||
|
onClick={() => onAddAgentConfirm(getAgentFromSystemAgent(agent as any))}
|
||||||
|
agent={agent as any}
|
||||||
|
/>
|
||||||
</Col>
|
</Col>
|
||||||
))
|
))
|
||||||
)}
|
)}
|
||||||
|
|||||||
@ -10,7 +10,7 @@ import { find, sortBy } from 'lodash'
|
|||||||
import { FC, useMemo } from 'react'
|
import { FC, useMemo } from 'react'
|
||||||
import { useTranslation } from 'react-i18next'
|
import { useTranslation } from 'react-i18next'
|
||||||
|
|
||||||
import { SettingContainer, SettingDescription, SettingDivider, SettingGroup, SettingTitle } from '.'
|
import { SettingContainer, SettingDescription, SettingGroup, SettingTitle } from '.'
|
||||||
import AssistantSettingsPopup from './AssistantSettings'
|
import AssistantSettingsPopup from './AssistantSettings'
|
||||||
|
|
||||||
const ModelSettings: FC = () => {
|
const ModelSettings: FC = () => {
|
||||||
@ -50,13 +50,12 @@ const ModelSettings: FC = () => {
|
|||||||
return (
|
return (
|
||||||
<SettingContainer theme={theme}>
|
<SettingContainer theme={theme}>
|
||||||
<SettingGroup theme={theme}>
|
<SettingGroup theme={theme}>
|
||||||
<SettingTitle>
|
<SettingTitle style={{ marginBottom: 12 }}>
|
||||||
<div>
|
<div>
|
||||||
<MessageOutlined style={iconStyle} />
|
<MessageOutlined style={iconStyle} />
|
||||||
{t('settings.models.default_assistant_model')}
|
{t('settings.models.default_assistant_model')}
|
||||||
</div>
|
</div>
|
||||||
</SettingTitle>
|
</SettingTitle>
|
||||||
<SettingDivider />
|
|
||||||
<HStack alignItems="center">
|
<HStack alignItems="center">
|
||||||
<Select
|
<Select
|
||||||
value={defaultModelValue}
|
value={defaultModelValue}
|
||||||
@ -71,13 +70,12 @@ const ModelSettings: FC = () => {
|
|||||||
<SettingDescription>{t('settings.models.default_assistant_model_description')}</SettingDescription>
|
<SettingDescription>{t('settings.models.default_assistant_model_description')}</SettingDescription>
|
||||||
</SettingGroup>
|
</SettingGroup>
|
||||||
<SettingGroup theme={theme}>
|
<SettingGroup theme={theme}>
|
||||||
<SettingTitle>
|
<SettingTitle style={{ marginBottom: 12 }}>
|
||||||
<div>
|
<div>
|
||||||
<EditOutlined style={iconStyle} />
|
<EditOutlined style={iconStyle} />
|
||||||
{t('settings.models.topic_naming_model')}
|
{t('settings.models.topic_naming_model')}
|
||||||
</div>
|
</div>
|
||||||
</SettingTitle>
|
</SettingTitle>
|
||||||
<SettingDivider />
|
|
||||||
<Select
|
<Select
|
||||||
value={defaultTopicNamingModel}
|
value={defaultTopicNamingModel}
|
||||||
defaultValue={defaultTopicNamingModel}
|
defaultValue={defaultTopicNamingModel}
|
||||||
@ -89,13 +87,12 @@ const ModelSettings: FC = () => {
|
|||||||
<SettingDescription>{t('settings.models.topic_naming_model_description')}</SettingDescription>
|
<SettingDescription>{t('settings.models.topic_naming_model_description')}</SettingDescription>
|
||||||
</SettingGroup>
|
</SettingGroup>
|
||||||
<SettingGroup theme={theme}>
|
<SettingGroup theme={theme}>
|
||||||
<SettingTitle>
|
<SettingTitle style={{ marginBottom: 12 }}>
|
||||||
<div>
|
<div>
|
||||||
<TranslationOutlined style={iconStyle} />
|
<TranslationOutlined style={iconStyle} />
|
||||||
{t('settings.models.translate_model')}
|
{t('settings.models.translate_model')}
|
||||||
</div>
|
</div>
|
||||||
</SettingTitle>
|
</SettingTitle>
|
||||||
<SettingDivider />
|
|
||||||
<Select
|
<Select
|
||||||
value={defaultTranslateModel}
|
value={defaultTranslateModel}
|
||||||
defaultValue={defaultTranslateModel}
|
defaultValue={defaultTranslateModel}
|
||||||
|
|||||||
@ -84,7 +84,7 @@ const ShortcutSettings: FC = () => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<SettingContainer theme={theme}>
|
<SettingContainer theme={theme}>
|
||||||
<SettingGroup theme={theme}>
|
<SettingGroup theme={theme} style={{ paddingBottom: 0 }}>
|
||||||
<SettingTitle>{t('settings.shortcuts.title')}</SettingTitle>
|
<SettingTitle>{t('settings.shortcuts.title')}</SettingTitle>
|
||||||
<SettingDivider style={{ marginBottom: 0 }} />
|
<SettingDivider style={{ marginBottom: 0 }} />
|
||||||
<Table
|
<Table
|
||||||
@ -108,6 +108,10 @@ const Table = styled(AntTable)`
|
|||||||
padding: 14px 0 !important;
|
padding: 14px 0 !important;
|
||||||
background: transparent !important;
|
background: transparent !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.ant-table-tbody > tr:last-child > td {
|
||||||
|
border-bottom: none;
|
||||||
|
}
|
||||||
`
|
`
|
||||||
|
|
||||||
export default ShortcutSettings
|
export default ShortcutSettings
|
||||||
|
|||||||
@ -44,6 +44,7 @@ export const SettingDescription = styled.div`
|
|||||||
|
|
||||||
export const SettingDivider = styled(Divider)`
|
export const SettingDivider = styled(Divider)`
|
||||||
margin: 10px 0;
|
margin: 10px 0;
|
||||||
|
border-block-start: 0.5px solid var(--color-border);
|
||||||
`
|
`
|
||||||
|
|
||||||
export const SettingRow = styled.div`
|
export const SettingRow = styled.div`
|
||||||
@ -83,5 +84,5 @@ export const SettingGroup = styled.div<{ theme?: ThemeMode }>`
|
|||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
border: 0.5px solid var(--color-border);
|
border: 0.5px solid var(--color-border);
|
||||||
padding: 16px;
|
padding: 16px;
|
||||||
background: ${(props) => (props.theme === 'dark' ? 'var(--color-background-soft)' : 'var(--color-background)')};
|
background: ${(props) => (props.theme === 'dark' ? '#00000010' : 'var(--color-background)')};
|
||||||
`
|
`
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user