mirror of
https://github.com/alireza0/x-ui.git
synced 2026-03-17 22:39:46 +00:00
50 lines
2.0 KiB
HTML
50 lines
2.0 KiB
HTML
{{define "form/socks"}}
|
|
<a-form layout="inline">
|
|
<table width="100%" class="ant-table-tbody">
|
|
<tr>
|
|
<td>{{ i18n "password" }}</td>
|
|
<td>
|
|
<a-form-item>
|
|
<a-switch :checked="inbound.settings.auth === 'password'"
|
|
@change="checked => inbound.settings.auth = checked ? 'password' : 'noauth'"></a-switch>
|
|
</a-form-item>
|
|
</td>
|
|
</tr>
|
|
<tr v-if="inbound.settings.auth === 'password'">
|
|
<td colspan="2">
|
|
<a-form-item>
|
|
<a-row>
|
|
<a-button size="small" @click="inbound.settings.addAccount(new Inbound.SocksSettings.SocksAccount())">+</a-button>
|
|
</a-row>
|
|
<a-input-group v-for="(account, index) in inbound.settings.accounts">
|
|
<a-input style="width: 45%" v-model.trim="account.user"
|
|
addon-before='{{ i18n "username" }}'></a-input>
|
|
<a-input style="width: 55%" v-model.trim="account.pass"
|
|
addon-before='{{ i18n "password" }}'>
|
|
<template slot="addonAfter">
|
|
<a-button size="small" @click="inbound.settings.delAccount(index)">-</a-button>
|
|
</template>
|
|
</a-input>
|
|
</a-input-group>
|
|
</a-form-item>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>{{ i18n "pages.inbounds.enable" }} udp</td>
|
|
<td>
|
|
<a-form-item>
|
|
<a-switch v-model="inbound.settings.udp"></a-switch>
|
|
</a-form-item>
|
|
</td>
|
|
</tr>
|
|
<tr v-if="inbound.settings.udp">
|
|
<td>IP</td>
|
|
<td>
|
|
<a-form-item>
|
|
<a-input v-model.trim="inbound.settings.ip"></a-input>
|
|
</a-form-item>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</a-form>
|
|
{{end}} |