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:
authorMHSanaei <ho3ein.sanaei@gmail.com>2023-05-17 01:31:56 +0300
committerMHSanaei <ho3ein.sanaei@gmail.com>2023-05-17 01:31:56 +0300
commit2d16eabc6e751e6233154a082bb6ccd2f816ec41 (patch)
treec3ed0b35d3ad944e2fd722a4b000e3a598020bf9 /web/html/xui/inbound_client_table.html
parentbe50be75fe56a617713efe1cc56de3a14ec7e0c9 (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.html11
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" }}