mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-04-19 21:42:24 +00:00
multi user HTTP & Socks inbounds
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
This commit is contained in:
parent
b541290ded
commit
ed53df5ef3
2 changed files with 28 additions and 10 deletions
|
@ -1,10 +1,19 @@
|
||||||
{{define "form/http"}}
|
{{define "form/http"}}
|
||||||
<a-form layout="inline">
|
<a-form layout="inline">
|
||||||
<a-form-item label='{{ i18n "username"}}'>
|
<a-form-item>
|
||||||
<a-input v-model.trim="inbound.settings.accounts[0].user"></a-input>
|
<a-row>
|
||||||
</a-form-item>
|
<a-button type="primary" size="small" @click="inbound.settings.addAccount(new Inbound.SocksSettings.SocksAccount())">+</a-button>
|
||||||
<a-form-item label='{{ i18n "password" }}'>
|
</a-row>
|
||||||
<a-input v-model.trim="inbound.settings.accounts[0].pass"></a-input>
|
<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 type="primary" size="small" @click="inbound.settings.delAccount(index)">-</a-button>
|
||||||
|
</template>
|
||||||
|
</a-input>
|
||||||
|
</a-input-group>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-form>
|
</a-form>
|
||||||
{{end}}
|
{{end}}
|
|
@ -6,11 +6,20 @@
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
<br>
|
<br>
|
||||||
<template v-if="inbound.settings.auth === 'password'">
|
<template v-if="inbound.settings.auth === 'password'">
|
||||||
<a-form-item label='{{ i18n "username" }}'>
|
<a-form-item>
|
||||||
<a-input v-model.trim="inbound.settings.accounts[0].user"></a-input>
|
<a-row>
|
||||||
</a-form-item>
|
<a-button type="primary" size="small" @click="inbound.settings.addAccount(new Inbound.SocksSettings.SocksAccount())">+</a-button>
|
||||||
<a-form-item label='{{ i18n "password" }}'>
|
</a-row>
|
||||||
<a-input v-model.trim="inbound.settings.accounts[0].pass"></a-input>
|
<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 type="primary" size="small" @click="inbound.settings.delAccount(index)">-</a-button>
|
||||||
|
</template>
|
||||||
|
</a-input>
|
||||||
|
</a-input-group>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</template>
|
</template>
|
||||||
<br>
|
<br>
|
||||||
|
|
Loading…
Reference in a new issue