diff options
| author | MHSanaei <ho3ein.sanaei@gmail.com> | 2023-05-17 01:31:56 +0300 |
|---|---|---|
| committer | MHSanaei <ho3ein.sanaei@gmail.com> | 2023-05-17 01:31:56 +0300 |
| commit | 2d16eabc6e751e6233154a082bb6ccd2f816ec41 (patch) | |
| tree | c3ed0b35d3ad944e2fd722a4b000e3a598020bf9 /web/html/xui/inbound_client_table.html | |
| parent | be50be75fe56a617713efe1cc56de3a14ec7e0c9 (diff) | |
[feature] interactive deplete soon
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
Diffstat (limited to 'web/html/xui/inbound_client_table.html')
| -rw-r--r-- | web/html/xui/inbound_client_table.html | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/web/html/xui/inbound_client_table.html b/web/html/xui/inbound_client_table.html index 3143fe18..43491c45 100644 --- a/web/html/xui/inbound_client_table.html +++ b/web/html/xui/inbound_client_table.html @@ -29,20 +29,15 @@ <a-tag v-if="!isClientEnabled(record, client.email)" color="red">{{ i18n "depleted" }}</a-tag> </template> <template slot="traffic" slot-scope="text, client"> - <a-tag color="blue"> - [[ sizeFormat(getUpStats(record, client.email)) ]] / [[ sizeFormat(getDownStats(record, client.email)) ]] - </a-tag> + <a-tag :color="statsColor(record, client.email)" @click="alert(usageColor(0,1024,512))">[[ sizeFormat(getUpStats(record, client.email)) ]] / [[ sizeFormat(getDownStats(record, client.email)) ]]</a-tag> <template v-if="client._totalGB > 0"> - <a-tag v-if="isTrafficExhausted(record, client.email)" color="red">[[client._totalGB]] GB</a-tag> - <a-tag v-else color="cyan">[[client._totalGB]] GB</a-tag> + <a-tag :color="statsColor(record, client.email)">[[client._totalGB]]GB</a-tag> </template> <a-tag v-else color="green">{{ i18n "indefinite" }}</a-tag> </template> <template slot="expiryTime" slot-scope="text, client, index"> <template v-if="client.expiryTime > 0"> - <a-tag :color="isExpiry(record, index)? 'red' : 'blue'"> - [[ DateUtil.formatMillis(client._expiryTime) ]] - </a-tag> + <a-tag :color="usageColor(new Date().getTime(), app.expireDiff, client.expiryTime)"> </template> <a-tag v-else-if="client.expiryTime < 0" color="cyan"> [[ client._expiryTime ]] {{ i18n "pages.client.days" }} |
