mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-21 07:40:11 +08:00
feat: add enterprise section and remove license from AboutSettings
- Introduced an "Enterprise" section in the i18n files for English, Simplified Chinese, and Traditional Chinese. - Removed the "License" section from the AboutSettings component, replacing it with a link to the enterprise website. - Updated icons in the AboutSettings component to reflect the new structure.
This commit is contained in:
parent
67a379641f
commit
fe53b0914a
@ -2923,15 +2923,14 @@
|
|||||||
},
|
},
|
||||||
"description": "A powerful AI assistant for producer",
|
"description": "A powerful AI assistant for producer",
|
||||||
"downloading": "Downloading...",
|
"downloading": "Downloading...",
|
||||||
|
"enterprise": {
|
||||||
|
"title": "Enterprise"
|
||||||
|
},
|
||||||
"feedback": {
|
"feedback": {
|
||||||
"button": "Feedback",
|
"button": "Feedback",
|
||||||
"title": "Feedback"
|
"title": "Feedback"
|
||||||
},
|
},
|
||||||
"label": "About & Feedback",
|
"label": "About & Feedback",
|
||||||
"license": {
|
|
||||||
"button": "License",
|
|
||||||
"title": "License"
|
|
||||||
},
|
|
||||||
"releases": {
|
"releases": {
|
||||||
"button": "Releases",
|
"button": "Releases",
|
||||||
"title": "Release Notes"
|
"title": "Release Notes"
|
||||||
|
|||||||
@ -2923,15 +2923,14 @@
|
|||||||
},
|
},
|
||||||
"description": "一款为创造者而生的 AI 助手",
|
"description": "一款为创造者而生的 AI 助手",
|
||||||
"downloading": "正在下载更新...",
|
"downloading": "正在下载更新...",
|
||||||
|
"enterprise": {
|
||||||
|
"title": "企业版"
|
||||||
|
},
|
||||||
"feedback": {
|
"feedback": {
|
||||||
"button": "反馈",
|
"button": "反馈",
|
||||||
"title": "意见反馈"
|
"title": "意见反馈"
|
||||||
},
|
},
|
||||||
"label": "关于我们",
|
"label": "关于我们",
|
||||||
"license": {
|
|
||||||
"button": "查看",
|
|
||||||
"title": "许可证"
|
|
||||||
},
|
|
||||||
"releases": {
|
"releases": {
|
||||||
"button": "查看",
|
"button": "查看",
|
||||||
"title": "更新日志"
|
"title": "更新日志"
|
||||||
|
|||||||
@ -2923,15 +2923,14 @@
|
|||||||
},
|
},
|
||||||
"description": "一款為創作者而生的強大 AI 助手",
|
"description": "一款為創作者而生的強大 AI 助手",
|
||||||
"downloading": "正在下載...",
|
"downloading": "正在下載...",
|
||||||
|
"enterprise": {
|
||||||
|
"title": "企業版"
|
||||||
|
},
|
||||||
"feedback": {
|
"feedback": {
|
||||||
"button": "回饋",
|
"button": "回饋",
|
||||||
"title": "回饋"
|
"title": "回饋"
|
||||||
},
|
},
|
||||||
"label": "關於與回饋",
|
"label": "關於與回饋",
|
||||||
"license": {
|
|
||||||
"button": "檢視",
|
|
||||||
"title": "授權"
|
|
||||||
},
|
|
||||||
"releases": {
|
"releases": {
|
||||||
"button": "檢視",
|
"button": "檢視",
|
||||||
"title": "更新日誌"
|
"title": "更新日誌"
|
||||||
|
|||||||
@ -17,7 +17,7 @@ import { UpgradeChannel } from '@shared/config/constant'
|
|||||||
import { Avatar, Button, Progress, Radio, Row, Switch, Tag, Tooltip } from 'antd'
|
import { Avatar, Button, Progress, Radio, Row, Switch, Tag, Tooltip } from 'antd'
|
||||||
import { UpdateInfo } from 'builder-util-runtime'
|
import { UpdateInfo } from 'builder-util-runtime'
|
||||||
import { debounce } from 'lodash'
|
import { debounce } from 'lodash'
|
||||||
import { Bug, FileCheck, Globe, Mail, Rss } from 'lucide-react'
|
import { Bug, Building2, Github, Globe, Mail, Rss } from 'lucide-react'
|
||||||
import { BadgeQuestionMark } from 'lucide-react'
|
import { BadgeQuestionMark } from 'lucide-react'
|
||||||
import { FC, useEffect, useState } from 'react'
|
import { FC, useEffect, useState } from 'react'
|
||||||
import { useTranslation } from 'react-i18next'
|
import { useTranslation } from 'react-i18next'
|
||||||
@ -83,14 +83,8 @@ const AboutSettings: FC = () => {
|
|||||||
await window.api.devTools.toggle()
|
await window.api.devTools.toggle()
|
||||||
}
|
}
|
||||||
|
|
||||||
const showLicense = async () => {
|
const showEnterprise = async () => {
|
||||||
const { appPath } = await window.api.getAppInfo()
|
onOpenWebsite('https://cherry-ai.com/enterprise')
|
||||||
openSmartMinapp({
|
|
||||||
id: 'cherrystudio-license',
|
|
||||||
name: t('settings.about.license.title'),
|
|
||||||
url: `file://${appPath}/resources/cherry-studio/license.html`,
|
|
||||||
logo: AppLogo
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const showReleases = async () => {
|
const showReleases = async () => {
|
||||||
@ -315,7 +309,7 @@ const AboutSettings: FC = () => {
|
|||||||
<SettingDivider />
|
<SettingDivider />
|
||||||
<SettingRow>
|
<SettingRow>
|
||||||
<SettingRowTitle>
|
<SettingRowTitle>
|
||||||
<GithubOutlined size={18} />
|
<Github size={18} />
|
||||||
{t('settings.about.feedback.title')}
|
{t('settings.about.feedback.title')}
|
||||||
</SettingRowTitle>
|
</SettingRowTitle>
|
||||||
<Button onClick={() => onOpenWebsite('https://github.com/CherryHQ/cherry-studio/issues/new/choose')}>
|
<Button onClick={() => onOpenWebsite('https://github.com/CherryHQ/cherry-studio/issues/new/choose')}>
|
||||||
@ -325,10 +319,10 @@ const AboutSettings: FC = () => {
|
|||||||
<SettingDivider />
|
<SettingDivider />
|
||||||
<SettingRow>
|
<SettingRow>
|
||||||
<SettingRowTitle>
|
<SettingRowTitle>
|
||||||
<FileCheck size={18} />
|
<Building2 size={18} />
|
||||||
{t('settings.about.license.title')}
|
{t('settings.about.enterprise.title')}
|
||||||
</SettingRowTitle>
|
</SettingRowTitle>
|
||||||
<Button onClick={showLicense}>{t('settings.about.license.button')}</Button>
|
<Button onClick={showEnterprise}>{t('settings.about.website.button')}</Button>
|
||||||
</SettingRow>
|
</SettingRow>
|
||||||
<SettingDivider />
|
<SettingDivider />
|
||||||
<SettingRow>
|
<SettingRow>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user