From 999ebf2512ea86b99b30e70cb398fb864624d418 Mon Sep 17 00:00:00 2001 From: Eric-2369 Date: Thu, 26 Sep 2024 10:00:00 +0800 Subject: [PATCH] refactor: comment NextChat advertisement --- app/components/auth.tsx | 6 +++--- app/components/settings.tsx | 2 +- app/locales/cn.ts | 10 ++-------- app/locales/en.ts | 10 ++-------- 4 files changed, 8 insertions(+), 20 deletions(-) diff --git a/app/components/auth.tsx b/app/components/auth.tsx index 5375bda3f70..9038c38e81d 100644 --- a/app/components/auth.tsx +++ b/app/components/auth.tsx @@ -48,7 +48,7 @@ export function AuthPage() { return (
- + {/**/}
} @@ -115,12 +115,12 @@ export function AuthPage() { type="primary" onClick={goChat} /> - { goSaas(); }} - /> + />*/}
); diff --git a/app/components/settings.tsx b/app/components/settings.tsx index 68ebcf084c1..306714e9540 100644 --- a/app/components/settings.tsx +++ b/app/components/settings.tsx @@ -1775,7 +1775,7 @@ export function Settings() { - {saasStartComponent} + {/*{saasStartComponent}*/} {accessCodeComponent} {!accessStore.hideUserApiKey && ( diff --git a/app/locales/cn.ts b/app/locales/cn.ts index 81b609cde17..9c22c5563ed 100644 --- a/app/locales/cn.ts +++ b/app/locales/cn.ts @@ -8,14 +8,8 @@ const cn = { WIP: "该功能仍在开发中……", Error: { Unauthorized: isApp - ? `😆 对话遇到了一些问题,不用慌: - \\ 1️⃣ 想要零配置开箱即用,[点击这里立刻开启对话 🚀](${SAAS_CHAT_UTM_URL}) - \\ 2️⃣ 如果你想消耗自己的 OpenAI 资源,点击[这里](/#/settings)修改设置 ⚙️` - : `😆 对话遇到了一些问题,不用慌: - \ 1️⃣ 想要零配置开箱即用,[点击这里立刻开启对话 🚀](${SAAS_CHAT_UTM_URL}) - \ 2️⃣ 如果你正在使用私有部署版本,点击[这里](/#/auth)输入访问秘钥 🔑 - \ 3️⃣ 如果你想消耗自己的 OpenAI 资源,点击[这里](/#/settings)修改设置 ⚙️ - `, + ? "检测到无效 API Key,请前往[设置](/#/settings)页检查 API Key 是否配置正确。" + : "访问密码不正确或为空,请前往[登录](/#/auth)页输入正确的访问密码,或者在[设置](/#/settings)页填入你自己的 OpenAI API Key。", }, Auth: { Return: "返回", diff --git a/app/locales/en.ts b/app/locales/en.ts index 8fecf8bf78e..74088224e58 100644 --- a/app/locales/en.ts +++ b/app/locales/en.ts @@ -9,14 +9,8 @@ const en: LocaleType = { WIP: "Coming Soon...", Error: { Unauthorized: isApp - ? `😆 Oops, there's an issue. No worries: - \\ 1️⃣ New here? [Click to start chatting now 🚀](${SAAS_CHAT_UTM_URL}) - \\ 2️⃣ Want to use your own OpenAI resources? [Click here](/#/settings) to change settings ⚙️` - : `😆 Oops, there's an issue. Let's fix it: - \ 1️⃣ New here? [Click to start chatting now 🚀](${SAAS_CHAT_UTM_URL}) - \ 2️⃣ Using a private setup? [Click here](/#/auth) to enter your key 🔑 - \ 3️⃣ Want to use your own OpenAI resources? [Click here](/#/settings) to change settings ⚙️ - `, + ? "Invalid API Key, please check it in [Settings](/#/settings) page." + : "Unauthorized access, please enter access code in [auth](/#/auth) page, or enter your OpenAI API Key.", }, Auth: { Return: "Return",