From fe53b0914a800be836a634599f801dd6670948c7 Mon Sep 17 00:00:00 2001 From: kangfenmao Date: Fri, 31 Oct 2025 21:27:44 +0800 Subject: [PATCH] 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. --- src/renderer/src/i18n/locales/en-us.json | 7 +++---- src/renderer/src/i18n/locales/zh-cn.json | 7 +++---- src/renderer/src/i18n/locales/zh-tw.json | 7 +++---- .../src/pages/settings/AboutSettings.tsx | 20 +++++++------------ 4 files changed, 16 insertions(+), 25 deletions(-) diff --git a/src/renderer/src/i18n/locales/en-us.json b/src/renderer/src/i18n/locales/en-us.json index 9eaab84076..4210da1533 100644 --- a/src/renderer/src/i18n/locales/en-us.json +++ b/src/renderer/src/i18n/locales/en-us.json @@ -2923,15 +2923,14 @@ }, "description": "A powerful AI assistant for producer", "downloading": "Downloading...", + "enterprise": { + "title": "Enterprise" + }, "feedback": { "button": "Feedback", "title": "Feedback" }, "label": "About & Feedback", - "license": { - "button": "License", - "title": "License" - }, "releases": { "button": "Releases", "title": "Release Notes" diff --git a/src/renderer/src/i18n/locales/zh-cn.json b/src/renderer/src/i18n/locales/zh-cn.json index c3f486c0b2..405c92ac60 100644 --- a/src/renderer/src/i18n/locales/zh-cn.json +++ b/src/renderer/src/i18n/locales/zh-cn.json @@ -2923,15 +2923,14 @@ }, "description": "一款为创造者而生的 AI 助手", "downloading": "正在下载更新...", + "enterprise": { + "title": "企业版" + }, "feedback": { "button": "反馈", "title": "意见反馈" }, "label": "关于我们", - "license": { - "button": "查看", - "title": "许可证" - }, "releases": { "button": "查看", "title": "更新日志" diff --git a/src/renderer/src/i18n/locales/zh-tw.json b/src/renderer/src/i18n/locales/zh-tw.json index 332b52586a..ea93788341 100644 --- a/src/renderer/src/i18n/locales/zh-tw.json +++ b/src/renderer/src/i18n/locales/zh-tw.json @@ -2923,15 +2923,14 @@ }, "description": "一款為創作者而生的強大 AI 助手", "downloading": "正在下載...", + "enterprise": { + "title": "企業版" + }, "feedback": { "button": "回饋", "title": "回饋" }, "label": "關於與回饋", - "license": { - "button": "檢視", - "title": "授權" - }, "releases": { "button": "檢視", "title": "更新日誌" diff --git a/src/renderer/src/pages/settings/AboutSettings.tsx b/src/renderer/src/pages/settings/AboutSettings.tsx index 1cbb8ce694..dcf95324d0 100644 --- a/src/renderer/src/pages/settings/AboutSettings.tsx +++ b/src/renderer/src/pages/settings/AboutSettings.tsx @@ -17,7 +17,7 @@ import { UpgradeChannel } from '@shared/config/constant' import { Avatar, Button, Progress, Radio, Row, Switch, Tag, Tooltip } from 'antd' import { UpdateInfo } from 'builder-util-runtime' 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 { FC, useEffect, useState } from 'react' import { useTranslation } from 'react-i18next' @@ -83,14 +83,8 @@ const AboutSettings: FC = () => { await window.api.devTools.toggle() } - const showLicense = async () => { - const { appPath } = await window.api.getAppInfo() - openSmartMinapp({ - id: 'cherrystudio-license', - name: t('settings.about.license.title'), - url: `file://${appPath}/resources/cherry-studio/license.html`, - logo: AppLogo - }) + const showEnterprise = async () => { + onOpenWebsite('https://cherry-ai.com/enterprise') } const showReleases = async () => { @@ -315,7 +309,7 @@ const AboutSettings: FC = () => { - + {t('settings.about.feedback.title')} +