diff options
| author | MHSanaei <ho3ein.sanaei@gmail.com> | 2024-01-10 17:19:53 +0300 |
|---|---|---|
| committer | MHSanaei <ho3ein.sanaei@gmail.com> | 2024-01-10 17:19:53 +0300 |
| commit | abfcbf42263b9773aa1c7942a7af0cc9cea90b07 (patch) | |
| tree | d07b371c66f91a3242b173c9cd1e0bc36c3873f4 /web/html/xui/form | |
| parent | 1f9b3730d4efe1cabb1790ec30aeb13291be4b3b (diff) | |
reset button for kcp & quic
Diffstat (limited to 'web/html/xui/form')
| -rw-r--r-- | web/html/xui/form/stream/stream_kcp.html | 13 | ||||
| -rw-r--r-- | web/html/xui/form/stream/stream_quic.html | 13 |
2 files changed, 22 insertions, 4 deletions
diff --git a/web/html/xui/form/stream/stream_kcp.html b/web/html/xui/form/stream/stream_kcp.html index 8a45669d..39ae6ca2 100644 --- a/web/html/xui/form/stream/stream_kcp.html +++ b/web/html/xui/form/stream/stream_kcp.html @@ -10,8 +10,17 @@ <a-select-option value="wireguard">WireGuard</a-select-option> </a-select> </a-form-item> - <a-form-item label='{{ i18n "password" }}'> - <a-input v-model="inbound.stream.kcp.seed"></a-input> + <a-form-item> + <template slot="label"> + <a-tooltip> + <template slot="title"> + <span>{{ i18n "reset" }}</span> + </template> + {{ i18n "password" }} + <a-icon @click="inbound.stream.kcp.seed = RandomUtil.randomSeq(10)"type="sync"> </a-icon> + </a-tooltip> + </template> + <a-input v-model.trim="inbound.stream.kcp.seed"></a-input> </a-form-item> <a-form-item label='MTU'> <a-input-number v-model.number="inbound.stream.kcp.mtu"></a-input-number> diff --git a/web/html/xui/form/stream/stream_quic.html b/web/html/xui/form/stream/stream_quic.html index d9175061..b92167bf 100644 --- a/web/html/xui/form/stream/stream_quic.html +++ b/web/html/xui/form/stream/stream_quic.html @@ -7,9 +7,18 @@ <a-select-option value="chacha20-poly1305">CHACHA20-POLY1305</a-select-option> </a-select> </a-form-item> - <a-form-item label='{{ i18n "password" }}'> + <a-form-item> + <template slot="label"> + <a-tooltip> + <template slot="title"> + <span>{{ i18n "reset" }}</span> + </template> + {{ i18n "password" }} + <a-icon @click="inbound.stream.quic.key = RandomUtil.randomSeq(10)"type="sync"> </a-icon> + </a-tooltip> + </template> <a-input v-model.trim="inbound.stream.quic.key"></a-input> - </a-form-item> + </a-form-item> <a-form-item label='{{ i18n "camouflage" }}'> <a-select v-model="inbound.stream.quic.type" :dropdown-class-name="themeSwitcher.currentTheme"> <a-select-option value="none">None</a-select-option> |
