Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHamidreza Ghavami <hamid.r.gh.1998@gmail.com>2023-05-08 17:44:22 +0300
committerHamidreza Ghavami <hamid.r.gh.1998@gmail.com>2023-05-08 17:44:22 +0300
commit0e266b88f0eb70bf46d3ecc4df148794bc307205 (patch)
treeeaa17312f7d6a9bdc1e0d0c3293fc5a4ce8d5b38 /web/html/xui/inbound_modal.html
parent7d0c3b6517e6c9b8367e63400c83789c7ddab93f (diff)
update UI to use themeSwitcher
Diffstat (limited to 'web/html/xui/inbound_modal.html')
-rw-r--r--web/html/xui/inbound_modal.html16
1 files changed, 8 insertions, 8 deletions
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"}}
<a-modal id="inbound-modal" v-model="inModal.visible" :title="inModal.title" @ok="inModal.ok"
:confirm-loading="inModal.confirmLoading" :closable="true" :mask-closable="false"
- :class="siderDrawer.isDarkTheme ? darkClass : ''"
+ :class="themeSwitcher.darkCardClass"
:ok-text="inModal.okText" cancel-text='{{ i18n "close" }}'>
{{template "form/inbound"}}
</a-modal>
@@ -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<len; ii++){
+ for (var ii = 0; ii < len; ii++) {
string += chars[Math.floor(Math.random() * chars.length)];
}
client.email = string;