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-03-17 19:30:14 +0300
committerGitHub <noreply@github.com>2023-03-17 19:30:14 +0300
commitf25a7a571e6103587558e970673a09375b1ef318 (patch)
tree24e645ff37cec8d8b166bfe59403c4fb19a1da2c /web/html/xui/inbound_client_table.html
parentb9ffe62d698016b52a5a36ede0eb2bdf86085d8a (diff)
parent87e173b56767a861210dc0cc4913bab232765dfd (diff)
Merge pull request #26 from MHSanaei/dev
alireza
Diffstat (limited to 'web/html/xui/inbound_client_table.html')
-rw-r--r--web/html/xui/inbound_client_table.html44
1 files changed, 44 insertions, 0 deletions
diff --git a/web/html/xui/inbound_client_table.html b/web/html/xui/inbound_client_table.html
new file mode 100644
index 00000000..4d7bd932
--- /dev/null
+++ b/web/html/xui/inbound_client_table.html
@@ -0,0 +1,44 @@
+{{define "client_table"}}
+<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 "pages.client.edit" }}</template>
+ <a-icon style="font-size: 24px;" type="edit" @click="openEditClient(record.id,client);"></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.id)" v-if="client.email.length > 0"></a-icon>
+ </a-tooltip>
+ <a-tooltip>
+ <template slot="title"><span style="color: #FF4D4F"> {{ i18n "delete"}}</span></template>
+ <a-icon style="font-size: 24px;" type="delete" v-if="isRemovable(record.id)" @click="delClient(record.id,client)"></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}} \ No newline at end of file