From fbc1e21abf32c3a33d43ff3eeb2f87b22690709a Mon Sep 17 00:00:00 2001 From: JustSong Date: Sun, 7 Jan 2024 14:19:36 +0800 Subject: [PATCH] chore: update ui copy --- .../src/layout/MainLayout/Header/ProfileSection/index.js | 2 +- web/berry/src/menu-items/panel.js | 6 +++--- web/berry/src/views/Dashboard/index.js | 8 ++++---- web/berry/src/views/Profile/index.js | 2 +- web/berry/src/views/Token/index.js | 6 +++--- web/berry/src/views/Topup/component/InviteCard.js | 2 +- 6 files changed, 13 insertions(+), 13 deletions(-) diff --git a/web/berry/src/layout/MainLayout/Header/ProfileSection/index.js b/web/berry/src/layout/MainLayout/Header/ProfileSection/index.js index 37210d2fc0..3e3512546a 100644 --- a/web/berry/src/layout/MainLayout/Header/ProfileSection/index.js +++ b/web/berry/src/layout/MainLayout/Header/ProfileSection/index.js @@ -157,7 +157,7 @@ const ProfileSection = () => { - Logout} /> + 登出} /> diff --git a/web/berry/src/menu-items/panel.js b/web/berry/src/menu-items/panel.js index c8766670b9..8d7738ad19 100644 --- a/web/berry/src/menu-items/panel.js +++ b/web/berry/src/menu-items/panel.js @@ -22,7 +22,7 @@ const panel = { children: [ { id: 'dashboard', - title: 'Dashboard', + title: '总览', type: 'item', url: '/panel/dashboard', icon: icons.IconDashboard, @@ -40,7 +40,7 @@ const panel = { }, { id: 'token', - title: 'Token', + title: '令牌', type: 'item', url: '/panel/token', icon: icons.IconKey, @@ -82,7 +82,7 @@ const panel = { }, { id: 'profile', - title: '个人设置', + title: '我的', type: 'item', url: '/panel/profile', icon: icons.IconUserScan, diff --git a/web/berry/src/views/Dashboard/index.js b/web/berry/src/views/Dashboard/index.js index 0c2062f286..2c37d7c26c 100644 --- a/web/berry/src/views/Dashboard/index.js +++ b/web/berry/src/views/Dashboard/index.js @@ -71,7 +71,7 @@ const Dashboard = () => { @@ -87,19 +87,19 @@ const Dashboard = () => { - 余 额: + 余额: {users?.quota ? '$' + calculateQuota(users.quota) : '未知'} - 已使用: + 已使用: {users?.used_quota ? '$' + calculateQuota(users.used_quota) : '未知'} - 调用次数: + 调用次数: {users?.request_count || '未知'} diff --git a/web/berry/src/views/Profile/index.js b/web/berry/src/views/Profile/index.js index 27e244d44e..e06832284a 100644 --- a/web/berry/src/views/Profile/index.js +++ b/web/berry/src/views/Profile/index.js @@ -201,7 +201,7 @@ export default function Profile() { {status.github_oauth && !inputs.github_id && ( )} diff --git a/web/berry/src/views/Token/index.js b/web/berry/src/views/Token/index.js index 1c8dee8592..97ece35fe0 100644 --- a/web/berry/src/views/Token/index.js +++ b/web/berry/src/views/Token/index.js @@ -142,7 +142,7 @@ export default function Token() { return ( <> - Token + 令牌 - 将OpenAI API基础地址https://api.openai.com替换为{siteInfo.server_address},复制下面的密钥即可使用。 + 将 OpenAI API 基础地址 https://api.openai.com 替换为 {siteInfo.server_address},复制下面的密钥即可使用 diff --git a/web/berry/src/views/Topup/component/InviteCard.js b/web/berry/src/views/Topup/component/InviteCard.js index 2cea48551a..a95f85e50f 100644 --- a/web/berry/src/views/Topup/component/InviteCard.js +++ b/web/berry/src/views/Topup/component/InviteCard.js @@ -51,7 +51,7 @@ const InviteCard = () => { 邀请奖励 - 分享您的邀请链接,邀请好友注册,即可获得奖励! + 分享您的邀请链接,邀请好友注册,即可获得奖励!