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:
authorSanaei <ho3ein.sanaei@gmail.com>2025-03-07 14:40:35 +0300
committerGitHub <noreply@github.com>2025-03-07 14:40:35 +0300
commit42fa64770bab9f9fb52e0cdb6d5dd82d66f19c35 (patch)
tree17d8a98faecccbda02b98ede48adf020d5e8d2f9 /web/html/xui/xray.html
parent2d8cca3a2ec1ae9034b7bc28a2fb5f2260f43e1a (diff)
parent0a207b8a2c0629b7f1996025a40a10fbe58d05d0 (diff)
Merge pull request #2732 from shishkevichd/refactor/refactor-1
Code refactoring
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;