diff --git a/web/html/xui/form/stream/stream_tcp.html b/web/html/xui/form/stream/stream_tcp.html index cf4abe1b..3b601047 100644 --- a/web/html/xui/form/stream/stream_tcp.html +++ b/web/html/xui/form/stream/stream_tcp.html @@ -25,11 +25,11 @@ <a-input v-model.trim="inbound.stream.tcp.request.path[index]"></a-input> </a-row> </a-form-item> - <a-form-item label='{{ i18n "pages.inbounds.stream.general.requestHeader" }}'> + <br> + <a-form-item> <a-row> - <a-button size="small" @click="inbound.stream.tcp.request.addHeader('Host', 'xxx.com')"> - + - </a-button> + <span>{{ i18n "pages.inbounds.stream.general.requestHeader" }}:</span> + <a-button type="primary" size="small" style="margin-left: 10px" @click="inbound.stream.tcp.request.addHeader('Host', 'xxx.com')">+</a-button> </a-row> <a-input-group v-for="(header, index) in inbound.stream.tcp.request.headers"> <a-input style="width: 50%" v-model.trim="header.name" @@ -37,13 +37,12 @@ <a-input style="width: 50%" v-model.trim="header.value" addon-before='{{ i18n "pages.inbounds.stream.general.value" }}'> <template slot="addonAfter"> - <a-button size="small" @click="inbound.stream.tcp.request.removeHeader(index)"> - - - </a-button> + <a-button type="primary" size="small" style="margin-left: 10px" @click="inbound.stream.tcp.request.removeHeader(index)">-</a-button> </template> </a-input> </a-input-group> </a-form-item> + </a-form> <!-- tcp response --> @@ -57,11 +56,10 @@ <a-form-item label='{{ i18n "pages.inbounds.stream.tcp.responseStatusDescription" }}'> <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-form-item> <a-row> - <a-button size="small" @click="inbound.stream.tcp.response.addHeader('Content-Type', 'application/octet-stream')"> - + - </a-button> + <span>{{ i18n "pages.inbounds.stream.tcp.responseHeader" }}:</span> + <a-button type="primary" size="small" style="margin-left: 10px" @click="inbound.stream.tcp.response.addHeader('Content-Type', 'application/octet-stream')">+</a-button> </a-row> <a-input-group v-for="(header, index) in inbound.stream.tcp.response.headers"> <a-input style="width: 50%" v-model.trim="header.name" @@ -69,9 +67,7 @@ <a-input style="width: 50%" v-model.trim="header.value" addon-before='{{ i18n "pages.inbounds.stream.general.value" }}'> <template slot="addonAfter"> - <a-button size="small" @click="inbound.stream.tcp.response.removeHeader(index)"> - - - </a-button> + <a-button type="primary" size="small" style="margin-left: 10px" @click="inbound.stream.tcp.response.removeHeader(index)">-</a-button> </template> </a-input> </a-input-group> diff --git a/web/html/xui/form/stream/stream_ws.html b/web/html/xui/form/stream/stream_ws.html index 3e09fbe8..ec9d3755 100644 --- a/web/html/xui/form/stream/stream_ws.html +++ b/web/html/xui/form/stream/stream_ws.html @@ -8,11 +8,11 @@ <a-form-item label='{{ i18n "path" }}'> <a-input v-model.trim="inbound.stream.ws.path"></a-input> </a-form-item> - <a-form-item label='{{ i18n "pages.inbounds.stream.general.requestHeader" }}'> + <br> + <a-form-item> <a-row> - <a-button size="small" @click="inbound.stream.ws.addHeader('Host', '')"> - + - </a-button> + <span>{{ i18n "pages.inbounds.stream.general.requestHeader" }}:</span> + <a-button type="primary" size="small" style="margin-left: 10px" @click="inbound.stream.ws.addHeader('Host', '')">+</a-button> </a-row> <a-input-group v-for="(header, index) in inbound.stream.ws.headers"> <a-input style="width: 50%" v-model.trim="header.name" @@ -20,9 +20,7 @@ <a-input style="width: 50%" v-model.trim="header.value" addon-before='{{ i18n "pages.inbounds.stream.general.value" }}'> <template slot="addonAfter"> - <a-button size="small" @click="inbound.stream.ws.removeHeader(index)"> - - - </a-button> + <a-button type="primary" size="small" style="margin-left: 10px" @click="inbound.stream.ws.removeHeader(index)">-</a-button> </template> </a-input> </a-input-group> diff --git a/web/html/xui/form/tls_settings.html b/web/html/xui/form/tls_settings.html index 31e559da..58edf992 100644 --- a/web/html/xui/form/tls_settings.html +++ b/web/html/xui/form/tls_settings.html @@ -35,14 +35,18 @@ <a-form v-if="inbound.tls" layout="inline"> <a-form-item label='Multi Domain'> <a-switch v-model="multiDomain"></a-switch> - <a-button v-if="multiDomain" size="small" @click="inbound.stream.tls.settings.domains.push({remark: '', domain: ''})">+</a-button> + </a-form-item> - <a-form-item v-if="multiDomain" label='Domains'> + <a-form-item v-if="multiDomain"> + <a-row> + <span>Domains:</span> + <a-button v-if="multiDomain" type="primary" size="small" @click="inbound.stream.tls.settings.domains.push({remark: '', domain: ''})" style="margin-left: 10px">+</a-button> + </a-row> <a-input-group v-for="(row, index) in inbound.stream.tls.settings.domains"> <a-input style="width: 40%" v-model.trim="row.remark" addon-before='{{ i18n "remark" }}'></a-input> <a-input style="width: 60%" v-model.trim="row.domain" addon-before='{{ i18n "host" }}'> <template slot="addonAfter"> - <a-button size="small" style="margin: 0px" @click="inbound.stream.tls.settings.domains.splice(index, 1)">-</a-button> + <a-button type="primary" size="small" style="margin-left: 10px" @click="inbound.stream.tls.settings.domains.splice(index, 1)">-</a-button> </template> </a-input> </a-input-group>