From 0e266b88f0eb70bf46d3ecc4df148794bc307205 Mon Sep 17 00:00:00 2001 From: Hamidreza Ghavami Date: Mon, 8 May 2023 19:14:22 +0430 Subject: update UI to use themeSwitcher --- web/html/xui/inbound_modal.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'web/html/xui/inbound_modal.html') diff --git a/web/html/xui/inbound_modal.html b/web/html/xui/inbound_modal.html index 7c338e26..8d7adb52 100644 --- a/web/html/xui/inbound_modal.html +++ b/web/html/xui/inbound_modal.html @@ -1,7 +1,7 @@ {{define "inboundModal"}} {{template "form/inbound"}} @@ -19,7 +19,7 @@ ok() { ObjectUtil.execute(inModal.confirm, inModal.inbound, inModal.dbInbound); }, - show({ title='', okText='{{ i18n "sure" }}', inbound=null, dbInbound=null, confirm=(inbound, dbInbound)=>{}, isEdit=false }) { + show({ title = '', okText = '{{ i18n "sure" }}', inbound = null, dbInbound = null, confirm = (inbound, dbInbound) => {}, isEdit = false }) { this.title = title; this.okText = okText; if (inbound) { @@ -44,7 +44,7 @@ inModal.confirmLoading = loading; }, getClients(protocol, clientSettings) { - switch(protocol){ + switch (protocol) { case Protocols.VMESS: return clientSettings.vmesses; case Protocols.VLESS: return clientSettings.vlesses; case Protocols.TROJAN: return clientSettings.trojans; @@ -87,7 +87,7 @@ get delayedExpireDays() { return this.client && this.client.expiryTime < 0 ? this.client.expiryTime / -86400000 : 0; }, - set delayedExpireDays(days){ + set delayedExpireDays(days) { this.client.expiryTime = -86400000 * days; }, }, @@ -100,15 +100,15 @@ this.inModal.inbound.reality = false; } }, - setDefaultCertData(){ + setDefaultCertData() { inModal.inbound.stream.tls.certs[0].certFile = app.defaultCert; inModal.inbound.stream.tls.certs[0].keyFile = app.defaultKey; }, - setDefaultCertXtls(){ + setDefaultCertXtls() { inModal.inbound.stream.xtls.certs[0].certFile = app.defaultCert; inModal.inbound.stream.xtls.certs[0].keyFile = app.defaultKey; }, - async getNewX25519Cert(){ + async getNewX25519Cert() { inModal.loading(true); const msg = await HttpUtil.post('/server/getNewX25519Cert'); inModal.loading(false); @@ -122,7 +122,7 @@ var chars = 'abcdefghijklmnopqrstuvwxyz1234567890'; var string = ''; var len = 6 + Math.floor(Math.random() * 5); - for(var ii=0; ii