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:
authorMHSanaei <ho3ein.sanaei@gmail.com>2026-04-20 18:25:18 +0300
committerMHSanaei <ho3ein.sanaei@gmail.com>2026-04-20 18:25:18 +0300
commit6d0e7ec495cfc0ecb47b2afa532792032e0cfa92 (patch)
tree54ea4529942d48571d24e88e09614ec6d7281786 /web/html/form/stream
parent04b4fb438487ada373fb3e6437b4cdb28b5174de (diff)
reset button for auth password
Diffstat (limited to 'web/html/form/stream')
-rw-r--r--web/html/form/stream/external_proxy.html60
-rw-r--r--web/html/form/stream/stream_finalmask.html415
-rw-r--r--web/html/form/stream/stream_grpc.html26
-rw-r--r--web/html/form/stream/stream_httpupgrade.html49
-rw-r--r--web/html/form/stream/stream_hysteria.html167
-rw-r--r--web/html/form/stream/stream_kcp.html70
-rw-r--r--web/html/form/stream/stream_settings.html26
-rw-r--r--web/html/form/stream/stream_sockopt.html191
-rw-r--r--web/html/form/stream/stream_tcp.html121
-rw-r--r--web/html/form/stream/stream_ws.html46
-rw-r--r--web/html/form/stream/stream_xhttp.html337
11 files changed, 974 insertions, 534 deletions
diff --git a/web/html/form/stream/external_proxy.html b/web/html/form/stream/external_proxy.html
index 5c13df1b..5447abfd 100644
--- a/web/html/form/stream/external_proxy.html
+++ b/web/html/form/stream/external_proxy.html
@@ -1,31 +1,67 @@
{{define "form/externalProxy"}}
-<a-form :colon="false" :label-col="{ md: {span:8} }" :wrapper-col="{ md: {span:14} }">
+<a-form
+ :colon="false"
+ :label-col="{ md: {span:8} }"
+ :wrapper-col="{ md: {span:14} }"
+>
<a-divider :style="{ margin: '5px 0 0' }"></a-divider>
<a-form-item label="External Proxy">
<a-switch v-model="externalProxy"></a-switch>
- <a-button icon="plus" v-if="externalProxy" type="primary" :style="{ marginLeft: '10px' }" size="small"
- @click="inbound.stream.externalProxy.push({forceTls: 'same', dest: '', port: 443, remark: ''})"></a-button>
+ <a-button
+ icon="plus"
+ v-if="externalProxy"
+ type="primary"
+ :style="{ marginLeft: '10px' }"
+ size="small"
+ @click="inbound.stream.externalProxy.push({forceTls: 'same', dest: '', port: 443, remark: ''})"
+ ></a-button>
</a-form-item>
- <a-input-group :style="{ margin: '8px 0' }" compact v-for="(row, index) in inbound.stream.externalProxy">
+ <a-input-group
+ :style="{ margin: '8px 0' }"
+ compact
+ v-for="(row, index) in inbound.stream.externalProxy"
+ >
<template>
<a-tooltip title="Force TLS">
- <a-select v-model="row.forceTls" :style="{ width: '20%', margin: '0px' }"
- :dropdown-class-name="themeSwitcher.currentTheme">
- <a-select-option value="same">{{ i18n "pages.inbounds.same" }}</a-select-option>
+ <a-select
+ v-model="row.forceTls"
+ :style="{ width: '20%', margin: '0px' }"
+ :dropdown-class-name="themeSwitcher.currentTheme"
+ >
+ <a-select-option value="same"
+ >{{ i18n "pages.inbounds.same" }}</a-select-option
+ >
<a-select-option value="none">{{ i18n "none" }}</a-select-option>
<a-select-option value="tls">TLS</a-select-option>
</a-select>
</a-tooltip>
</template>
- <a-input :style="{ width: '30%' }" v-model.trim="row.dest" placeholder='{{ i18n "host" }}'></a-input>
+ <a-input
+ :style="{ width: '30%' }"
+ v-model.trim="row.dest"
+ placeholder='{{ i18n "host" }}'
+ ></a-input>
<a-tooltip title='{{ i18n "pages.inbounds.port" }}'>
- <a-input-number :style="{ width: '15%' }" v-model.number="row.port" min="1" max="65535"></a-input-number>
+ <a-input-number
+ :style="{ width: '15%' }"
+ v-model.number="row.port"
+ min="1"
+ max="65535"
+ ></a-input-number>
</a-tooltip>
- <a-input :style="{ width: '30%', top: '0' }" v-model.trim="row.remark" placeholder='{{ i18n "remark" }}'>
+ <a-input
+ :style="{ width: '30%', top: '0' }"
+ v-model.trim="row.remark"
+ placeholder='{{ i18n "remark" }}'
+ >
<template slot="addonAfter">
- <a-button icon="minus" size="small" @click="inbound.stream.externalProxy.splice(index, 1)"></a-button>
+ <a-button
+ icon="minus"
+ size="small"
+ @click="inbound.stream.externalProxy.splice(index, 1)"
+ ></a-button>
</template>
</a-input>
</a-input-group>
</a-form>
-{{end}} \ No newline at end of file
+{{end}}
diff --git a/web/html/form/stream/stream_finalmask.html b/web/html/form/stream/stream_finalmask.html
index be3761b7..b61813ee 100644
--- a/web/html/form/stream/stream_finalmask.html
+++ b/web/html/form/stream/stream_finalmask.html
@@ -1,167 +1,252 @@
{{define "form/streamFinalMask"}}
-<a-form :colon="false" :label-col="{ md: {span:8} }" :wrapper-col="{ md: {span:14} }"
- v-if="inbound.protocol == Protocols.HYSTERIA || inbound.stream.network == 'kcp'">
- <a-divider :style="{ margin: '5px 0 0' }"></a-divider>
- <a-form-item label="UDP Masks">
- <a-button icon="plus" type="primary" size="small"
- @click="inbound.stream.addUdpMask(inbound.protocol === Protocols.HYSTERIA ? 'salamander' : 'mkcp-aes128gcm')"></a-button>
- </a-form-item>
- <template v-if="inbound.stream.finalmask.udp && inbound.stream.finalmask.udp.length > 0">
- <a-form v-for="(mask, index) in inbound.stream.finalmask.udp" :key="index" :colon="false"
- :label-col="{ md: {span:8} }" :wrapper-col="{ md: {span:14} }">
- <a-divider :style="{ margin: '0' }">
- UDP Mask [[ index + 1 ]]
- <a-icon type="delete" @click="() => inbound.stream.delUdpMask(index)"
- :style="{ color: 'rgb(255, 77, 79)', cursor: 'pointer' }"></a-icon>
- </a-divider>
- <a-form-item label='{{ i18n "pages.xray.outbound.type" }}'>
- <a-select v-model="mask.type"
- @change="(type) => { mask.settings = mask._getDefaultSettings(type, {}); if(inbound.stream.network === 'kcp') { inbound.stream.kcp.mtu = type === 'xdns' ? 900 : 1350; } }"
- :dropdown-class-name="themeSwitcher.currentTheme">
- <template v-if="inbound.protocol === Protocols.HYSTERIA">
- <a-select-option value="salamander">Salamander (Hysteria2)</a-select-option>
- </template>
- <template v-else>
- <a-select-option value="mkcp-aes128gcm">mKCP AES-128-GCM</a-select-option>
- <a-select-option value="header-dns">Header DNS</a-select-option>
- <a-select-option value="header-dtls">Header DTLS 1.2</a-select-option>
- <a-select-option value="header-srtp">Header SRTP</a-select-option>
- <a-select-option value="header-utp">Header uTP</a-select-option>
- <a-select-option value="header-wechat">Header WeChat Video</a-select-option>
- <a-select-option value="header-wireguard">Header WireGuard</a-select-option>
- <a-select-option value="mkcp-original">mKCP Original</a-select-option>
- <a-select-option value="xdns">xDNS</a-select-option>
- <a-select-option value="xicmp">xICMP</a-select-option>
- <a-select-option value="header-custom">Header Custom</a-select-option>
- <a-select-option value="noise">Noise</a-select-option>
- <a-select-option value="sudoku">Sudoku</a-select-option>
- </template>
- </a-select>
- </a-form-item>
- <a-form-item label="Password" v-if="['mkcp-aes128gcm', 'salamander', 'sudoku'].includes(mask.type)">
- <a-input v-model.trim="mask.settings.password" placeholder="Obfuscation password"></a-input>
- </a-form-item>
- <a-form-item label="Domain" v-if="['header-dns', 'xdns'].includes(mask.type)">
- <a-input v-model.trim="mask.settings.domain" placeholder="e.g., www.example.com"></a-input>
- </a-form-item>
- <template v-if="mask.type === 'header-custom'">
- <a-form-item label='Client'>
- <a-icon type="plus" type="primary" size="small"
- @click="mask.settings.client.push({rand: 0, randRange: '0-255', type: 'array', packet: []})" />
- </a-form-item>
- <template v-for="(c, index) in mask.settings.client" :key="index">
- <a-divider :style="{ margin: '0' }"> Client [[ index + 1 ]]
- <a-icon type="delete" @click="() => mask.settings.client.splice(index, 1)"
- :style="{ color: 'rgb(255, 77, 79)', cursor: 'pointer' }"></a-icon>
- </a-divider>
- <a-form-item label='Rand'>
- <a-input-number v-model.number="c.rand" />
- </a-form-item>
- <a-form-item label='Rand Range'>
- <a-input v-model.trim="c.randRange" placeholder="0-255" />
- </a-form-item>
- <a-form-item label='{{ i18n "pages.xray.outbound.type" }}'>
- <a-select v-model="c.type" :dropdown-class-name="themeSwitcher.currentTheme">
- <a-select-option value="array">Array</a-select-option>
- <a-select-option value="str">String</a-select-option>
- <a-select-option value="hex">Hex</a-select-option>
- <a-select-option value="base64">Base64</a-select-option>
- </a-select>
- </a-form-item>
- <a-form-item label='Packet'>
- <a-input v-model.trim="c.packet" placeholder="binary data" />
- </a-form-item>
- </template>
- <a-divider :style="{ margin: '0' }"></a-divider>
- <a-form-item label='Server'>
- <a-icon type="plus" type="primary" size="small"
- @click="mask.settings.server.push({rand: 0, randRange: '0-255', type: 'array', packet: []})" />
- </a-form-item>
- <template v-for="(s, index) in mask.settings.server" :key="index">
- <a-divider :style="{ margin: '0' }"> Server [[ index + 1 ]]
- <a-icon type="delete" @click="() => mask.settings.server.splice(index, 1)"
- :style="{ color: 'rgb(255, 77, 79)', cursor: 'pointer' }"></a-icon>
- </a-divider>
- <a-form-item label='Rand'>
- <a-input-number v-model.number="s.rand" />
- </a-form-item>
- <a-form-item label='Rand Range'>
- <a-input v-model.trim="s.randRange" placeholder="0-255" />
- </a-form-item>
- <a-form-item label='{{ i18n "pages.xray.outbound.type" }}'>
- <a-select v-model="s.type" :dropdown-class-name="themeSwitcher.currentTheme">
- <a-select-option value="array">Array</a-select-option>
- <a-select-option value="str">String</a-select-option>
- <a-select-option value="hex">Hex</a-select-option>
- <a-select-option value="base64">Base64</a-select-option>
- </a-select>
- </a-form-item>
- <a-form-item label='Packet'>
- <a-input v-model.trim="s.packet" placeholder="binary data" />
- </a-form-item>
- </template>
- </template>
- <template v-if="mask.type === 'noise'">
- <a-form-item label='Reset'>
- <a-input-number v-model.number="mask.settings.reset" :min="0" />
- </a-form-item>
- <a-form-item label='Noise'>
- <a-icon type="plus" type="primary" size="small"
- @click="mask.settings.noise.push({rand: '1-8192', randRange: '0-255', type: 'array', packet: '', delay: ''})" />
- </a-form-item>
- <template v-for="(n, index) in mask.settings.noise" :key="index">
- <a-divider :style="{ margin: '0' }"> Noise [[ index + 1 ]]
- <a-icon type="delete" @click="() => mask.settings.noise.splice(index, 1)"
- :style="{ color: 'rgb(255, 77, 79)', cursor: 'pointer' }"></a-icon>
- </a-divider>
- <a-form-item label='Rand'>
- <a-input v-model.trim="n.rand" placeholder="1-8192" />
- </a-form-item>
- <a-form-item label='Rand Range'>
- <a-input v-model.trim="n.randRange" placeholder="0-255" />
- </a-form-item>
- <a-form-item label='{{ i18n "pages.xray.outbound.type" }}'>
- <a-select v-model="n.type" :dropdown-class-name="themeSwitcher.currentTheme">
- <a-select-option value="array">Array</a-select-option>
- <a-select-option value="str">String</a-select-option>
- <a-select-option value="hex">Hex</a-select-option>
- <a-select-option value="base64">Base64</a-select-option>
- </a-select>
- </a-form-item>
- <a-form-item label='Packet'>
- <a-input v-model.trim="n.packet" placeholder="binary data" />
- </a-form-item>
- <a-form-item label='Delay'>
- <a-input v-model.trim="n.delay" placeholder="10-20" />
- </a-form-item>
- </template>
- </template>
- <template v-if="mask.type === 'sudoku'">
- <a-form-item label='ASCII'>
- <a-input v-model.trim="mask.settings.ascii" placeholder="ASCII" />
- </a-form-item>
- <a-form-item label='Custom Table'>
- <a-input v-model.trim="mask.settings.customTable" placeholder="Custom Table" />
- </a-form-item>
- <a-form-item label='Custom Tables'>
- <a-input v-model.trim="mask.settings.customTables" placeholder="Custom Tables" />
- </a-form-item>
- <a-form-item label='Padding Min'>
- <a-input-number v-model.number="mask.settings.paddingMin" :min="0" />
- </a-form-item>
- <a-form-item label='Padding Max'>
- <a-input-number v-model.number="mask.settings.paddingMax" :min="0" />
- </a-form-item>
- </template>
- <template v-if="mask.type === 'xicmp'">
- <a-form-item label='IP'>
- <a-input v-model.trim="mask.settings.ip" placeholder="0.0.0.0" />
- </a-form-item>
- <a-form-item label='ID'>
- <a-input-number v-model.number="mask.settings.id" :min="0" />
- </a-form-item>
- </template>
- </a-form>
- </template>
+<a-form
+ :colon="false"
+ :label-col="{ md: {span:8} }"
+ :wrapper-col="{ md: {span:14} }"
+ v-if="inbound.protocol == Protocols.HYSTERIA || inbound.stream.network == 'kcp'"
+>
+ <a-divider :style="{ margin: '5px 0 0' }"></a-divider>
+ <a-form-item label="UDP Masks">
+ <a-button
+ icon="plus"
+ type="primary"
+ size="small"
+ @click="inbound.stream.addUdpMask(inbound.protocol === Protocols.HYSTERIA ? 'salamander' : 'mkcp-aes128gcm')"
+ ></a-button>
+ </a-form-item>
+ <template
+ v-if="inbound.stream.finalmask.udp && inbound.stream.finalmask.udp.length > 0"
+ >
+ <a-form
+ v-for="(mask, index) in inbound.stream.finalmask.udp"
+ :key="index"
+ :colon="false"
+ :label-col="{ md: {span:8} }"
+ :wrapper-col="{ md: {span:14} }"
+ >
+ <a-divider :style="{ margin: '0' }">
+ UDP Mask [[ index + 1 ]]
+ <a-icon
+ type="delete"
+ @click="() => inbound.stream.delUdpMask(index)"
+ :style="{ color: 'rgb(255, 77, 79)', cursor: 'pointer' }"
+ ></a-icon>
+ </a-divider>
+ <a-form-item label='{{ i18n "pages.xray.outbound.type" }}'>
+ <a-select
+ v-model="mask.type"
+ @change="(type) => { mask.settings = mask._getDefaultSettings(type, {}); if(inbound.stream.network === 'kcp') { inbound.stream.kcp.mtu = type === 'xdns' ? 900 : 1350; } }"
+ :dropdown-class-name="themeSwitcher.currentTheme"
+ >
+ <template v-if="inbound.protocol === Protocols.HYSTERIA">
+ <a-select-option value="salamander"
+ >Salamander (Hysteria2)</a-select-option
+ >
+ </template>
+ <template v-else>
+ <a-select-option value="mkcp-aes128gcm"
+ >mKCP AES-128-GCM</a-select-option
+ >
+ <a-select-option value="header-dns">Header DNS</a-select-option>
+ <a-select-option value="header-dtls"
+ >Header DTLS 1.2</a-select-option
+ >
+ <a-select-option value="header-srtp">Header SRTP</a-select-option>
+ <a-select-option value="header-utp">Header uTP</a-select-option>
+ <a-select-option value="header-wechat"
+ >Header WeChat Video</a-select-option
+ >
+ <a-select-option value="header-wireguard"
+ >Header WireGuard</a-select-option
+ >
+ <a-select-option value="mkcp-original"
+ >mKCP Original</a-select-option
+ >
+ <a-select-option value="xdns">xDNS</a-select-option>
+ <a-select-option value="xicmp">xICMP</a-select-option>
+ <a-select-option value="header-custom"
+ >Header Custom</a-select-option
+ >
+ <a-select-option value="noise">Noise</a-select-option>
+ <a-select-option value="sudoku">Sudoku</a-select-option>
+ </template>
+ </a-select>
+ </a-form-item>
+ <a-form-item
+ label="Password"
+ v-if="['mkcp-aes128gcm', 'salamander', 'sudoku'].includes(mask.type)"
+ >
+ <a-input
+ v-model.trim="mask.settings.password"
+ placeholder="Obfuscation password"
+ ></a-input>
+ </a-form-item>
+ <a-form-item
+ label="Domain"
+ v-if="['header-dns', 'xdns'].includes(mask.type)"
+ >
+ <a-input
+ v-model.trim="mask.settings.domain"
+ placeholder="e.g., www.example.com"
+ ></a-input>
+ </a-form-item>
+ <template v-if="mask.type === 'header-custom'">
+ <a-form-item label="Client">
+ <a-icon
+ type="plus"
+ type="primary"
+ size="small"
+ @click="mask.settings.client.push({rand: 0, randRange: '0-255', type: 'array', packet: []})"
+ />
+ </a-form-item>
+ <template v-for="(c, index) in mask.settings.client" :key="index">
+ <a-divider :style="{ margin: '0' }">
+ Client [[ index + 1 ]]
+ <a-icon
+ type="delete"
+ @click="() => mask.settings.client.splice(index, 1)"
+ :style="{ color: 'rgb(255, 77, 79)', cursor: 'pointer' }"
+ ></a-icon>
+ </a-divider>
+ <a-form-item label="Rand">
+ <a-input-number v-model.number="c.rand" />
+ </a-form-item>
+ <a-form-item label="Rand Range">
+ <a-input v-model.trim="c.randRange" placeholder="0-255" />
+ </a-form-item>
+ <a-form-item label='{{ i18n "pages.xray.outbound.type" }}'>
+ <a-select
+ v-model="c.type"
+ :dropdown-class-name="themeSwitcher.currentTheme"
+ >
+ <a-select-option value="array">Array</a-select-option>
+ <a-select-option value="str">String</a-select-option>
+ <a-select-option value="hex">Hex</a-select-option>
+ <a-select-option value="base64">Base64</a-select-option>
+ </a-select>
+ </a-form-item>
+ <a-form-item label="Packet">
+ <a-input v-model.trim="c.packet" placeholder="binary data" />
+ </a-form-item>
+ </template>
+ <a-divider :style="{ margin: '0' }"></a-divider>
+ <a-form-item label="Server">
+ <a-icon
+ type="plus"
+ type="primary"
+ size="small"
+ @click="mask.settings.server.push({rand: 0, randRange: '0-255', type: 'array', packet: []})"
+ />
+ </a-form-item>
+ <template v-for="(s, index) in mask.settings.server" :key="index">
+ <a-divider :style="{ margin: '0' }">
+ Server [[ index + 1 ]]
+ <a-icon
+ type="delete"
+ @click="() => mask.settings.server.splice(index, 1)"
+ :style="{ color: 'rgb(255, 77, 79)', cursor: 'pointer' }"
+ ></a-icon>
+ </a-divider>
+ <a-form-item label="Rand">
+ <a-input-number v-model.number="s.rand" />
+ </a-form-item>
+ <a-form-item label="Rand Range">
+ <a-input v-model.trim="s.randRange" placeholder="0-255" />
+ </a-form-item>
+ <a-form-item label='{{ i18n "pages.xray.outbound.type" }}'>
+ <a-select
+ v-model="s.type"
+ :dropdown-class-name="themeSwitcher.currentTheme"
+ >
+ <a-select-option value="array">Array</a-select-option>
+ <a-select-option value="str">String</a-select-option>
+ <a-select-option value="hex">Hex</a-select-option>
+ <a-select-option value="base64">Base64</a-select-option>
+ </a-select>
+ </a-form-item>
+ <a-form-item label="Packet">
+ <a-input v-model.trim="s.packet" placeholder="binary data" />
+ </a-form-item>
+ </template>
+ </template>
+ <template v-if="mask.type === 'noise'">
+ <a-form-item label="Reset">
+ <a-input-number v-model.number="mask.settings.reset" :min="0" />
+ </a-form-item>
+ <a-form-item label="Noise">
+ <a-icon
+ type="plus"
+ type="primary"
+ size="small"
+ @click="mask.settings.noise.push({rand: '1-8192', randRange: '0-255', type: 'array', packet: '', delay: ''})"
+ />
+ </a-form-item>
+ <template v-for="(n, index) in mask.settings.noise" :key="index">
+ <a-divider :style="{ margin: '0' }">
+ Noise [[ index + 1 ]]
+ <a-icon
+ type="delete"
+ @click="() => mask.settings.noise.splice(index, 1)"
+ :style="{ color: 'rgb(255, 77, 79)', cursor: 'pointer' }"
+ ></a-icon>
+ </a-divider>
+ <a-form-item label="Rand">
+ <a-input v-model.trim="n.rand" placeholder="1-8192" />
+ </a-form-item>
+ <a-form-item label="Rand Range">
+ <a-input v-model.trim="n.randRange" placeholder="0-255" />
+ </a-form-item>
+ <a-form-item label='{{ i18n "pages.xray.outbound.type" }}'>
+ <a-select
+ v-model="n.type"
+ :dropdown-class-name="themeSwitcher.currentTheme"
+ >
+ <a-select-option value="array">Array</a-select-option>
+ <a-select-option value="str">String</a-select-option>
+ <a-select-option value="hex">Hex</a-select-option>
+ <a-select-option value="base64">Base64</a-select-option>
+ </a-select>
+ </a-form-item>
+ <a-form-item label="Packet">
+ <a-input v-model.trim="n.packet" placeholder="binary data" />
+ </a-form-item>
+ <a-form-item label="Delay">
+ <a-input v-model.trim="n.delay" placeholder="10-20" />
+ </a-form-item>
+ </template>
+ </template>
+ <template v-if="mask.type === 'sudoku'">
+ <a-form-item label="ASCII">
+ <a-input v-model.trim="mask.settings.ascii" placeholder="ASCII" />
+ </a-form-item>
+ <a-form-item label="Custom Table">
+ <a-input
+ v-model.trim="mask.settings.customTable"
+ placeholder="Custom Table"
+ />
+ </a-form-item>
+ <a-form-item label="Custom Tables">
+ <a-input
+ v-model.trim="mask.settings.customTables"
+ placeholder="Custom Tables"
+ />
+ </a-form-item>
+ <a-form-item label="Padding Min">
+ <a-input-number v-model.number="mask.settings.paddingMin" :min="0" />
+ </a-form-item>
+ <a-form-item label="Padding Max">
+ <a-input-number v-model.number="mask.settings.paddingMax" :min="0" />
+ </a-form-item>
+ </template>
+ <template v-if="mask.type === 'xicmp'">
+ <a-form-item label="IP">
+ <a-input v-model.trim="mask.settings.ip" placeholder="0.0.0.0" />
+ </a-form-item>
+ <a-form-item label="ID">
+ <a-input-number v-model.number="mask.settings.id" :min="0" />
+ </a-form-item>
+ </template>
+ </a-form>
+ </template>
</a-form>
-{{end}} \ No newline at end of file
+{{end}}
diff --git a/web/html/form/stream/stream_grpc.html b/web/html/form/stream/stream_grpc.html
index 1e3d5bd3..e88fc067 100644
--- a/web/html/form/stream/stream_grpc.html
+++ b/web/html/form/stream/stream_grpc.html
@@ -1,13 +1,17 @@
{{define "form/streamGRPC"}}
-<a-form :colon="false" :label-col="{ md: {span:8} }" :wrapper-col="{ md: {span:14} }">
- <a-form-item label="Service Name">
- <a-input v-model.trim="inbound.stream.grpc.serviceName"></a-input>
- </a-form-item>
- <a-form-item label="Authority">
- <a-input v-model.trim="inbound.stream.grpc.authority"></a-input>
- </a-form-item>
- <a-form-item label="Multi Mode">
- <a-switch v-model="inbound.stream.grpc.multiMode"></a-switch>
- </a-form-item>
+<a-form
+ :colon="false"
+ :label-col="{ md: {span:8} }"
+ :wrapper-col="{ md: {span:14} }"
+>
+ <a-form-item label="Service Name">
+ <a-input v-model.trim="inbound.stream.grpc.serviceName"></a-input>
+ </a-form-item>
+ <a-form-item label="Authority">
+ <a-input v-model.trim="inbound.stream.grpc.authority"></a-input>
+ </a-form-item>
+ <a-form-item label="Multi Mode">
+ <a-switch v-model="inbound.stream.grpc.multiMode"></a-switch>
+ </a-form-item>
</a-form>
-{{end}} \ No newline at end of file
+{{end}}
diff --git a/web/html/form/stream/stream_httpupgrade.html b/web/html/form/stream/stream_httpupgrade.html
index 3b2398b6..067adf8d 100644
--- a/web/html/form/stream/stream_httpupgrade.html
+++ b/web/html/form/stream/stream_httpupgrade.html
@@ -1,7 +1,13 @@
{{define "form/streamHTTPUpgrade"}}
-<a-form :colon="false" :label-col="{ md: {span:8} }" :wrapper-col="{ md: {span:14} }">
+<a-form
+ :colon="false"
+ :label-col="{ md: {span:8} }"
+ :wrapper-col="{ md: {span:14} }"
+>
<a-form-item label="Proxy Protocol">
- <a-switch v-model="inbound.stream.httpupgrade.acceptProxyProtocol"></a-switch>
+ <a-switch
+ v-model="inbound.stream.httpupgrade.acceptProxyProtocol"
+ ></a-switch>
</a-form-item>
<a-form-item label='{{ i18n "host" }}'>
<a-input v-model.trim="inbound.stream.httpupgrade.host"></a-input>
@@ -10,20 +16,39 @@
<a-input v-model.trim="inbound.stream.httpupgrade.path"></a-input>
</a-form-item>
<a-form-item label='{{ i18n "pages.inbounds.stream.tcp.requestHeader" }}'>
- <a-button icon="plus" size="small" @click="inbound.stream.httpupgrade.addHeader('', '')"></a-button>
+ <a-button
+ icon="plus"
+ size="small"
+ @click="inbound.stream.httpupgrade.addHeader('', '')"
+ ></a-button>
</a-form-item>
<a-form-item :wrapper-col="{span:24}">
- <a-input-group compact v-for="(header, index) in inbound.stream.httpupgrade.headers">
- <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-group
+ compact
+ v-for="(header, index) in inbound.stream.httpupgrade.headers"
+ >
+ <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.httpupgrade.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.httpupgrade.removeHeader(index)"
+ ></a-button>
</a-input>
</a-input-group>
</a-form-item>
</a-form>
-{{end}} \ No newline at end of file
+{{end}}
diff --git a/web/html/form/stream/stream_hysteria.html b/web/html/form/stream/stream_hysteria.html
index b2979356..4a424fd1 100644
--- a/web/html/form/stream/stream_hysteria.html
+++ b/web/html/form/stream/stream_hysteria.html
@@ -1,62 +1,115 @@
{{define "form/streamHysteria"}}
-<a-form :colon="false" :label-col="{ md: {span:8} }" :wrapper-col="{ md: {span:14} }">
- <a-form-item label='Auth Password'>
- <a-input v-model.trim="inbound.stream.hysteria.auth"></a-input>
- </a-form-item>
- <a-form-item label='UDP Idle Timeout'>
- <a-input-number v-model.number="inbound.stream.hysteria.udpIdleTimeout" :min="0"></a-input-number>
+<a-form
+ :colon="false"
+ :label-col="{ md: {span:8} }"
+ :wrapper-col="{ md: {span:14} }"
+>
+ <a-form-item>
+ <template slot="label">
+ <a-tooltip>
+ <template slot="title">
+ <span>{{ i18n "reset" }}</span>
+ </template>
+ Auth Password
+ <a-icon
+ @click="inbound.stream.hysteria.auth = RandomUtil.randomSeq(10)"
+ type="sync"
+ ></a-icon>
+ </a-tooltip>
+ </template>
+ <a-input v-model.trim="inbound.stream.hysteria.auth"></a-input>
+ </a-form-item>
+ <a-form-item label="UDP Idle Timeout">
+ <a-input-number
+ v-model.number="inbound.stream.hysteria.udpIdleTimeout"
+ :min="0"
+ ></a-input-number>
+ </a-form-item>
+ <a-form-item label="Masquerade">
+ <a-switch v-model="inbound.stream.hysteria.masqueradeSwitch"></a-switch>
+ </a-form-item>
+ <template v-if="inbound.stream.hysteria.masqueradeSwitch">
+ <a-divider :style="{ margin: '5px 0 0' }">Masquerade</a-divider>
+ <a-form-item label="Type">
+ <a-select
+ v-model="inbound.stream.hysteria.masquerade.type"
+ :dropdown-class-name="themeSwitcher.currentTheme"
+ >
+ <a-select-option value="file">File</a-select-option>
+ <a-select-option value="proxy">Proxy</a-select-option>
+ <a-select-option value="string">String</a-select-option>
+ </a-select>
</a-form-item>
- <a-form-item label='Masquerade'>
- <a-switch v-model="inbound.stream.hysteria.masqueradeSwitch"></a-switch>
+ <a-form-item
+ label="Dir"
+ v-if="inbound.stream.hysteria.masquerade.type === 'file'"
+ >
+ <a-input v-model.trim="inbound.stream.hysteria.masquerade.dir"></a-input>
</a-form-item>
- <template v-if="inbound.stream.hysteria.masqueradeSwitch">
- <a-divider :style="{ margin: '5px 0 0' }">Masquerade</a-divider>
- <a-form-item label='Type'>
- <a-select v-model="inbound.stream.hysteria.masquerade.type"
- :dropdown-class-name="themeSwitcher.currentTheme">
- <a-select-option value="file">File</a-select-option>
- <a-select-option value="proxy">Proxy</a-select-option>
- <a-select-option value="string">String</a-select-option>
- </a-select>
- </a-form-item>
- <a-form-item label='Dir' v-if="inbound.stream.hysteria.masquerade.type === 'file'">
- <a-input v-model.trim="inbound.stream.hysteria.masquerade.dir"></a-input>
- </a-form-item>
- <template v-if="inbound.stream.hysteria.masquerade.type === 'proxy'">
- <a-form-item label='URL'>
- <a-input v-model.trim="inbound.stream.hysteria.masquerade.url"></a-input>
- </a-form-item>
- <a-form-item label='Rewrite Host'>
- <a-switch v-model="inbound.stream.hysteria.masquerade.rewriteHost"></a-switch>
- </a-form-item>
- <a-form-item label='Insecure'>
- <a-switch v-model="inbound.stream.hysteria.masquerade.insecure"></a-switch>
- </a-form-item>
- </template>
- <template v-if="inbound.stream.hysteria.masquerade.type === 'string'">
- <a-form-item label='Content'>
- <a-input v-model.trim="inbound.stream.hysteria.masquerade.content"></a-input>
- </a-form-item>
- <a-form-item label='{{ i18n "pages.inbounds.stream.tcp.requestHeader" }}'>
- <a-button size="small" @click="inbound.stream.hysteria.masquerade.addHeader('', '')">+</a-button>
- </a-form-item>
- <a-form-item :wrapper-col="{span:24}">
- <a-input-group compact v-for="(header, index) in inbound.stream.hysteria.masquerade.headers">
- <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>