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:
Diffstat (limited to 'web/html/xui/index.html')
-rw-r--r--web/html/xui/index.html20
1 files changed, 15 insertions, 5 deletions
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
@@ -35,6 +35,15 @@
<a-layout-content>
<a-spin :spinning="spinning" :delay="200" :tip="loadingTip"/>
<transition name="list" appear>
+ <a-alert type="error" v-if="showAlert" style="margin-bottom: 10px"
+ message='{{ i18n "secAlertTitle" }}'
+ color="red"
+ description='{{ i18n "secAlertSsl" }}'
+ show-icon closable
+ >
+ </a-alert>
+ </transition>
+ <transition name="list" appear>
<a-row>
<a-card hoverable>
<a-row>
@@ -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);
}