From fdc1124ea495aafbb5096b0333e8ceff6aaa53f8 Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Sat, 3 Jun 2023 18:59:32 +0330 Subject: some changes ip limit method back to v1.6.0 method remove event on getDBClientIps better show ip on log (",\n") --- web/html/xui/client_bulk_modal.html | 1 + web/html/xui/client_modal.html | 29 +++++++++++---------- web/html/xui/form/client.html | 51 +++++++++++++++++++------------------ web/html/xui/form/inbound.html | 7 ++--- 4 files changed, 46 insertions(+), 42 deletions(-) (limited to 'web/html/xui') diff --git a/web/html/xui/client_bulk_modal.html b/web/html/xui/client_bulk_modal.html index e4c46cc0..d2d3b0d4 100644 --- a/web/html/xui/client_bulk_modal.html +++ b/web/html/xui/client_bulk_modal.html @@ -57,6 +57,7 @@ +
{{ i18n "pages.inbounds.IPLimit" }} diff --git a/web/html/xui/client_modal.html b/web/html/xui/client_modal.html index ba9fce31..e8236778 100644 --- a/web/html/xui/client_modal.html +++ b/web/html/xui/client_modal.html @@ -120,26 +120,27 @@ }, }, methods: { - async getDBClientIps(email, event) { - const msg = await HttpUtil.post('/panel/inbound/clientIps/' + email); - if (!msg.success) { - return; - } + async getDBClientIps(email) { try { - ips = JSON.parse(msg.obj) - ips = ips.join(",") - event.target.value = ips + const msg = await HttpUtil.post(`/panel/inbound/clientIps/${email}`); + if (!msg.success) { + return; + } + const ips = JSON.parse(msg.obj).join(",\n"); + document.getElementById("clientIPs").value = ips; } catch (error) { - // text - event.target.value = msg.obj + document.getElementById("clientIPs").value = msg.obj; } }, async clearDBClientIps(email) { - const msg = await HttpUtil.post('/panel/inbound/clearClientIps/' + email); - if (!msg.success) { - return; + try { + const msg = await HttpUtil.post(`/panel/inbound/clearClientIps/${email}`); + if (!msg.success) { + return; + } + document.getElementById("clientIPs").value = ""; + } catch (error) { } - document.getElementById("clientIPs").value = "" }, resetClientTraffic(email, dbInboundId, iconElement) { this.$confirm({ diff --git a/web/html/xui/form/client.html b/web/html/xui/form/client.html index 9494f0ac..45068f91 100644 --- a/web/html/xui/form/client.html +++ b/web/html/xui/form/client.html @@ -72,31 +72,32 @@ - - {{ i18n "pages.inbounds.IPLimitlog" }} - - - - - - - - - - - - - - - - + + {{ i18n "pages.inbounds.IPLimitlog" }} + + + + + + + + + + + + + + + +
diff --git a/web/html/xui/form/inbound.html b/web/html/xui/form/inbound.html index 383105ac..e5b3bfc3 100644 --- a/web/html/xui/form/inbound.html +++ b/web/html/xui/form/inbound.html @@ -1,12 +1,13 @@ {{define "form/inbound"}} - - - +
+ + + [[ p ]] -- cgit v1.2.3