Skip to content

Commit

Permalink
refactor: comment NextChat advertisement
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric-2369 authored and actions-user committed Nov 17, 2024
1 parent 894cdb1 commit 1b83b73
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 20 deletions.
6 changes: 3 additions & 3 deletions app/components/auth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export function AuthPage() {

return (
<div className={styles["auth-page"]}>
<TopBanner></TopBanner>
{/*<TopBanner></TopBanner>*/}
<div className={styles["auth-header"]}>
<IconButton
icon={<LeftIcon />}
Expand Down Expand Up @@ -115,12 +115,12 @@ export function AuthPage() {
type="primary"
onClick={goChat}
/>
<IconButton
{/*<IconButton
text={Locale.Auth.SaasTips}
onClick={() => {
goSaas();
}}
/>
/>*/}
</div>
</div>
);
Expand Down
2 changes: 1 addition & 1 deletion app/components/settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1692,7 +1692,7 @@ export function Settings() {
</List>

<List id={SlotID.CustomModel}>
{saasStartComponent}
{/*{saasStartComponent}*/}
{accessCodeComponent}

{!accessStore.hideUserApiKey && (
Expand Down
10 changes: 2 additions & 8 deletions app/locales/cn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: "返回",
Expand Down
10 changes: 2 additions & 8 deletions app/locales/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 1b83b73

Please sign in to comment.