From ce35ffeff5e1d3c9f14a72330191782558b116a9 Mon Sep 17 00:00:00 2001 From: eviswu Date: Fri, 27 Sep 2024 15:52:22 +0800 Subject: [PATCH 1/4] Update cn.ts --- app/locales/cn.ts | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/app/locales/cn.ts b/app/locales/cn.ts index e5bcca0edbb..965120ba714 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)页输入正确的访问密码,或者微信公众号搜索【果冻学社】回复“访问密码”获取密码。", }, Auth: { Return: "返回", From a4577c9c179cf80a8edb72f91453f33cb91eb46b Mon Sep 17 00:00:00 2001 From: eviswu Date: Fri, 27 Sep 2024 15:53:52 +0800 Subject: [PATCH 2/4] Update sidebar.tsx --- app/components/sidebar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/sidebar.tsx b/app/components/sidebar.tsx index 493b1103beb..4e7e3d9ad3f 100644 --- a/app/components/sidebar.tsx +++ b/app/components/sidebar.tsx @@ -299,7 +299,7 @@ export function SideBar(props: { className?: string }) {
- + } From b141f7db6de2d5475968fa1f3f8157b39048e51a Mon Sep 17 00:00:00 2001 From: eviswu Date: Fri, 27 Sep 2024 16:17:11 +0800 Subject: [PATCH 3/4] Update auth.tsx --- app/components/auth.tsx | 7 ------- 1 file changed, 7 deletions(-) diff --git a/app/components/auth.tsx b/app/components/auth.tsx index e19512d8741..da138ec6630 100644 --- a/app/components/auth.tsx +++ b/app/components/auth.tsx @@ -45,7 +45,6 @@ export function AuthPage() { return (
-
} @@ -105,12 +104,6 @@ export function AuthPage() { type="primary" onClick={goChat} /> - { - goSaas(); - }} - />
); From 92366b3aaff6647d1e692bf6d8025434c52dede4 Mon Sep 17 00:00:00 2001 From: eviswu Date: Wed, 6 Nov 2024 16:13:06 +0800 Subject: [PATCH 4/4] Update auth.tsx --- app/components/auth.tsx | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/app/components/auth.tsx b/app/components/auth.tsx index 5cd3edf26e7..ef2325a248d 100644 --- a/app/components/auth.tsx +++ b/app/components/auth.tsx @@ -90,19 +90,7 @@ export function AuthPage() { ); }} /> - { - accessStore.update( - (access) => (access.googleApiKey = e.currentTarget.value), - ); - }} - /> + ) : null}