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:
authorMHSanaei <ho3ein.sanaei@gmail.com>2024-03-13 11:46:26 +0300
committerMHSanaei <ho3ein.sanaei@gmail.com>2024-03-13 13:47:19 +0300
commit14d04e8ec91be6d81678980f0ae06b0aa4bd0b2a (patch)
tree31d4109b8261287aa28571bc1f66e74d1e6cb9c3 /web/html/xui
parent1e2be1042923e42a7da5c421615c78b944bdd59a (diff)
fix remained traffic in info
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
Diffstat (limited to 'web/html/xui')
-rw-r--r--web/html/xui/inbound_info_modal.html8
-rw-r--r--web/html/xui/xray.html4
2 files changed, 8 insertions, 4 deletions
diff --git a/web/html/xui/inbound_info_modal.html b/web/html/xui/inbound_info_modal.html
index e679bbd0..f85fc7d3 100644
--- a/web/html/xui/inbound_info_modal.html
+++ b/web/html/xui/inbound_info_modal.html
@@ -143,7 +143,7 @@
<tr>
<td>
<a-tag v-if="infoModal.clientStats && infoModal.clientSettings.totalGB > 0" :color="statsColor(infoModal.clientStats)">
- [[ sizeFormat(infoModal.clientSettings.totalGB - infoModal.clientStats.up - infoModal.clientStats.down) ]]
+ [[ getRemStats() ]]
</a-tag>
</td>
<td>
@@ -423,7 +423,11 @@
},
statsColor(stats) {
return usageColor(stats.up + stats.down, app.trafficDiff, stats.total);
- }
+ },
+ getRemStats() {
+ remained = this.infoModal.clientStats.total - this.infoModal.clientStats.up - this.infoModal.clientStats.down;
+ return remained>0 ? sizeFormat(remained) : '-';
+ },
},
});
diff --git a/web/html/xui/xray.html b/web/html/xui/xray.html
index 12b76fc4..98dacd92 100644
--- a/web/html/xui/xray.html
+++ b/web/html/xui/xray.html
@@ -75,7 +75,7 @@
<a-space direction="vertical">
<a-card hoverable style="margin-bottom: .5rem;">
<a-row style="display: flex; flex-wrap: wrap; align-items: center;">
- <a-col :xs="24" :sm="8" style="padding: 4px;">
+ <a-col :xs="24" :sm="10" style="padding: 4px;">
<a-space direction="horizontal">
<a-button type="primary" :disabled="saveBtnDisable" @click="updateXraySetting">{{ i18n "pages.xray.save" }}</a-button>
<a-button type="danger" :disabled="!saveBtnDisable" @click="restartXray">{{ i18n "pages.xray.restart" }}</a-button>
@@ -89,7 +89,7 @@
</a-popover>
</a-space>
</a-col>
- <a-col :xs="24" :sm="16">
+ <a-col :xs="24" :sm="14">
<template>
<div>
<a-back-top :target="() => document.getElementById('content-layout')" visibility-height="200">