diff options
Diffstat (limited to 'web/html/xui/form/protocol/vmess.html')
| -rw-r--r-- | web/html/xui/form/protocol/vmess.html | 67 |
1 files changed, 23 insertions, 44 deletions
diff --git a/web/html/xui/form/protocol/vmess.html b/web/html/xui/form/protocol/vmess.html index 9ed444c6..f7050a5e 100644 --- a/web/html/xui/form/protocol/vmess.html +++ b/web/html/xui/form/protocol/vmess.html @@ -1,5 +1,6 @@ {{define "form/vmess"}} <a-form layout="inline"> +<label>{{ i18n "clients"}}</label> <a-collapse activeKey="0" v-for="(vmess, index) in inbound.settings.vmesses" :key="`vmess-${index}`"> <a-collapse-panel :class="getHeaderStyle(vmess.email)" :header="getHeaderText(vmess.email)"> @@ -56,7 +57,7 @@ <a-form layout="inline"> <a-tooltip v-if="vmess._totalGB > 0"> <template slot="title"> - {{ i18n "pages.inbounds.resetTraffic" }} + {{ i18n "pages.inbounds.resetTraffic" }} </template> <span style="color: #FF4D4F"> <a-icon type="delete" @click="resetClientTraffic(vmess,$event)"></a-icon> @@ -64,56 +65,34 @@ </a-tooltip> <a-tag color="blue">[[ sizeFormat(getUpStats(vmess.email)) ]] / [[ sizeFormat(getDownStats(vmess.email)) ]]</a-tag> <a-tag v-if="vmess._totalGB > 0" color="red">used : [[ sizeFormat(getUpStats(vmess.email) + getDownStats(vmess.email)) ]]</a-tag> - <a-tag> - <!--Add Svg Icon--> - <svg - - @click="addClient(inbound.protocol,vmess, inbound.settings.vmesses)" - xmlns="http://www.w3.org/2000/svg" - viewBox="0 0 22 22" - width="22" - height="22" - class="mt-2 cursor-pointer" - > - <path fill="none" d="M0 0h24v24H0z" /> - <path - fill="green" - d="M11 11V7h2v4h4v2h-4v4h-2v-4H7v-2h4zm1 11C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16z" - /> - </svg> + <a-tag v-show="inbound.settings.vmesses.length > 1" @click="removeClient(index, inbound.settings.vmesses)"> + <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 22" width="22" height="22" class="mt-2 cursor-pointer"> + <path fill="none" d="M0 0h24v24H0z" /> + <path fill="#EC4899" + d="M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16zm0-9.414l2.828-2.829 1.415 1.415L13.414 12l2.829 2.828-1.415 1.415L12 13.414l-2.828 2.829-1.415-1.415L10.586 12 7.757 9.172l1.415-1.415L12 10.586z" + /> + </svg> </a-tag> - <a-tag v-show="inbound.settings.vmesses.length > 1"> - - <!--Remove Svg Icon--> - <svg - @click="removeClient(index, inbound.settings.vmesses)" - xmlns="http://www.w3.org/2000/svg" - viewBox="0 0 22 22" - width="22" - height="22" - class="mt-2 cursor-pointer" - > - <path fill="none" d="M0 0h24v24H0z" /> - <path - fill="#EC4899" - d="M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16zm0-9.414l2.828-2.829 1.415 1.415L13.414 12l2.829 2.828-1.415 1.415L12 13.414l-2.828 2.829-1.415-1.415L10.586 12 7.757 9.172l1.415-1.415L12 10.586z" - /> - </svg> - </a-tag> - </a-form> + </a-form> -</a-collapse-panel> + </a-collapse-panel> </a-collapse> +<a-tag @click="addClient(inbound.protocol, inbound.settings.vmesses)"> + <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" class="ml-2 cursor-pointer"> + <path fill="none" d="M0 0h24v24H0z" /> + <path fill="green" + d="M11 11V7h2v4h4v2h-4v4h-2v-4H7v-2h4zm1 11C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16z" + /> + </svg> +</a-tag> -</a-form> -</a-form> <a-form layout="inline"> -<a-form-item label='{{ i18n "pages.inbounds.disableInsecureEncryption" }}'> - <a-switch v-model.number="inbound.settings.disableInsecure"></a-switch> -</a-form-item> + <a-form-item label='{{ i18n "pages.inbounds.disableInsecureEncryption" }}'> + <a-switch v-model.number="inbound.settings.disableInsecure"></a-switch> + </a-form-item> </a-form> -{{end}} +{{end}}
\ No newline at end of file |
