diff options
| author | MHSanaei <ho3ein.sanaei@gmail.com> | 2026-04-20 17:05:27 +0300 |
|---|---|---|
| committer | MHSanaei <ho3ein.sanaei@gmail.com> | 2026-04-20 17:05:27 +0300 |
| commit | ae5ad505d04fa347eb96a0d2bfb54ff541c3b709 (patch) | |
| tree | 54a8088e98e15868238be54b063bb051ab84fcb0 /web/html/modals/client_modal.html | |
| parent | c188056f64be268dda8f7c16e23f7ef9c90d014f (diff) | |
add hysteria inbound
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
Diffstat (limited to 'web/html/modals/client_modal.html')
| -rw-r--r-- | web/html/modals/client_modal.html | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/web/html/modals/client_modal.html b/web/html/modals/client_modal.html index a5d3e7ac..8ce0e832 100644 --- a/web/html/modals/client_modal.html +++ b/web/html/modals/client_modal.html @@ -1,10 +1,14 @@ {{define "modals/clientsModal"}} -<a-modal id="client-modal" v-model="clientModal.visible" :title="clientModal.title" @ok="clientModal.ok" - :confirm-loading="clientModal.confirmLoading" :closable="true" :mask-closable="false" - :class="themeSwitcher.currentTheme" - :ok-text="clientModal.okText" cancel-text='{{ i18n "close" }}'> +<a-modal id="client-modal" v-model="clientModal.visible" + :title="clientModal.title" @ok="clientModal.ok" + :confirm-loading="clientModal.confirmLoading" :closable="true" + :mask-closable="false" + :class="themeSwitcher.currentTheme" + :ok-text="clientModal.okText" cancel-text='{{ i18n "close" }}'> <template v-if="isEdit"> - <a-tag v-if="isExpiry || isTrafficExhausted" color="red" :style="{ marginBottom: '10px', display: 'block', textAlign: 'center' }">Account is (Expired|Traffic Ended) And Disabled</a-tag> + <a-tag v-if="isExpiry || isTrafficExhausted" color="red" + :style="{ marginBottom: '10px', display: 'block', textAlign: 'center' }">Account + is (Expired|Traffic Ended) And Disabled</a-tag> </template> {{template "form/client"}} </a-modal> @@ -56,6 +60,7 @@ switch (protocol) { case Protocols.TROJAN: return client.password; case Protocols.SHADOWSOCKS: return client.email; + case Protocols.HYSTERIA: return client.auth; default: return client.id; } }, @@ -65,6 +70,7 @@ case Protocols.VLESS: return clients.push(new Inbound.VLESSSettings.VLESS()); case Protocols.TROJAN: return clients.push(new Inbound.TrojanSettings.Trojan()); case Protocols.SHADOWSOCKS: return clients.push(new Inbound.ShadowsocksSettings.Shadowsocks(clients[0].method, RandomUtil.randomShadowsocksPassword(inbound.settings.method))); + case Protocols.HYSTERIA: return clients.push(new Inbound.HysteriaSettings.Hysteria()); default: return null; } }, |
