diff options
| author | MHSanaei <ho3ein.sanaei@gmail.com> | 2026-04-20 17:38:33 +0300 |
|---|---|---|
| committer | MHSanaei <ho3ein.sanaei@gmail.com> | 2026-04-20 17:55:06 +0300 |
| commit | 04b4fb438487ada373fb3e6437b4cdb28b5174de (patch) | |
| tree | 3814ae9d0e10d2ee8e061bd3ff5495aab0ca48c4 /web/html/form/stream/stream_tcp.html | |
| parent | ae5ad505d04fa347eb96a0d2bfb54ff541c3b709 (diff) | |
finalmask
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
Diffstat (limited to 'web/html/form/stream/stream_tcp.html')
| -rw-r--r-- | web/html/form/stream/stream_tcp.html | 29 |
1 files changed, 19 insertions, 10 deletions
diff --git a/web/html/form/stream/stream_tcp.html b/web/html/form/stream/stream_tcp.html index 3024ef77..2fb69cb0 100644 --- a/web/html/form/stream/stream_tcp.html +++ b/web/html/form/stream/stream_tcp.html @@ -5,11 +5,13 @@ <a-switch v-model="inbound.stream.tcp.acceptProxyProtocol"></a-switch> </a-form-item> <a-form-item label='HTTP {{ i18n "camouflage" }}'> - <a-switch :checked="inbound.stream.tcp.type === 'http'" @change="checked => inbound.stream.tcp.type = checked ? 'http' : 'none'"></a-switch> + <a-switch :checked="inbound.stream.tcp.type === 'http'" + @change="checked => inbound.stream.tcp.type = checked ? 'http' : 'none'"></a-switch> </a-form-item> </a-form> -<a-form v-if="inbound.stream.tcp.type === 'http'" :colon="false" :label-col="{ md: {span:8} }" :wrapper-col="{ md: {span:14} }"> +<a-form v-if="inbound.stream.tcp.type === 'http'" :colon="false" :label-col="{ md: {span:8} }" + :wrapper-col="{ md: {span:14} }"> <!-- tcp request --> <a-divider :style="{ margin: '0' }">{{ i18n "pages.inbounds.stream.general.request" }}</a-divider> <a-form-item label='{{ i18n "pages.inbounds.stream.tcp.version" }}'> @@ -24,7 +26,8 @@ </template> <template v-for="(path, index) in inbound.stream.tcp.request.path"> <a-input v-model.trim="inbound.stream.tcp.request.path[index]"> - <a-button icon="minus" size="small" slot="addonAfter" @click="inbound.stream.tcp.request.removePath(index)" v-if="inbound.stream.tcp.request.path.length>1"></a-button> + <a-button icon="minus" size="small" slot="addonAfter" @click="inbound.stream.tcp.request.removePath(index)" + v-if="inbound.stream.tcp.request.path.length>1"></a-button> </a-input> </template> </a-form-item> @@ -33,11 +36,14 @@ </a-form-item> <a-form-item :wrapper-col="{span:24}"> <a-input-group compact v-for="(header, index) in inbound.stream.tcp.request.headers"> - <a-input :style="{ width: '50%' }" v-model.trim="header.name" placeholder='{{ i18n "pages.inbounds.stream.general.name" }}'> + <a-input :style="{ width: '50%' }" v-model.trim="header.name" + placeholder='{{ i18n "pages.inbounds.stream.general.name" }}'> <template slot="addonBefore" :style="{ margin: '0' }">[[ index+1 ]]</template> </a-input> - <a-input :style="{ width: '50%' }" v-model.trim="header.value" placeholder='{{ i18n "pages.inbounds.stream.general.value" }}'> - <a-button icon="minus" slot="addonAfter" size="small" @click="inbound.stream.tcp.request.removeHeader(index)"></a-button> + <a-input :style="{ width: '50%' }" v-model.trim="header.value" + placeholder='{{ i18n "pages.inbounds.stream.general.value" }}'> + <a-button icon="minus" slot="addonAfter" size="small" + @click="inbound.stream.tcp.request.removeHeader(index)"></a-button> </a-input> </a-input-group> </a-form-item> @@ -54,14 +60,17 @@ <a-input v-model.trim="inbound.stream.tcp.response.reason"></a-input> </a-form-item> <a-form-item label='{{ i18n "pages.inbounds.stream.tcp.responseHeader" }}'> - <a-button icon="plus" size="small" @click="inbound.stream.tcp.response.addHeader('Content-Type', 'application/octet-stream')"></a-button> + <a-button icon="plus" size="small" + @click="inbound.stream.tcp.response.addHeader('Content-Type', 'application/octet-stream')"></a-button> </a-form-item> <a-form-item :wrapper-col="{span:24}"> <a-input-group compact v-for="(header, index) in inbound.stream.tcp.response.headers"> - <a-input :style="{ width: '50%' }" v-model.trim="header.name" placeholder='{{ i18n "pages.inbounds.stream.general.name" }}'> + <a-input :style="{ width: '50%' }" v-model.trim="header.name" + placeholder='{{ i18n "pages.inbounds.stream.general.name" }}'> <template slot="addonBefore" :style="{ margin: '0' }">[[ index+1 ]]</template> </a-input> - <a-input :style="{ width: '50%' }" v-model.trim="header.value" placeholder='{{ i18n "pages.inbounds.stream.general.value" }}'> + <a-input :style="{ width: '50%' }" v-model.trim="header.value" + placeholder='{{ i18n "pages.inbounds.stream.general.value" }}'> <template slot="addonAfter"> <a-button icon="minus" size="small" @click="inbound.stream.tcp.response.removeHeader(index)"></a-button> </template> @@ -69,4 +78,4 @@ </a-input-group> </a-form-item> </a-form> -{{end}} +{{end}}
\ No newline at end of file |
