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:
Diffstat (limited to 'web/html/xui/form/protocol/trojan.html')
-rw-r--r--web/html/xui/form/protocol/trojan.html106
1 files changed, 39 insertions, 67 deletions
diff --git a/web/html/xui/form/protocol/trojan.html b/web/html/xui/form/protocol/trojan.html
index a9e2cb24..77a4c27d 100644
--- a/web/html/xui/form/protocol/trojan.html
+++ b/web/html/xui/form/protocol/trojan.html
@@ -1,30 +1,29 @@
{{define "form/trojan"}}
-<a-form layout="inline" style="padding: 10px 0px;">
- <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" }}'>
- {{template "form/client"}}
- </a-collapse-panel>
- </a-collapse>
- <a-collapse v-else>
- <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>
- <tr v-for="(client, index) in inbound.settings.trojans" :class="index % 2 == 1 ? 'client-table-odd-row' : ''">
- <td>[[ client.email ]]</td>
- <td>[[ client.password ]]</td>
- </tr>
- </table>
- </a-collapse-panel>
- </a-collapse>
-</a-form>
-<template v-if="inbound.isTcp">
+<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" }}'>
+ {{template "form/client"}}
+ </a-collapse-panel>
+</a-collapse>
+<a-collapse v-else>
+ <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>
+ <tr v-for="(client, index) in inbound.settings.trojans" :class="index % 2 == 1 ? 'client-table-odd-row' : ''">
+ <td>[[ client.email ]]</td>
+ <td>[[ client.password ]]</td>
+ </tr>
+ </table>
+ </a-collapse-panel>
+</a-collapse>
+<template v-if="inbound.isTcp && !inbound.stream.isReality">
<a-form layout="inline">
<a-form-item label="Fallbacks">
<a-row>
- <a-button type="primary" size="small" @click="inbound.settings.addFallback()">
+ <a-button type="primary" size="small"
+ @click="inbound.settings.addFallback()">
+
</a-button>
</a-row>
@@ -32,54 +31,27 @@
</a-form>
<!-- trojan fallbacks -->
- <a-form v-for="(fallback, index) in inbound.settings.fallbacks" layout="inline">
+ <a-form v-for="(fallback, index) in inbound.settings.fallbacks" :colon="false" :label-col="{ md: {span:6} }" :wrapper-col="{ md: {span:14} }">
<a-divider style="margin:0;">
- fallback[[ index + 1 ]]
+ Fallback[[ index + 1 ]]
<a-icon type="delete" @click="() => inbound.settings.delFallback(index)"
style="color: rgb(255, 77, 79);cursor: pointer;"/>
</a-divider>
- <table width="100%">
- <tr>
- <td style="width: 20%;">Name</td>
- <td>
- <a-form-item>
- <a-input v-model="fallback.name" style="width: 250px"></a-input>
- </a-form-item>
- </td>
- </tr>
- <tr>
- <td>Alpn</td>
- <td>
- <a-form-item>
- <a-input v-model="fallback.alpn" style="width: 250px"></a-input>
- </a-form-item>
- </td>
- </tr>
- <tr>
- <td>Path</td>
- <td>
- <a-form-item>
- <a-input v-model="fallback.path" style="width: 250px"></a-input>
- </a-form-item>
- </td>
- </tr>
- <tr>
- <td>Dest</td>
- <td>
- <a-form-item>
- <a-input v-model="fallback.dest" style="width: 250px"></a-input>
- </a-form-item>
- </td>
- </tr>
- <tr>
- <td>xVer</td>
- <td>
- <a-form-item>
- <a-input-number v-model="fallback.xver" :min="0" :max="2"></a-input-number>
- </a-form-item>
- </td>
- </tr>
- </table>
+ <a-form-item label='Name'>
+ <a-input v-model="fallback.name"></a-input>
+ </a-form-item>
+ <a-form-item label='Alpn'>
+ <a-input v-model="fallback.alpn"></a-input>
+ </a-form-item>
+ <a-form-item label='Path'>
+ <a-input v-model="fallback.path"></a-input>
+ </a-form-item>
+ <a-form-item label='Dest'>
+ <a-input v-model="fallback.dest"></a-input>
+ </a-form-item>
+ <a-form-item label='xVer'>
+ <a-input-number v-model="fallback.xver" :min="0" :max="2"></a-input-number>
+ </a-form-item>
</a-form>
<a-divider style="margin:0;"></a-divider>
</template>