Skip to content

Commit 71f3952

Browse files
committed
fix: fix the style issue of the status page
1 parent c9fc72f commit 71f3952

File tree

4 files changed

+17
-17
lines changed

4 files changed

+17
-17
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ The API server will be available at `http://localhost:7860`
4949

5050
After the service starts, you can access `http://localhost:7860` in your browser to open the web console homepage, where you can view account status and service status.
5151

52-
> **Note**: Windows local deployment does not support adding accounts via VNC online. You need to use the `npm run setup-auth` script to add accounts. VNC login is only available in Docker deployments on Linux servers.
52+
> **Note:** Windows local deployment does not support adding accounts via VNC online. You need to use the `npm run setup-auth` script to add accounts. VNC login is only available in Docker deployments on Linux servers.
5353
5454
### ☁ Cloud Deployment (Linux VPS)
5555

@@ -132,7 +132,7 @@ After deployment, you need to add Google accounts using one of these methods:
132132
- Run `npm run setup-auth` on a Windows machine to generate auth files
133133
- Upload `auth-N.json` files (N starts from 0) to the mounted `/path/to/auth` directory
134134

135-
> **Note**: Environment variable-based auth injection is no longer supported.
135+
> Environment variable-based auth injection is no longer supported.
136136
137137
#### 🌐 Step 3 (Optional): Nginx Reverse Proxy
138138

README_CN.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
- 🔐 **身份验证**:基于 API 密钥的安全认证机制
1414
- 🐳 **Docker 支持**:通过 Docker 和 Docker Compose 轻松部署
1515
- 📝 **模型支持**:通过 AI Studio 访问各种 Gemini 模型,包括生图模型
16-
- 🎨 **主页展示控制**:提供可视化的 Web 控制台,支持账户管理、VNC 登录等操作
16+
- 🎨 **主页展示控制**:提供可视化的 Web 控制台,支持账号管理、VNC 登录等操作
1717

1818
## 🚀 快速开始
1919

@@ -47,9 +47,9 @@ npm start
4747

4848
API 服务将在 `http://localhost:7860` 上运行。
4949

50-
服务启动后,您可以在浏览器中访问 `http://localhost:7860` 打开 Web 控制台主页,在这里可以查看账户状态和服务状态
50+
服务启动后,您可以在浏览器中访问 `http://localhost:7860` 打开 Web 控制台主页,在这里可以查看账号状态和服务状态
5151

52-
> **注意**Windows 本地运行不支持通过 VNC 在线添加账户,需要使用 `npm run setup-auth` 脚本添加账户。VNC 登录功能仅在 Linux 服务器上的 Docker 部署中可用
52+
> **注意**Windows 本地运行不支持通过 VNC 在线添加账号,需要使用 `npm run setup-auth` 脚本添加账号。当前 VNC 登录功能仅在 Linux 服务器上的 Docker 容器中可用
5353
5454
### ☁ 云端部署(Linux VPS)
5555

@@ -116,23 +116,23 @@ sudo docker compose logs -f
116116
sudo docker compose down
117117
```
118118

119-
#### 🔑 步骤 2:账户管理
119+
#### 🔑 步骤 2:账号管理
120120

121-
部署后,您需要使用以下方式之一添加 Google 账户
121+
部署后,您需要使用以下方式之一添加 Google 账号
122122

123123
**方法 1:VNC 登录(推荐)**
124124

125-
- 在浏览器中访问部署的服务地址( `http://your-server:7860`)并点击"添加账户"按钮
125+
- 在浏览器中访问部署的服务地址(例如 `http://your-server:7860`)并点击「添加账号」按钮
126126
- 将跳转到 VNC 页面,显示浏览器实例
127-
- 登录您的 Google 账户,登录完成后点击"保存"按钮
128-
- 账户将自动保存为 `auth-N.json`(N 从 0 开始)
127+
- 登录您的 Google 账号,登录完成后点击「保存」按钮
128+
- 账号将自动保存为 `auth-N.json`(N 从 0 开始)
129129

130130
**方法 2:上传认证文件(传统方式)**
131131

132132
- 在 Windows 机器上运行 `npm run setup-auth` 生成认证文件
133133
-`auth-N.json` 文件(N 从 0 开始)上传到挂载的 `/path/to/auth` 目录
134134

135-
> **注意**:不再支持通过环境变量注入认证信息
135+
> ⚠ 目前暂不支持通过环境变量注入认证信息
136136
137137
#### 🌐 步骤 3(可选):使用 Nginx 反向代理
138138

ui/app/pages/StatusPage.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@
112112
<span class="label">{{ t('usageCount') }}</span>: <span>{{ state.usageCount }}</span>
113113
<span class="label">{{ t('consecutiveFailures') }}</span>: <span>{{ state.failureCount }}</span>
114114
<span class="label">{{ t('totalScanned') }}</span>: <span>{{ totalScannedAccountsText }}</span><template v-for="account in state.accountDetails" :key="account.index">
115-
<span class="label account-label" style="padding-left: 20px;">{{ t('account') }} {{ account.index }}</span>: {{ account.name }}</template><template v-if="state.accountDetails.length === 0">
116-
</template><span class="label">{{ t('formatErrors') }}</span>: <span>{{ formatErrorsText }}</span></template></pre>
115+
<span class="label account-label" style="padding-left: 20px;">{{ t('account') }} {{ account.index }}</span>: {{ account.name }}</template>
116+
<span class="label">{{ t('formatErrors') }}</span>: <span>{{ formatErrorsText }}</span></template></pre>
117117
</div>
118118
<div id="actions-section" style="margin-top: 2em">
119119
<h2>{{ t("actionsPanel") }}</h2>

ui/locales/zh.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@
4848
"authVncContainerMissingDetail": "请刷新页面并重试。",
4949
"authVncNotConnected": "VNC 会话尚未连接。",
5050
"browserConnection": "浏览器连接",
51-
"btnAddUser": "添加账户",
52-
"btnDeleteUser": "删除账户",
51+
"btnAddUser": "添加账号",
52+
"btnDeleteUser": "删除账号",
5353
"btnSwitchAccount": "切换账号",
5454
"cancel": "取消",
5555
"confirmDelete": "确定要删除账号",
@@ -88,8 +88,8 @@
8888
"logoutError": "登出时发生错误。",
8989
"logoutFailed": "登出失败。",
9090
"logoutSuccess": "登出成功。",
91-
"noAccountSelected": "未选择任何账户",
92-
"noActiveAccount": "无活动账户",
91+
"noAccountSelected": "未选择任何账号",
92+
"noActiveAccount": "无活动账号",
9393
"notImplemented": "尚未实现",
9494
"ok": "确定",
9595
"onlyAppliesWhenStreamingEnabled": "仅在启用流式传输时适用",

0 commit comments

Comments
 (0)