Plus some fixes and decoration
This commit is contained in:
Alireza Ahmadi
2023-08-25 23:56:50 +02:00
parent da5253d98c
commit a6199526da
10 changed files with 22 additions and 11 deletions

View File

@@ -1,5 +1,6 @@
{{define "form/sniffing"}}
<a-form layout="inline">
<a-divider dashed style="margin:0;">
<a-form-item>
<span slot="label">
sniffing
@@ -12,6 +13,7 @@
</span>
<a-switch v-model="inbound.sniffing.enabled"></a-switch>
</a-form-item>
</a-divider>
<a-form-item>
<a-checkbox-group v-model="inbound.sniffing.destOverride" v-if="inbound.sniffing.enabled">
<a-checkbox v-for="key,value in SNIFFING_OPTION" :value="key">[[ value ]]</a-checkbox>

View File

@@ -1,6 +1,7 @@
{{define "form/streamSettings"}}
<!-- select stream network -->
<a-form layout="inline">
<a-divider dashed style="margin:0;">
<a-form-item label="{{ i18n "transmission" }}">
<a-select v-model="inbound.stream.network" @change="streamNetworkChange"
:dropdown-class-name="themeSwitcher.darkCardClass">
@@ -12,6 +13,7 @@
<a-select-option value="grpc">grpc</a-select-option>
</a-select>
</a-form-item>
</a-divider>
</a-form>
<!-- tcp -->

View File

@@ -1,8 +1,10 @@
{{define "form/streamSockopt"}}
<a-form layout="inline">
<a-divider dashed style="margin:0;">
<a-form-item label="Transparent Proxy">
<a-switch v-model="inbound.stream.sockoptSwitch"></a-switch>
</a-form-item>
</a-divider>
<table width="100%" class="ant-table-tbody" v-if="inbound.stream.sockoptSwitch">
<tr>
<td>Accept Proxy Protocol</td>

View File

@@ -1,6 +1,7 @@
{{define "form/tlsSettings"}}
<!-- tls enable -->
<a-form v-if="inbound.canSetTls()" layout="inline">
<a-divider dashed style="margin:0;">
<a-form-item label="TLS">
<a-switch v-model="inbound.tls">
</a-switch>
@@ -8,6 +9,7 @@
<a-form-item v-if="inbound.canEnableReality()" label="Reality">
<a-switch v-model="inbound.reality"></a-switch>
</a-form-item>
</a-divider>
</a-form>
<!-- tls settings -->