From e1da43053d23c995bcd6e7267cb20042398cd64f Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Sun, 9 Apr 2023 23:13:18 +0330 Subject: alireza update pack Co-Authored-By: Alireza Ahmadi --- web/html/xui/client_bulk_modal.html | 42 ++++++++++++++++++++++++++++--------- 1 file changed, 32 insertions(+), 10 deletions(-) (limited to 'web/html/xui/client_bulk_modal.html') diff --git a/web/html/xui/client_bulk_modal.html b/web/html/xui/client_bulk_modal.html index 2024fa1d..4e282ccd 100644 --- a/web/html/xui/client_bulk_modal.html +++ b/web/html/xui/client_bulk_modal.html @@ -10,8 +10,7 @@ Random+Prefix Random+Prefix+Num Random+Prefix+Num+Postfix - Random+Prefix+Num@Telegram Username - Prefix+Num+Postfix [ BE CAREFUL! ] + Prefix+Num+Postfix [ BE CAREFUL! ]
@@ -27,15 +26,19 @@ - tg_uname - {{ i18n "pages.client.postfix" }} + {{ i18n "pages.client.postfix" }} - {{ i18n "pages.client.clientCount" }} + + + + + + {{ i18n "pages.inbounds.totalFlow" }}(GB) @@ -48,7 +51,13 @@ - + + + + + + + {{ i18n "pages.inbounds.expireDate" }} @@ -83,6 +92,9 @@ lastNum: 1, emailPrefix: "", emailPostfix: "", + subId: "", + tgId: "", + delayedStart: false, ok() { method=clientsBulkModal.emailMethod; if(method>1){ @@ -94,11 +106,13 @@ } prefix = (method>0 && clientsBulkModal.emailPrefix.length>0) ? clientsBulkModal.emailPrefix : ""; useNum=(method>1); - postfix = (method>2 && clientsBulkModal.emailPostfix.length>0) ? (method == 4 ? "@" : "") + clientsBulkModal.emailPostfix : ""; + postfix = (method>2 && clientsBulkModal.emailPostfix.length>0) ? clientsBulkModal.emailPostfix : ""; for (let i = start; i < end; i++) { newClient = clientsBulkModal.newClient(clientsBulkModal.dbInbound.protocol); - if(method==5) newClient.email = ""; + if(method==4) newClient.email = ""; newClient.email += useNum ? prefix + i.toString() + postfix : prefix + postfix; + newClient.subId = clientsBulkModal.subId; + newClient.tgId = clientsBulkModal.tgId; newClient._totalGB = clientsBulkModal.totalGB; newClient._expiryTime = clientsBulkModal.expiryTime; clientsBulkModal.clients.push(newClient); @@ -112,16 +126,18 @@ this.confirm = confirm; this.quantity = 1; this.totalGB = 0; - this.expiryTime = ''; + this.expiryTime = 0; this.emailMethod= 0; this.firstNum= 1; this.lastNum= 1; this.emailPrefix= ""; this.emailPostfix= ""; - + this.subId= ""; + this.tgId= ""; this.dbInbound = new DBInbound(dbInbound); this.inbound = dbInbound.toInbound(); this.clients = this.getClients(this.inbound.protocol, this.inbound.settings); + this.delayedStart = false; }, getClients(protocol, clientSettings) { switch(protocol){ @@ -156,6 +172,12 @@ get inbound() { return this.clientsBulkModal.inbound; }, + get delayedExpireDays() { + return this.clientsBulkModal.expiryTime < 0 ? this.clientsBulkModal.expiryTime / -86400000 : 0; + }, + set delayedExpireDays(days){ + this.clientsBulkModal.expiryTime = -86400000 * days; + }, }, }); -- cgit v1.2.3