diff options
| author | Shishkevich D. <135337715+shishkevichd@users.noreply.github.com> | 2025-04-06 12:40:33 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-06 12:40:33 +0300 |
| commit | bea19a263db88fef44b4356082b199fbfcc39a25 (patch) | |
| tree | a111e9328c6273ad9721118238c40cf3004f72a9 /web/html/form/stream/stream_kcp.html | |
| parent | 878e0d02cd01a045f4f32464124c59e24f98aedd (diff) | |
Code refactoring (#2865)
* refactor: use vue inline styles in entire application
* refactor: setting row in dashboard page
* refactor: use blob for download file in text modal
* refactor: move all html templates in `web/html` folder
* refactor: `DeviceUtils` -> `MediaQueryMixin`
The transition to mixins has been made, as they can update themselves.
* chore: pretty right buttons in `outbounds` tab in xray settings
* refactor: add translations for system status
* refactor: adjust gutter spacing in setting list item
* refactor: use native `a-input-password` for password field
* chore: return old system status
with new translations
* chore: add missing translation
Diffstat (limited to 'web/html/form/stream/stream_kcp.html')
| -rw-r--r-- | web/html/form/stream/stream_kcp.html | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/web/html/form/stream/stream_kcp.html b/web/html/form/stream/stream_kcp.html new file mode 100644 index 00000000..50794574 --- /dev/null +++ b/web/html/form/stream/stream_kcp.html @@ -0,0 +1,48 @@ +{{define "form/streamKCP"}} +<a-form :colon="false" :label-col="{ md: {span:8} }" :wrapper-col="{ md: {span:14} }"> + <a-form-item label='{{ i18n "camouflage" }}'> + <a-select v-model="inbound.stream.kcp.type" :style="{ width: '50%' }" :dropdown-class-name="themeSwitcher.currentTheme"> + <a-select-option value="none">None</a-select-option> + <a-select-option value="srtp">SRTP</a-select-option> + <a-select-option value="utp">uTP</a-select-option> + <a-select-option value="wechat-video">WeChat</a-select-option> + <a-select-option value="dtls">DTLS 1.2</a-select-option> + <a-select-option value="wireguard">WireGuard</a-select-option> + <a-select-option value="dns">DNS</a-select-option> + </a-select> + </a-form-item> + <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" :min="576" :max="1460"></a-input-number> + </a-form-item> + <a-form-item label='TTI (ms)'> + <a-input-number v-model.number="inbound.stream.kcp.tti" :min="10" :max="100"></a-input-number> + </a-form-item> + <a-form-item label='Uplink (MB/s)'> + <a-input-number v-model.number="inbound.stream.kcp.upCap" :min="0"></a-input-number> + </a-form-item> + <a-form-item label='Downlink (MB/s)'> + <a-input-number v-model.number="inbound.stream.kcp.downCap" :min="0"></a-input-number> + </a-form-item> + <a-form-item label='Congestion'> + <a-switch v-model="inbound.stream.kcp.congestion"></a-switch> + </a-form-item> + <a-form-item label='Read Buffer (MB)'> + <a-input-number v-model.number="inbound.stream.kcp.readBuffer" :min="0"></a-input-number> + </a-form-item> + <a-form-item label='Write Buffer (MB)'> + <a-input-number v-model.number="inbound.stream.kcp.writeBuffer" :min="0"></a-input-number> + </a-form-item> +</a-form> +{{end}} |
