From c9ad2dd6075b6af1a5e75a1f33dc6d62966cfb65 Mon Sep 17 00:00:00 2001 From: Tianyi Date: Sat, 1 Mar 2025 21:25:09 +0800 Subject: [PATCH] =?UTF-8?q?refactor(app):=20=E7=A7=BB=E9=99=A4=20SaaS=20?= =?UTF-8?q?=E8=81=8A=E5=A4=A9=E5=85=A5=E5=8F=A3=E5=B9=B6=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E6=8F=90=E4=BE=9B=E5=95=86=E9=80=89=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在设置页面中移除了 SaaS 聊天入口组件 - 在本地化文件中添加了 "服务提供商" 相关翻译 - 注释掉了与 SaaS 聊天相关的代码和文本 --- app/components/settings.tsx | 53 +++++++++++++++++-------------------- app/locales/cn.ts | 9 ++++--- 2 files changed, 31 insertions(+), 31 deletions(-) diff --git a/app/components/settings.tsx b/app/components/settings.tsx index 68ebcf084..5370fc53e 100644 --- a/app/components/settings.tsx +++ b/app/components/settings.tsx @@ -9,7 +9,6 @@ import CopyIcon from "../icons/copy.svg"; import ClearIcon from "../icons/clear.svg"; import LoadingIcon from "../icons/three-dots.svg"; import EditIcon from "../icons/edit.svg"; -import FireIcon from "../icons/fire.svg"; import EyeIcon from "../icons/eye.svg"; import DownloadIcon from "../icons/download.svg"; import UploadIcon from "../icons/upload.svg"; @@ -19,7 +18,6 @@ import ConfirmIcon from "../icons/confirm.svg"; import ConnectionIcon from "../icons/connection.svg"; import CloudSuccessIcon from "../icons/cloud-success.svg"; import CloudFailIcon from "../icons/cloud-fail.svg"; -import { trackSettingsPageGuideToCPaymentClick } from "../utils/auth-settings-events"; import { Input, List, @@ -71,7 +69,6 @@ import { UPDATE_URL, Stability, Iflytek, - SAAS_CHAT_URL, ChatGLM, DeepSeek, SiliconFlow, @@ -693,30 +690,30 @@ export function Settings() { ); - const saasStartComponent = ( - - } - type={"primary"} - text={Locale.Settings.Access.SaasStart.ChatNow} - onClick={() => { - trackSettingsPageGuideToCPaymentClick(); - window.location.href = SAAS_CHAT_URL; - }} - /> - - ); + // const saasStartComponent = ( + // + // } + // type={"primary"} + // text={Locale.Settings.Access.SaasStart.ChatNow} + // onClick={() => { + // trackSettingsPageGuideToCPaymentClick(); + // window.location.href = SAAS_CHAT_URL; + // }} + // /> + // + // ); const useCustomConfigComponent = // Conditionally render the following ListItem based on clientConfig.isApp !clientConfig?.isApp && ( // only show if isApp is false @@ -1775,7 +1772,7 @@ export function Settings() { - {saasStartComponent} + {/*{saasStartComponent}*/} {accessCodeComponent} {!accessStore.hideUserApiKey && ( diff --git a/app/locales/cn.ts b/app/locales/cn.ts index 81b609cde..077deaf64 100644 --- a/app/locales/cn.ts +++ b/app/locales/cn.ts @@ -25,9 +25,9 @@ const cn = { Input: "在此处填写访问码", Confirm: "确认", Later: "稍后再说", - SaasTips: "配置太麻烦,想要立即使用", - TopTips: - "🥳 NextChat AI 首发优惠,立刻解锁 OpenAI o1, GPT-4o, Claude-3.5 等最新大模型", + // SaasTips: "配置太麻烦,想要立即使用", + // TopTips: + // "🥳 NextChat AI 首发优惠,立刻解锁 OpenAI o1, GPT-4o, Claude-3.5 等最新大模型", }, ChatItem: { ChatItemCount: (count: number) => `${count} 条对话`, @@ -540,6 +540,9 @@ const cn = { }, }, + // 增加厂商选项 + ServiceProvider: "服务提供商", + Model: "模型 (model)", CompressModel: { Title: "对话摘要模型",