Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShishkevich D. <135337715+shishkevichd@users.noreply.github.com>2025-03-07 12:07:23 +0300
committerShishkevich D. <135337715+shishkevichd@users.noreply.github.com>2025-03-07 12:07:23 +0300
commit0a207b8a2c0629b7f1996025a40a10fbe58d05d0 (patch)
tree17d8a98faecccbda02b98ede48adf020d5e8d2f9 /web/html/xui/xray.html
parent26bf693dbdc2db0222ee37615e353f7ca1fdd3c1 (diff)
refactor: merging all util functions into classes
Diffstat (limited to 'web/html/xui/xray.html')
-rw-r--r--web/html/xui/xray.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/web/html/xui/xray.html b/web/html/xui/xray.html
index 288b69fc..6a367228 100644
--- a/web/html/xui/xray.html
+++ b/web/html/xui/xray.html
@@ -1177,10 +1177,10 @@
findOutboundTraffic(o) {
for (const otraffic of this.outboundsTraffic) {
if (otraffic.tag == o.tag) {
- return sizeFormat(otraffic.up) + ' / ' + sizeFormat(otraffic.down);
+ return SizeFormatter.sizeFormat(otraffic.up) + ' / ' + SizeFormatter.sizeFormat(otraffic.down);
}
}
- return sizeFormat(0) + ' / ' + sizeFormat(0);
+ return SizeFormatter.sizeFormat(0) + ' / ' + SizeFormatter.sizeFormat(0);
},
findOutboundAddress(o) {
serverObj = null;
@@ -1929,7 +1929,7 @@
},
torrentSettings: {
get: function () {
- return doAllItemsExist(this.settingsData.protocols.bittorrent, this.blockedProtocols);
+ return ArrayUtils.doAllItemsExist(this.settingsData.protocols.bittorrent, this.blockedProtocols);
},
set: function (newValue) {
if (newValue) {
@@ -1942,7 +1942,7 @@
familyProtectSettings: {
get: function () {
if (!this.templateSettings || !this.templateSettings.dns || !this.templateSettings.dns.servers) return false;
- return doAllItemsExist(this.settingsData.familyProtectDNS.servers, this.templateSettings.dns.servers);
+ return ArrayUtils.doAllItemsExist(this.settingsData.familyProtectDNS.servers, this.templateSettings.dns.servers);
},
set: function (newValue) {
newTemplateSettings = this.templateSettings;