mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-10 15:49:29 +08:00
feat: about page add icons
This commit is contained in:
parent
db91c3fb1a
commit
f5616c0ac6
@ -170,14 +170,14 @@ const resources = {
|
|||||||
'provider.edit.name': 'Provider Name',
|
'provider.edit.name': 'Provider Name',
|
||||||
'provider.edit.name.placeholder': 'Example: OpenAI',
|
'provider.edit.name.placeholder': 'Example: OpenAI',
|
||||||
'about.title': 'About',
|
'about.title': 'About',
|
||||||
'about.releases.title': '📔 Release Notes',
|
'about.releases.title': 'Release Notes',
|
||||||
'about.releases.button': 'Releases',
|
'about.releases.button': 'Releases',
|
||||||
'about.website.title': '🌐 Official Website',
|
'about.website.title': 'Official Website',
|
||||||
'about.website.button': 'Website',
|
'about.website.button': 'Website',
|
||||||
'about.feedback.title': '📝 Feedback',
|
'about.feedback.title': 'Feedback',
|
||||||
'about.feedback.button': 'Feedback',
|
'about.feedback.button': 'Feedback',
|
||||||
'about.contact.title': '📧 Contact',
|
'about.contact.title': 'Contact',
|
||||||
'about.license.title': '📄 License',
|
'about.license.title': 'License',
|
||||||
'about.license.button': 'License',
|
'about.license.button': 'License',
|
||||||
'about.contact.button': 'Email',
|
'about.contact.button': 'Email',
|
||||||
'proxy.title': 'Proxy Address',
|
'proxy.title': 'Proxy Address',
|
||||||
@ -387,14 +387,14 @@ const resources = {
|
|||||||
'provider.edit.name': '模型提供商名称',
|
'provider.edit.name': '模型提供商名称',
|
||||||
'provider.edit.name.placeholder': '例如 OpenAI',
|
'provider.edit.name.placeholder': '例如 OpenAI',
|
||||||
'about.title': '关于我们',
|
'about.title': '关于我们',
|
||||||
'about.releases.title': '📔 更新日志',
|
'about.releases.title': '更新日志',
|
||||||
'about.releases.button': '查看',
|
'about.releases.button': '查看',
|
||||||
'about.website.title': '🌐 官方网站',
|
'about.website.title': '官方网站',
|
||||||
'about.website.button': '查看',
|
'about.website.button': '查看',
|
||||||
'about.feedback.title': '📝 意见反馈',
|
'about.feedback.title': '意见反馈',
|
||||||
'about.feedback.button': '反馈',
|
'about.feedback.button': '反馈',
|
||||||
'about.contact.title': '📧 邮件联系',
|
'about.contact.title': '邮件联系',
|
||||||
'about.license.title': '📄 许可证',
|
'about.license.title': '许可证',
|
||||||
'about.license.button': '查看',
|
'about.license.button': '查看',
|
||||||
'about.contact.button': '邮件',
|
'about.contact.button': '邮件',
|
||||||
'proxy.title': '代理地址',
|
'proxy.title': '代理地址',
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
import { GithubOutlined } from '@ant-design/icons'
|
import { GithubOutlined } from '@ant-design/icons'
|
||||||
|
import { FileProtectOutlined, GlobalOutlined, MailOutlined, SoundOutlined } from '@ant-design/icons'
|
||||||
import Logo from '@renderer/assets/images/logo.png'
|
import Logo from '@renderer/assets/images/logo.png'
|
||||||
import { HStack } from '@renderer/components/Layout'
|
import { HStack } from '@renderer/components/Layout'
|
||||||
import { runAsyncFunction } from '@renderer/utils'
|
import { runAsyncFunction } from '@renderer/utils'
|
||||||
@ -10,7 +11,7 @@ import { useTranslation } from 'react-i18next'
|
|||||||
import { Link } from 'react-router-dom'
|
import { Link } from 'react-router-dom'
|
||||||
import styled from 'styled-components'
|
import styled from 'styled-components'
|
||||||
|
|
||||||
import { SettingContainer, SettingDivider, SettingRow, SettingRowTitle, SettingTitle } from '.'
|
import { SettingContainer, SettingDivider, SettingRow, SettingTitle } from '.'
|
||||||
|
|
||||||
const AboutSettings: FC = () => {
|
const AboutSettings: FC = () => {
|
||||||
const [version, setVersion] = useState('')
|
const [version, setVersion] = useState('')
|
||||||
@ -134,31 +135,45 @@ const AboutSettings: FC = () => {
|
|||||||
</AboutHeader>
|
</AboutHeader>
|
||||||
<SettingDivider />
|
<SettingDivider />
|
||||||
<SettingRow>
|
<SettingRow>
|
||||||
<SettingRowTitle>{t('settings.about.releases.title')}</SettingRowTitle>
|
<SettingRowTitle>
|
||||||
|
<SoundOutlined />
|
||||||
|
{t('settings.about.releases.title')}
|
||||||
|
</SettingRowTitle>
|
||||||
<Button onClick={() => onOpenWebsite('https://github.com/kangfenmao/cherry-studio/releases')}>
|
<Button onClick={() => onOpenWebsite('https://github.com/kangfenmao/cherry-studio/releases')}>
|
||||||
{t('settings.about.releases.button')}
|
{t('settings.about.releases.button')}
|
||||||
</Button>
|
</Button>
|
||||||
</SettingRow>
|
</SettingRow>
|
||||||
<SettingDivider />
|
<SettingDivider />
|
||||||
<SettingRow>
|
<SettingRow>
|
||||||
<SettingRowTitle>{t('settings.about.website.title')}</SettingRowTitle>
|
<SettingRowTitle>
|
||||||
|
<GlobalOutlined />
|
||||||
|
{t('settings.about.website.title')}
|
||||||
|
</SettingRowTitle>
|
||||||
<Button onClick={() => onOpenWebsite('https://cherry-ai.com')}>{t('settings.about.website.button')}</Button>
|
<Button onClick={() => onOpenWebsite('https://cherry-ai.com')}>{t('settings.about.website.button')}</Button>
|
||||||
</SettingRow>
|
</SettingRow>
|
||||||
<SettingDivider />
|
<SettingDivider />
|
||||||
<SettingRow>
|
<SettingRow>
|
||||||
<SettingRowTitle>{t('settings.about.feedback.title')}</SettingRowTitle>
|
<SettingRowTitle>
|
||||||
<Button onClick={() => onOpenWebsite('https://github.com/kangfenmao/cherry-studio/issues')}>
|
<GithubOutlined />
|
||||||
|
{t('settings.about.feedback.title')}
|
||||||
|
</SettingRowTitle>
|
||||||
|
<Button onClick={() => onOpenWebsite('https://github.com/kangfenmao/cherry-studio/issues/new')}>
|
||||||
{t('settings.about.feedback.button')}
|
{t('settings.about.feedback.button')}
|
||||||
</Button>
|
</Button>
|
||||||
</SettingRow>
|
</SettingRow>
|
||||||
<SettingDivider />
|
<SettingDivider />
|
||||||
<SettingRow>
|
<SettingRow>
|
||||||
<SettingRowTitle>{t('settings.about.license.title')}</SettingRowTitle>
|
<SettingRowTitle>
|
||||||
|
<FileProtectOutlined />
|
||||||
|
{t('settings.about.license.title')}
|
||||||
|
</SettingRowTitle>
|
||||||
<Button onClick={showLicense}>{t('settings.about.license.button')}</Button>
|
<Button onClick={showLicense}>{t('settings.about.license.button')}</Button>
|
||||||
</SettingRow>
|
</SettingRow>
|
||||||
<SettingDivider />
|
<SettingDivider />
|
||||||
<SettingRow>
|
<SettingRow>
|
||||||
<SettingRowTitle>{t('settings.about.contact.title')}</SettingRowTitle>
|
<SettingRowTitle>
|
||||||
|
<MailOutlined /> {t('settings.about.contact.title')}
|
||||||
|
</SettingRowTitle>
|
||||||
<Button onClick={mailto}>{t('settings.about.contact.button')}</Button>
|
<Button onClick={mailto}>{t('settings.about.contact.button')}</Button>
|
||||||
</SettingRow>
|
</SettingRow>
|
||||||
<SettingDivider />
|
<SettingDivider />
|
||||||
@ -210,4 +225,18 @@ const ProgressCircle = styled(Progress)`
|
|||||||
left: -2px;
|
left: -2px;
|
||||||
`
|
`
|
||||||
|
|
||||||
|
export const SettingRowTitle = styled.div`
|
||||||
|
font-size: 14px;
|
||||||
|
line-height: 18px;
|
||||||
|
color: var(--color-text-1);
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
gap: 10px;
|
||||||
|
.anticon {
|
||||||
|
font-size: 16px;
|
||||||
|
color: var(--color-text-1);
|
||||||
|
}
|
||||||
|
`
|
||||||
|
|
||||||
export default AboutSettings
|
export default AboutSettings
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user