From 656af191ab8163fb520098861d8c3bb2482f1d0a Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Wed, 13 Mar 2024 12:16:26 +0330 Subject: [PATCH 1/4] fix remained traffic in info Co-Authored-By: Alireza Ahmadi --- web/html/xui/inbound_info_modal.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/web/html/xui/inbound_info_modal.html b/web/html/xui/inbound_info_modal.html index e679bbd07..f85fc7d3c 100644 --- a/web/html/xui/inbound_info_modal.html +++ b/web/html/xui/inbound_info_modal.html @@ -143,7 +143,7 @@ - [[ sizeFormat(infoModal.clientSettings.totalGB - infoModal.clientStats.up - infoModal.clientStats.down) ]] + [[ getRemStats() ]] @@ -423,7 +423,11 @@ }, statsColor(stats) { return usageColor(stats.up + stats.down, app.trafficDiff, stats.total); - } + }, + getRemStats() { + remained = this.infoModal.clientStats.total - this.infoModal.clientStats.up - this.infoModal.clientStats.down; + return remained>0 ? sizeFormat(remained) : '-'; + }, }, }); From eec1a3a6376edfabcf9912504b669d813faf9191 Mon Sep 17 00:00:00 2001 From: Steven Date: Wed, 13 Mar 2024 17:32:31 +0800 Subject: [PATCH 2/4] Update README.zh.md --- README.zh.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.zh.md b/README.zh.md index fc7bf460f..fd7f7691f 100644 --- a/README.zh.md +++ b/README.zh.md @@ -57,7 +57,7 @@ certbot certonly --standalone --agree-tos --register-unsafely-without-email -d y certbot renew --dry-run ``` -***Tip:*** *管理脚本具有Certbot。使用 `x-ui` 命令, 选择 `SSL Certificate Management`.* +***Tip:*** *管理脚本具有 Certbot 。使用 `x-ui` 命令, 选择 `SSL Certificate Management`.* @@ -243,7 +243,7 @@ systemctl restart x-ui ### 信息 - **端口:** 2053 -- **用户名 & 密码:** It will be generated randomly if you skip modifying. +- **用户名 & 密码:** 当您跳过设置时,此项会随机生成。 - **数据库路径:** - /etc/x-ui/x-ui.db - **Xray 配置路径:** @@ -392,7 +392,7 @@ Web 面板通过 Telegram Bot 支持每日流量、面板登录、数据库备 #### 使用 -- `/login` with `POST` user data: `{username: '', password: ''}` for login +- `/login` 使用 `POST` 用户名称 & 密码: `{username: '', password: ''}` 登录 - `/panel/api/inbounds` 以下操作的基础: | 方法 | 路径 | 操作 | From f3c9e45c8b2e5faf1f91febcc463d64816c3760c Mon Sep 17 00:00:00 2001 From: Steven Date: Wed, 13 Mar 2024 17:39:25 +0800 Subject: [PATCH 3/4] Update translate.zh_Hans.toml --- web/translation/translate.zh_Hans.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/translation/translate.zh_Hans.toml b/web/translation/translate.zh_Hans.toml index 979deb0e1..727f3abe1 100644 --- a/web/translation/translate.zh_Hans.toml +++ b/web/translation/translate.zh_Hans.toml @@ -30,8 +30,8 @@ "sure" = "确定" "encryption" = "加密" "transmission" = "传输" -"host" = "Host" -"path" = "Path" +"host" = "主机" +"path" = "路径" "camouflage" = "伪装" "status" = "状态" "enabled" = "开启" From c007921981856428631d8837056555e495cc814f Mon Sep 17 00:00:00 2001 From: Steven Date: Wed, 13 Mar 2024 18:02:49 +0800 Subject: [PATCH 4/4] Update translate.zh_Hans.toml --- web/translation/translate.zh_Hans.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/translation/translate.zh_Hans.toml b/web/translation/translate.zh_Hans.toml index 727f3abe1..2e33025db 100644 --- a/web/translation/translate.zh_Hans.toml +++ b/web/translation/translate.zh_Hans.toml @@ -321,7 +321,7 @@ "generalConfigs" = "常规配置" "generalConfigsDesc" = "这些选项将决定常规配置" "logConfigs" = "日志" -"logConfigsDesc" = "日志可能会影响服务器的效率,建议仅在需要时启用" +"logConfigsDesc" = "日志可能会影响服务器的性能,建议仅在需要时启用" "blockConfigs" = "防护屏蔽" "blockConfigsDesc" = "这些选项将阻止用户连接到特定协议和网站" "blockCountryConfigs" = "屏蔽国家/地区" @@ -423,7 +423,7 @@ "up" = "向上" "down" = "向下" "source" = "来源" -"dest" = "目的地" +"dest" = "目的地址" "inbound" = "入站" "outbound" = "出站" "balancer" = "负载均衡"