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-07-13 02:38:51 +0300
committermhsanaei <ho3ein.sanaei@gmail.com>2024-07-13 02:38:51 +0300
commit76fdfb2ef2083563cebaca0f05d823653df18e05 (patch)
treede87da29e698adca42c98fe1e7ac2ca102d42284 /web/html/xui/inbound_client_table.html
parent80180231872375c335a36f8d6bb79442277b823e (diff)
date format - jalalian
Diffstat (limited to 'web/html/xui/inbound_client_table.html')
-rw-r--r--web/html/xui/inbound_client_table.html36
1 files changed, 32 insertions, 4 deletions
diff --git a/web/html/xui/inbound_client_table.html b/web/html/xui/inbound_client_table.html
index 09a0120a..13593cea 100644
--- a/web/html/xui/inbound_client_table.html
+++ b/web/html/xui/inbound_client_table.html
@@ -90,7 +90,14 @@
<template slot="content">
<span v-if="client.expiryTime < 0">{{ i18n "pages.client.delayedStart" }}
</span>
- <span v-else>[[ DateUtil.formatMillis(client._expiryTime) ]]</span>
+ <span v-else>
+ <template v-if="app.datepicker === 'gregorian'">
+ [[ DateUtil.formatMillis(client._expiryTime) ]]
+ </template>
+ <template v-else>
+ [[ DateUtil.convertToJalalian(moment(client._expiryTime)) ]]
+ </template>
+ </span>
</template>
<table>
<tr class="tr-table-box">
@@ -108,7 +115,14 @@
<template slot="content">
<span v-if="client.expiryTime < 0">{{ i18n "pages.client.delayedStart" }}
</span>
- <span v-else>[[ DateUtil.formatMillis(client._expiryTime) ]]</span>
+ <span v-else>
+ <template v-if="app.datepicker === 'gregorian'">
+ [[ DateUtil.formatMillis(client._expiryTime) ]]
+ </template>
+ <template v-else>
+ [[ DateUtil.convertToJalalian(moment(client._expiryTime)) ]]
+ </template>
+ </span>
</template>
<a-tag style="min-width: 50px; border: none;" :color="userExpiryColor(app.expireDiff, client, themeSwitcher.isDarkTheme)"> [[ remainedDays(client.expiryTime) ]] </a-tag>
</a-popover>
@@ -201,7 +215,14 @@
<template slot="content">
<span v-if="client.expiryTime < 0">{{ i18n "pages.client.delayedStart" }}
</span>
- <span v-else>[[ DateUtil.formatMillis(client._expiryTime) ]]</span>
+ <span v-else>
+ <template v-if="app.datepicker === 'gregorian'">
+ [[ DateUtil.formatMillis(client._expiryTime) ]]
+ </template>
+ <template v-else>
+ [[ DateUtil.convertToJalalian(moment(client._expiryTime)) ]]
+ </template>
+ </span>
</template>
<a-progress :show-info="false" :status="isClientEnabled(record, client.email)? 'exception' : ''" :percent="expireProgress(client.expiryTime, client.reset)" />
</a-popover>
@@ -214,7 +235,14 @@
<template slot="content">
<span v-if="client.expiryTime < 0">{{ i18n "pages.client.delayedStart" }}
</span>
- <span v-else>[[ DateUtil.formatMillis(client._expiryTime) ]]</span>
+ <span v-else>
+ <template v-if="app.datepicker === 'gregorian'">
+ [[ DateUtil.formatMillis(client._expiryTime) ]]
+ </template>
+ <template v-else>
+ [[ DateUtil.convertToJalalian(moment(client._expiryTime)) ]]
+ </template>
+ </span>
</template>
<a-tag style="min-width: 50px; border: none;" :color="userExpiryColor(app.expireDiff, client, themeSwitcher.isDarkTheme)"> [[ remainedDays(client.expiryTime) ]] </a-tag>
</a-popover>