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-06-21 13:32:13 +0300
committerMHSanaei <ho3ein.sanaei@gmail.com>2023-06-21 13:32:13 +0300
commitf57e6930234bf00c7df0eb5c167f6a4e8a58c7ed (patch)
tree7644c43d6a0133ad304d4e425630fe949c1133c2 /web/html/xui/form
parent83f6f13b5049a6995bf308d37a6bf8b540bf1227 (diff)
better clients info tables
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
Diffstat (limited to 'web/html/xui/form')
-rw-r--r--web/html/xui/form/protocol/shadowsocks.html6
-rw-r--r--web/html/xui/form/protocol/trojan.html6
-rw-r--r--web/html/xui/form/protocol/vless.html8
-rw-r--r--web/html/xui/form/protocol/vmess.html6
4 files changed, 18 insertions, 8 deletions
diff --git a/web/html/xui/form/protocol/shadowsocks.html b/web/html/xui/form/protocol/shadowsocks.html
index e9b01ea5..7af96373 100644
--- a/web/html/xui/form/protocol/shadowsocks.html
+++ b/web/html/xui/form/protocol/shadowsocks.html
@@ -96,10 +96,12 @@
<a-collapse-panel :header="'{{ i18n "pages.client.clientCount"}} : ' + inbound.settings.shadowsockses.length">
<table width="100%">
<tr class="client-table-header">
- <th v-for="col in Object.keys(inbound.settings.shadowsockses[0]).slice(0, 3)">[[ col ]]</th>
+ <th>{{ i18n "pages.inbounds.email" }}</th>
+ <th>Password</th>
</tr>
<tr v-for="(client, index) in inbound.settings.shadowsockses" :class="index % 2 == 1 ? 'client-table-odd-row' : ''">
- <td v-for="col in Object.values(client).slice(0, 3)">[[ col ]]</td>
+ <td>[[ client.email ]]</td>
+ <td>[[ client.password ]]</td>
</tr>
</table>
</a-collapse-panel>
diff --git a/web/html/xui/form/protocol/trojan.html b/web/html/xui/form/protocol/trojan.html
index f494adb9..46ae5e32 100644
--- a/web/html/xui/form/protocol/trojan.html
+++ b/web/html/xui/form/protocol/trojan.html
@@ -102,10 +102,12 @@
<a-collapse-panel :header="'{{ i18n "pages.client.clientCount"}} : ' + inbound.settings.trojans.length">
<table width="100%">
<tr class="client-table-header">
- <th v-for="col in Object.keys(inbound.settings.trojans[0]).slice(0, 3)">[[ col ]]</th>
+ <th>{{ i18n "pages.inbounds.email" }}</th>
+ <th>Password</th>
</tr>
<tr v-for="(client, index) in inbound.settings.trojans" :class="index % 2 == 1 ? 'client-table-odd-row' : ''">
- <td v-for="col in Object.values(client).slice(0, 3)">[[ col ]]</td>
+ <td>[[ client.email ]]</td>
+ <td>[[ client.password ]]</td>
</tr>
</table>
</a-collapse-panel>
diff --git a/web/html/xui/form/protocol/vless.html b/web/html/xui/form/protocol/vless.html
index f661a839..12729eff 100644
--- a/web/html/xui/form/protocol/vless.html
+++ b/web/html/xui/form/protocol/vless.html
@@ -108,10 +108,14 @@
<a-collapse-panel :header="'{{ i18n "pages.client.clientCount"}} : ' + inbound.settings.vlesses.length">
<table width="100%">
<tr class="client-table-header">
- <th v-for="col in Object.keys(inbound.settings.vlesses[0]).slice(0, 3)">[[ col ]]</th>
+ <th>{{ i18n "pages.inbounds.email" }}</th>
+ <th>Flow</th>
+ <th>ID</th>
</tr>
<tr v-for="(client, index) in inbound.settings.vlesses" :class="index % 2 == 1 ? 'client-table-odd-row' : ''">
- <td v-for="col in Object.values(client).slice(0, 3)">[[ col ]]</td>
+ <td>[[ client.email ]]</td>
+ <td>[[ client.flow ]]</td>
+ <td>[[ client.id ]]</td>
</tr>
</table>
</a-collapse-panel>
diff --git a/web/html/xui/form/protocol/vmess.html b/web/html/xui/form/protocol/vmess.html
index b58ecaee..a37f8468 100644
--- a/web/html/xui/form/protocol/vmess.html
+++ b/web/html/xui/form/protocol/vmess.html
@@ -97,10 +97,12 @@
<a-collapse-panel :header="'{{ i18n "pages.client.clientCount" }}: ' + inbound.settings.vmesses.length">
<table width="100%">
<tr class="client-table-header">
- <th v-for="col in Object.keys(inbound.settings.vmesses[0]).slice(0, 3)">[[ col ]]</th>
+ <th>{{ i18n "pages.inbounds.email" }}</th>
+ <th>ID</th>
</tr>
<tr v-for="(client, index) in inbound.settings.vmesses" :class="index % 2 == 1 ? 'client-table-odd-row' : ''">
- <td v-for="col in Object.values(client).slice(0, 3)">[[ col ]]</td>
+ <td>[[ client.email ]]</td>
+ <td>[[ client.id ]]</td>
</tr>
</table>
</a-collapse-panel>