diff --git a/web/html/xui/inbounds.html b/web/html/xui/inbounds.html
index b0426e4f..f1f14275 100644
--- a/web/html/xui/inbounds.html
+++ b/web/html/xui/inbounds.html
@@ -55,6 +55,15 @@
+
+
+
+
Please go to the panel settings as soon as possible to modify the username and password, otherwise there may be a risk of leaking account information
@@ -572,6 +581,7 @@
remarkModel: '-ieo',
datepicker: 'gregorian',
tgBotEnable: false,
+ showAlert: false,
pageSize: 0,
isMobile: window.innerWidth <= 768,
},
@@ -1319,6 +1329,9 @@
}, 500)
},
mounted() {
+ if (window.location.protocol !== "https:") {
+ this.showAlert = true;
+ }
window.addEventListener('resize', this.onResize);
this.onResize();
this.loading();
diff --git a/web/html/xui/index.html b/web/html/xui/index.html
index 30ca4490..1bc0dfa4 100644
--- a/web/html/xui/index.html
+++ b/web/html/xui/index.html
@@ -34,6 +34,15 @@
+
+
+
+
@@ -532,6 +541,7 @@
backupModal,
spinning: false,
loadingTip: '{{ i18n "loading"}}',
+ showAlert: false,
},
methods: {
loading(spinning, tip = '{{ i18n "loading"}}') {
@@ -655,14 +665,14 @@
},
},
async mounted() {
- let retries = 0;
- while (retries < 5) {
+ if (window.location.protocol !== "https:") {
+ this.showAlert = true;
+ }
+ while (true) {
try {
await this.getStatus();
- retries = 0;
} catch (e) {
- console.error("Error occurred while fetching status:", e);
- retries++;
+ console.error(e);
}
await PromiseUtil.sleep(2000);
}
diff --git a/web/html/xui/settings.html b/web/html/xui/settings.html
index 533553c5..a7c72f73 100644
--- a/web/html/xui/settings.html
+++ b/web/html/xui/settings.html
@@ -75,6 +75,15 @@
+
+
+
+
@@ -444,12 +453,15 @@
},
},
async mounted() {
+ if (window.location.protocol !== "https:") {
+ this.showAlert = true;
+ }
await this.getAllSetting();
while (true) {
- await PromiseUtil.sleep(600);
+ await PromiseUtil.sleep(1000);
this.saveBtnDisable = this.oldAllSetting.equals(this.allSetting);
}
- },
+ }
});