diff options
Diffstat (limited to 'web/html/xui/inbound_client_table.html')
| -rw-r--r-- | web/html/xui/inbound_client_table.html | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/web/html/xui/inbound_client_table.html b/web/html/xui/inbound_client_table.html index 13593cea..fbf0699a 100644 --- a/web/html/xui/inbound_client_table.html +++ b/web/html/xui/inbound_client_table.html @@ -55,18 +55,18 @@ <template slot="content" v-if="client.email"> <table cellpadding="2" width="100%"> <tr> - <td>↑[[ sizeFormat(getUpStats(record, client.email)) ]]</td> - <td>↓[[ sizeFormat(getDownStats(record, client.email)) ]]</td> + <td>↑[[ SizeFormatter.sizeFormat(getUpStats(record, client.email)) ]]</td> + <td>↓[[ SizeFormatter.sizeFormat(getDownStats(record, client.email)) ]]</td> </tr> <tr v-if="client.totalGB > 0"> <td>{{ i18n "remained" }}</td> - <td>[[ sizeFormat(getRemStats(record, client.email)) ]]</td> + <td>[[ SizeFormatter.sizeFormat(getRemStats(record, client.email)) ]]</td> </tr> </table> </template> <table> <tr class="tr-table-box"> - <td class="tr-table-rt"> [[ sizeFormat(getSumStats(record, client.email)) ]] </td> + <td class="tr-table-rt"> [[ SizeFormatter.sizeFormat(getSumStats(record, client.email)) ]] </td> <td class="tr-table-bar" v-if="!client.enable"> <a-progress :stroke-color="themeSwitcher.isDarkTheme ? 'rgb(72 84 105)' : '#bcbcbc'" :show-info="false" :percent="statsProgress(record, client.email)" /> </td> @@ -124,9 +124,9 @@ </template> </span> </template> - <a-tag style="min-width: 50px; border: none;" :color="userExpiryColor(app.expireDiff, client, themeSwitcher.isDarkTheme)"> [[ remainedDays(client.expiryTime) ]] </a-tag> + <a-tag style="min-width: 50px; border: none;" :color="ColorUtils.userExpiryColor(app.expireDiff, client, themeSwitcher.isDarkTheme)"> [[ remainedDays(client.expiryTime) ]] </a-tag> </a-popover> - <a-tag v-else :color="userExpiryColor(app.expireDiff, client, themeSwitcher.isDarkTheme)" style="border: none;" class="infinite-tag"> + <a-tag v-else :color="ColorUtils.userExpiryColor(app.expireDiff, client, themeSwitcher.isDarkTheme)" style="border: none;" class="infinite-tag"> <svg height="10px" width="14px" viewBox="0 0 640 512" fill="currentColor"> <path d="M484.4 96C407 96 349.2 164.1 320 208.5C290.8 164.1 233 96 155.6 96C69.75 96 0 167.8 0 256s69.75 160 155.6 160C233.1 416 290.8 347.9 320 303.5C349.2 347.9 407 416 484.4 416C570.3 416 640 344.2 640 256S570.3 96 484.4 96zM155.6 368C96.25 368 48 317.8 48 256s48.25-112 107.6-112c67.75 0 120.5 82.25 137.1 112C276 285.8 223.4 368 155.6 368zM484.4 368c-67.75 0-120.5-82.25-137.1-112C364 226.2 416.6 144 484.4 144C543.8 144 592 194.2 592 256S543.8 368 484.4 368z" fill="currentColor"></path> </svg> @@ -172,7 +172,7 @@ <td colspan="3" style="text-align: center;">{{ i18n "pages.inbounds.traffic" }}</td> </tr> <tr> - <td width="80px" style="margin:0; text-align: right;font-size: 1em;"> [[ sizeFormat(getUpStats(record, client.email) + getDownStats(record, client.email)) ]] </td> + <td width="80px" style="margin:0; text-align: right;font-size: 1em;"> [[ SizeFormatter.sizeFormat(getUpStats(record, client.email) + getDownStats(record, client.email)) ]] </td> <td width="120px" v-if="!client.enable"> <a-progress :stroke-color="themeSwitcher.isDarkTheme ? 'rgb(72 84 105)' : '#bcbcbc'" :show-info="false" :percent="statsProgress(record, client.email)" /> </td> @@ -181,12 +181,12 @@ <template slot="content" v-if="client.email"> <table cellpadding="2" width="100%"> <tr> - <td>↑[[ sizeFormat(getUpStats(record, client.email)) ]]</td> - <td>↓[[ sizeFormat(getDownStats(record, client.email)) ]]</td> + <td>↑[[ SizeFormatter.sizeFormat(getUpStats(record, client.email)) ]]</td> + <td>↓[[ SizeFormatter.sizeFormat(getDownStats(record, client.email)) ]]</td> </tr> <tr> <td>{{ i18n "remained" }}</td> - <td>[[ sizeFormat(getRemStats(record, client.email)) ]]</td> + <td>[[ SizeFormatter.sizeFormat(getRemStats(record, client.email)) ]]</td> </tr> </table> </template> @@ -244,7 +244,7 @@ </template> </span> </template> - <a-tag style="min-width: 50px; border: none;" :color="userExpiryColor(app.expireDiff, client, themeSwitcher.isDarkTheme)"> [[ remainedDays(client.expiryTime) ]] </a-tag> + <a-tag style="min-width: 50px; border: none;" :color="ColorUtils.userExpiryColor(app.expireDiff, client, themeSwitcher.isDarkTheme)"> [[ remainedDays(client.expiryTime) ]] </a-tag> </a-popover> <a-tag v-else :color="client.enable ? 'purple' : themeSwitcher.isDarkTheme ? '#2c3950' : '#bcbcbc'" class="infinite-tag"> <svg height="10px" width="14px" viewBox="0 0 640 512" fill="currentColor"> |
