From d460bcc564f79fdd67e98f220847f393603b05b7 Mon Sep 17 00:00:00 2001 From: actions-user Date: Sat, 29 Nov 2025 00:11:57 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=84=20Sync=202025-11-29=2000:11:57?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/view/bandix/index.js | 20 ++++++++--------- .../luasrc/view/passwall/log/log.htm | 22 +++++++++++++++---- .../view/passwall/node_list/link_add_node.htm | 2 +- .../root/usr/share/passwall/subscribe.lua | 4 +++- openwrt-bandix/Makefile | 16 ++++++++++++-- 5 files changed, 46 insertions(+), 18 deletions(-) diff --git a/luci-app-bandix/htdocs/luci-static/resources/view/bandix/index.js b/luci-app-bandix/htdocs/luci-static/resources/view/bandix/index.js index 8453edb..39ccdf3 100644 --- a/luci-app-bandix/htdocs/luci-static/resources/view/bandix/index.js +++ b/luci-app-bandix/htdocs/luci-static/resources/view/bandix/index.js @@ -3984,6 +3984,11 @@ function downsampleForMobile(data, labels, upSeries, downSeries, maxPoints) { if (allDeviceRules.length === 0) { rulesInfo.appendChild(E('div', { 'style': 'font-size: 0.75rem; opacity: 0.6;' }, '-')); } else { + // 显示规则总数 + rulesInfo.appendChild(E('div', { + 'style': 'font-size: 0.75rem; font-weight: 600; margin-bottom: 4px;' + }, allDeviceRules.length + ' ' + (allDeviceRules.length === 1 ? _('rule') : _('rules')))); + // 显示当前生效的规则 if (activeRules.length > 0) { // 合并多个规则的限制值 @@ -3991,11 +3996,6 @@ function downsampleForMobile(data, labels, upSeries, downSeries, maxPoints) { var uploadLimit = mergedLimits.uploadLimit; var downloadLimit = mergedLimits.downloadLimit; - // 显示规则数量 - rulesInfo.appendChild(E('div', { - 'style': 'font-size: 0.75rem; font-weight: 600; margin-bottom: 4px;' - }, activeRules.length + ' ' + (activeRules.length === 1 ? _('rule') : _('rules')))); - // 显示限速值(箭头固定颜色,文字默认颜色) var limitsContainer = E('div', { 'style': 'font-size: 0.75rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;' @@ -4208,17 +4208,17 @@ function downsampleForMobile(data, labels, upSeries, downSeries, maxPoints) { var rulesContent = E('div', { 'class': 'device-card-rules-content' }); + // 显示规则总数 + rulesContent.appendChild(E('div', { + 'class': 'device-card-rules-count' + }, allDeviceRules.length + ' ' + (allDeviceRules.length === 1 ? _('rule') : _('rules')))); + if (activeRules.length > 0) { // 合并多个规则的限制值 var mergedLimits = mergeActiveRulesLimits(activeRules); var uploadLimit = mergedLimits.uploadLimit; var downloadLimit = mergedLimits.downloadLimit; - // 显示规则数量 - rulesContent.appendChild(E('div', { - 'class': 'device-card-rules-count' - }, activeRules.length + ' ' + (activeRules.length === 1 ? _('rule') : _('rules')))); - // 显示限速值 var limitsText = []; limitsText.push('↑' + (uploadLimit > 0 ? formatByterate(uploadLimit, speedUnit) : _('Unlimited'))); diff --git a/luci-app-passwall/luasrc/view/passwall/log/log.htm b/luci-app-passwall/luasrc/view/passwall/log/log.htm index 42be485..3320808 100644 --- a/luci-app-passwall/luasrc/view/passwall/log/log.htm +++ b/luci-app-passwall/luasrc/view/passwall/log/log.htm @@ -3,13 +3,19 @@ local api = require "luci.passwall.api" -%>