update: translate protocol

This commit is contained in:
Mohammad Foroughi
2022-10-31 12:33:16 +03:30
parent 441ae56a4b
commit 061e005ee1
8 changed files with 21 additions and 14 deletions

View File

@@ -1,18 +1,19 @@
{{define "form/socks"}}
<a-form layout="inline">
<a-form-item label="密码认证">
<!-- <a-form-item label="密码认证">-->
<a-form-item label='{{ i18n "password" }}'>
<a-switch :checked="inbound.settings.auth === 'password'"
@change="checked => inbound.settings.auth = checked ? 'password' : 'noauth'"></a-switch>
</a-form-item>
<template v-if="inbound.settings.auth === 'password'">
<a-form-item label="用户名">
<a-form-item label='{{ i18n "username" }}'>
<a-input v-model.trim="inbound.settings.accounts[0].user"></a-input>
</a-form-item>
<a-form-item label="密码">
<a-form-item label='{{ i18n "password" }}'>
<a-input v-model.trim="inbound.settings.accounts[0].pass"></a-input>
</a-form-item>
</template>
<a-form-item label="启用 udp">
<a-form-item label='{{ i18n "pages.inbounds.enable" }} udp'>
<a-switch v-model="inbound.settings.udp"></a-switch>
</a-form-item>
<a-form-item v-if="inbound.settings.udp"