mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-03-03 01:33:33 +03:00
28 lines
1.5 KiB
HTML
28 lines
1.5 KiB
HTML
{{define "client_row"}}
|
|
<template slot="actions" slot-scope="text, client, index">
|
|
<a-icon v-if="record.hasLink()" style="font-size: 26px" type="qrcode" @click="showQrcode(record,index);"></a-icon>
|
|
<a-icon v-if="client.email != ''" style="font-size: 26px" type="retweet" @click="resetClientTraffic(client,record,$event)"></a-icon>
|
|
<a-icon type="info-circle" style="font-size: 26px" @click="showInfo(record,index);"></a-icon>
|
|
</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}}
|