diff options
| author | MHSanaei <33454419+MHSanaei@users.noreply.github.com> | 2023-03-23 22:52:50 +0300 |
|---|---|---|
| committer | MHSanaei <33454419+MHSanaei@users.noreply.github.com> | 2023-03-23 22:52:50 +0300 |
| commit | 5ef8a5a37ec7e6b7df710fa61b0324ab5a6617ab (patch) | |
| tree | 8356d79072560de703f6dbc1d26fa5d51a6d5ac1 /web/html/xui/inbounds_client_row.html | |
| parent | c49a9e877cb8481a98564b45f3462f8f73189f6e (diff) | |
old designv1.0.9
Diffstat (limited to 'web/html/xui/inbounds_client_row.html')
| -rw-r--r-- | web/html/xui/inbounds_client_row.html | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/web/html/xui/inbounds_client_row.html b/web/html/xui/inbounds_client_row.html new file mode 100644 index 00000000..76f2a799 --- /dev/null +++ b/web/html/xui/inbounds_client_row.html @@ -0,0 +1,36 @@ +{{define "client_row"}} +<template slot="actions" slot-scope="text, client, index"> + <a-tooltip> + <template slot="title">{{ i18n "qrCode" }}</template> + <a-icon style="font-size: 24px;" type="qrcode" v-if="record.hasLink()" @click="showQrcode(record,index);"></a-icon> + </a-tooltip> + <a-tooltip> + <template slot="title">{{ i18n "info" }}</template> + <a-icon style="font-size: 24px;" type="info-circle" @click="showInfo(record,index);"></a-icon> + </a-tooltip> + <a-tooltip> + <template slot="title">{{ i18n "pages.inbounds.resetTraffic" }}</template> + <a-icon style="font-size: 24px;" type="retweet" @click="resetClientTraffic(client,record,$event)" v-if="client.email != ''"></a-icon> + </a-tooltip> +</template> +<template slot="client" slot-scope="text, client"> + [[ client.email ]] + <a-tag v-if="!isClientEnabled(record, client.email)" color="red">{{ i18n "disabled" }}</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> + <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> + </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> + </template> + <a-tag v-else color="green">{{ i18n "indefinite" }}</a-tag> +</template> +{{end}} |
