2023-02-09 22:48:06 +03:30
|
|
|
{{define "form/trojan"}}
|
2024-04-20 22:15:36 +03:30
|
|
|
<a-collapse activeKey="0" v-for="(client, index) in inbound.settings.trojans.slice(0,1)" v-if="!isEdit">
|
|
|
|
|
<a-collapse-panel header='{{ i18n "pages.inbounds.client" }}'>
|
2026-05-04 16:36:33 +02:00
|
|
|
{{template "form/client" .}}
|
2024-04-20 22:15:36 +03:30
|
|
|
</a-collapse-panel>
|
2023-12-13 19:27:36 +03:30
|
|
|
</a-collapse>
|
|
|
|
|
<a-collapse v-else>
|
2024-04-20 22:15:36 +03:30
|
|
|
<a-collapse-panel :header="'{{ i18n "pages.client.clientCount"}} : ' + inbound.settings.trojans.length">
|
|
|
|
|
<table width="100%">
|
|
|
|
|
<tr class="client-table-header">
|
|
|
|
|
<th>{{ i18n "pages.inbounds.email" }}</th>
|
|
|
|
|
<th>Password</th>
|
|
|
|
|
</tr>
|
2026-04-20 16:38:33 +02:00
|
|
|
<tr v-for="(client, index) in inbound.settings.trojans" :class="index % 2 == 1 ? ' client-table-odd-row' : ''">
|
2025-06-21 15:24:52 +07:00
|
|
|
<td>[[ client.email ]]</td>
|
2024-04-20 22:15:36 +03:30
|
|
|
<td>[[ client.password ]]</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</a-collapse-panel>
|
2023-12-13 19:27:36 +03:30
|
|
|
</a-collapse>
|
2026-04-20 16:38:33 +02:00
|
|
|
<template v-if=" inbound.isTcp">
|
2026-05-07 20:27:34 +02:00
|
|
|
{{template "form/fallbacks" .}}
|
2026-05-04 13:20:24 +02:00
|
|
|
<a-divider style="margin:5px 0;"></a-divider>
|
|
|
|
|
</template>
|
|
|
|
|
{{end}}
|