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/form
parent26bf693dbdc2db0222ee37615e353f7ca1fdd3c1 (diff)
refactor: merging all util functions into classes
Diffstat (limited to 'web/html/xui/form')
-rw-r--r--web/html/xui/form/client.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/web/html/xui/form/client.html b/web/html/xui/form/client.html
index 0b894f01..c2bcace1 100644
--- a/web/html/xui/form/client.html
+++ b/web/html/xui/form/client.html
@@ -126,10 +126,10 @@
<a-input-number v-model.number="client._totalGB" :min="0"></a-input-number>
</a-form-item>
<a-form-item v-if="isEdit && clientStats" label='{{ i18n "usage" }}'>
- <a-tag :color="clientUsageColor(clientStats, app.trafficDiff)">
- [[ sizeFormat(clientStats.up) ]] /
- [[ sizeFormat(clientStats.down) ]]
- ([[ sizeFormat(clientStats.up + clientStats.down) ]])
+ <a-tag :color="ColorUtils.clientUsageColor(clientStats, app.trafficDiff)">
+ [[ SizeFormatter.sizeFormat(clientStats.up) ]] /
+ [[ SizeFormatter.sizeFormat(clientStats.down) ]]
+ ([[ SizeFormatter.sizeFormat(clientStats.up + clientStats.down) ]])
</a-tag>
<a-tooltip>
<template slot="title">{{ i18n "pages.inbounds.resetTraffic" }}</template>