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
path: root/web/html
diff options
context:
space:
mode:
authorMHSanaei <ho3ein.sanaei@gmail.com>2024-02-19 00:15:00 +0300
committerMHSanaei <ho3ein.sanaei@gmail.com>2024-02-19 00:17:47 +0300
commit6b5535e60a6efec707be893cde4108b331553846 (patch)
treea26f3c45ebff554e1f7ab6f930255e3932a7063a /web/html
parentfe00cfb09bc7810943a5e777f969a68d3740031c (diff)
some changes
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
Diffstat (limited to 'web/html')
-rw-r--r--web/html/xui/inbound_client_table.html4
-rw-r--r--web/html/xui/inbounds.html4
-rw-r--r--web/html/xui/index.html9
3 files changed, 8 insertions, 9 deletions
diff --git a/web/html/xui/inbound_client_table.html b/web/html/xui/inbound_client_table.html
index d7619dde..c4c405ec 100644
--- a/web/html/xui/inbound_client_table.html
+++ b/web/html/xui/inbound_client_table.html
@@ -40,7 +40,7 @@
<a-switch v-model="client.enable" @change="switchEnableClient(record.id,client)"></a-switch>
</template>
<template slot="online" slot-scope="text, client, index">
- <template v-if="isClientOnline(client.email)">
+ <template v-if="client.enable && isClientOnline(client.email)">
<a-tag color="green">{{ i18n "online" }}</a-tag>
</template>
<template v-else>
@@ -52,7 +52,7 @@
<template slot="title">
<template v-if="!isClientEnabled(record, client.email)">{{ i18n "depleted" }}</template>
<template v-else-if="!client.enable">{{ i18n "disabled" }}</template>
- <template v-else-if="isClientOnline(client.email)">{{ i18n "online" }}</template>
+ <template v-else-if="client.enable && isClientOnline(client.email)">{{ i18n "online" }}</template>
</template>
<a-badge :class="isClientOnline(client.email)? 'online-animation' : ''" :color="client.enable ? statsExpColor(record, client.email) : themeSwitcher.isDarkTheme ? '#2c3950' : '#bcbcbc'">
</a-badge>
diff --git a/web/html/xui/inbounds.html b/web/html/xui/inbounds.html
index 93f25730..f52f26b7 100644
--- a/web/html/xui/inbounds.html
+++ b/web/html/xui/inbounds.html
@@ -133,7 +133,7 @@
<a-icon type="export"></a-icon>
{{ i18n "pages.inbounds.export" }}
</a-menu-item>
- <a-menu-item key="subs">
+ <a-menu-item key="subs" v-if="subSettings.enable">
<a-icon type="export"></a-icon>
{{ i18n "pages.inbounds.export" }} - {{ i18n "pages.settings.subSettings" }}
</a-menu-item>
@@ -221,7 +221,7 @@
<a-icon type="export"></a-icon>
{{ i18n "pages.inbounds.export"}}
</a-menu-item>
- <a-menu-item key="subs">
+ <a-menu-item key="subs" v-if="subSettings.enable">
<a-icon type="export"></a-icon>
{{ i18n "pages.inbounds.export"}} - {{ i18n "pages.settings.subSettings" }}
</a-menu-item>
diff --git a/web/html/xui/index.html b/web/html/xui/index.html
index abd3b8d0..30ca4490 100644
--- a/web/html/xui/index.html
+++ b/web/html/xui/index.html
@@ -313,7 +313,7 @@
</a-form-item>
<a-form-item>
<a-button type="primary" style="margin-bottom: 10px;"
- :href="'data:application/text;charset=utf-8,' + encodeURIComponent(logModal.logs.join('\n'))" download="x-ui.log">
+ :href="'data:application/text;charset=utf-8,' + encodeURIComponent(logModal.logs)" download="x-ui.log">
{{ i18n "download" }} x-ui.log
</a-button>
</a-form-item>
@@ -446,16 +446,15 @@
const logModal = {
visible: false,
- logs: [],
- formattedLogs: '',
+ logs: '',
rows: 20,
level: 'info',
syslog: false,
loading: false,
show(logs) {
this.visible = true;
- this.logs = logs || [];
- this.formattedLogs = this.logs.length > 0 ? this.formatLogs(this.logs) : "No Record...";
+ this.logs = logs;
+ this.formattedLogs = this.logs?.length > 0 ? this.formatLogs(this.logs) : "No Record...";
},
formatLogs(logs) {
let formattedLogs = '';