@@ -224,7 +224,7 @@
[[ getRemStats() ]]
|
- [[ sizeFormat(infoModal.clientSettings.totalGB) ]]
+ [[ SizeFormatter.sizeFormat(infoModal.clientSettings.totalGB) ]]
|
-
+
[[ DateUtil.formatMillis(infoModal.clientSettings.expiryTime) ]]
@@ -540,11 +540,11 @@
})
},
statsColor(stats) {
- return usageColor(stats.up + stats.down, app.trafficDiff, stats.total);
+ return ColorUtils.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) : '-';
+ return remained > 0 ? SizeFormatter.sizeFormat(remained) : '-';
},
refreshIPs() {
this.refreshing = true;
diff --git a/web/html/xui/inbounds.html b/web/html/xui/inbounds.html
index 7dc5ff5f..677a3074 100644
--- a/web/html/xui/inbounds.html
+++ b/web/html/xui/inbounds.html
@@ -141,11 +141,11 @@
{{ i18n "pages.inbounds.totalDownUp" }}:
- [[ sizeFormat(total.up) ]] / [[ sizeFormat(total.down) ]]
+ [[ SizeFormatter.sizeFormat(total.up) ]] / [[ SizeFormatter.sizeFormat(total.down) ]]
{{ i18n "pages.inbounds.totalUsage" }}:
- [[ sizeFormat(total.up + total.down) ]]
+ [[ SizeFormatter.sizeFormat(total.up + total.down) ]]
{{ i18n "pages.inbounds.inboundCount" }}:
@@ -375,19 +375,19 @@
- | ↑[[ sizeFormat(dbInbound.up) ]] |
- ↓[[ sizeFormat(dbInbound.down) ]] |
+ ↑[[ SizeFormatter.sizeFormat(dbInbound.up) ]] |
+ ↓[[ SizeFormatter.sizeFormat(dbInbound.down) ]] |
| {{ i18n "remained" }} |
- [[ sizeFormat(dbInbound.total - dbInbound.up - dbInbound.down) ]] |
+ [[ SizeFormatter.sizeFormat(dbInbound.total - dbInbound.up - dbInbound.down) ]] |
-
- [[ sizeFormat(dbInbound.up + dbInbound.down) ]] /
+
+ [[ SizeFormatter.sizeFormat(dbInbound.up + dbInbound.down) ]] /
- [[ sizeFormat(dbInbound.total) ]]
+ [[ SizeFormatter.sizeFormat(dbInbound.total) ]]
|