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:
authorVadim Iskuchekov <egregors@pm.me>2025-06-21 10:55:35 +0300
committerGitHub <noreply@github.com>2025-06-21 10:55:35 +0300
commit5c10035bd964b41ce466ef16ca5ef8bb9a4507f6 (patch)
treec2d44ab3ce65ab72e884c47b587c2efb1472de83 /web/html/form
parent2e6faf69e62274a35611eb20b0e0a05251c4a8cd (diff)
feat: add comments under client id (#3131)
Diffstat (limited to 'web/html/form')
-rw-r--r--web/html/form/protocol/shadowsocks.html7
-rw-r--r--web/html/form/protocol/trojan.html7
-rw-r--r--web/html/form/protocol/vless.html7
-rw-r--r--web/html/form/protocol/vmess.html7
4 files changed, 24 insertions, 4 deletions
diff --git a/web/html/form/protocol/shadowsocks.html b/web/html/form/protocol/shadowsocks.html
index 06e12075..04cd9399 100644
--- a/web/html/form/protocol/shadowsocks.html
+++ b/web/html/form/protocol/shadowsocks.html
@@ -13,7 +13,12 @@
<th>Password</th>
</tr>
<tr v-for="(client, index) in inbound.settings.shadowsockses" :class="index % 2 == 1 ? 'client-table-odd-row' : ''">
- <td>[[ client.email ]]</td>
+ <td>
+ <div class="client-cell">
+ <div class="client-email">[[ client.email ]]</div>
+ <div v-if="client.comment && client.comment.trim()" class="client-comment">[[ client.comment ]]</div>
+ </div>
+ </td>
<td>[[ client.password ]]</td>
</tr>
</table>
diff --git a/web/html/form/protocol/trojan.html b/web/html/form/protocol/trojan.html
index fc327721..6c7b3773 100644
--- a/web/html/form/protocol/trojan.html
+++ b/web/html/form/protocol/trojan.html
@@ -12,7 +12,12 @@
<th>Password</th>
</tr>
<tr v-for="(client, index) in inbound.settings.trojans" :class="index % 2 == 1 ? 'client-table-odd-row' : ''">
- <td>[[ client.email ]]</td>
+ <td>
+ <div class="client-cell">
+ <div class="client-email">[[ client.email ]]</div>
+ <div v-if="client.comment && client.comment.trim()" class="client-comment">[[ client.comment ]]</div>
+ </div>
+ </td>
<td>[[ client.password ]]</td>
</tr>
</table>
diff --git a/web/html/form/protocol/vless.html b/web/html/form/protocol/vless.html
index 3cebda6e..88274f71 100644
--- a/web/html/form/protocol/vless.html
+++ b/web/html/form/protocol/vless.html
@@ -12,7 +12,12 @@
<th>ID</th>
</tr>
<tr v-for="(client, index) in inbound.settings.vlesses" :class="index % 2 == 1 ? 'client-table-odd-row' : ''">
- <td>[[ client.email ]]</td>
+ <td>
+ <div class="client-cell">
+ <div class="client-email">[[ client.email ]]</div>
+ <div v-if="client.comment && client.comment.trim()" class="client-comment">[[ client.comment ]]</div>
+ </div>
+ </td>
<td>[[ client.id ]]</td>
</tr>
</table>
diff --git a/web/html/form/protocol/vmess.html b/web/html/form/protocol/vmess.html
index 3c5200ac..94a0cc58 100644
--- a/web/html/form/protocol/vmess.html
+++ b/web/html/form/protocol/vmess.html
@@ -13,7 +13,12 @@
<th>{{ i18n "security" }}</th>
</tr>
<tr v-for="(client, index) in inbound.settings.vmesses" :class="index % 2 == 1 ? 'client-table-odd-row' : ''">
- <td>[[ client.email ]]</td>
+ <td>
+ <div class="client-cell">
+ <div class="client-email">[[ client.email ]]</div>
+ <div v-if="client.comment && client.comment.trim()" class="client-comment">[[ client.comment ]]</div>
+ </div>
+ </td>
<td>[[ client.id ]]</td>
<td>[[ client.security ]]</td>
</tr>