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:
authorAli Rahimi <alirahimi818@gmail.com>2024-01-02 11:32:21 +0300
committerGitHub <noreply@github.com>2024-01-02 11:32:21 +0300
commitc76199514a62c921901b2b2a1c4dd3f93ff8df2a (patch)
treeef82233fb8e7035be22c21a7375be6d0fb1c8868 /web/html/xui/settings.html
parent31e9734414f084b9d1725d5ae9be46d3720ac122 (diff)
added Jalalian datepicker (shamsi) (#1460)
* added datepicker option in setting page jalalian datepicker component was added translate files for datepicker updated * dark mode bug fixed
Diffstat (limited to 'web/html/xui/settings.html')
-rw-r--r--web/html/xui/settings.html28
1 files changed, 28 insertions, 0 deletions
diff --git a/web/html/xui/settings.html b/web/html/xui/settings.html
index 38037764..1e690a0b 100644
--- a/web/html/xui/settings.html
+++ b/web/html/xui/settings.html
@@ -141,6 +141,27 @@
<a-list-item>
<a-row style="padding: 20px">
<a-col :lg="24" :xl="12">
+ <a-list-item-meta title='{{ i18n "pages.settings.datepicker"}}'>
+ <template slot="description">{{ i18n "pages.settings.datepickerDescription"}}</template>
+ </a-list-item-meta>
+ </a-col>
+
+ <a-col :lg="24" :xl="12">
+ <template>
+ <a-select style="width: 100%"
+ :dropdown-class-name="themeSwitcher.currentTheme"
+ v-model="datepicker">
+ <a-select-option v-for="item in datepickerList" :value="item.value">
+ <span v-text="item.name"></span>
+ </a-select-option>
+ </a-select>
+ </template>
+ </a-col>
+ </a-row>
+ </a-list-item>
+ <a-list-item>
+ <a-row style="padding: 20px">
+ <a-col :lg="24" :xl="12">
<a-list-item-meta title="Language" />
</a-col>
@@ -311,6 +332,7 @@
showAlert: false,
remarkModels: {i:'Inbound',e:'Email',o:'Other'},
remarkSeparators: [' ','-','_','@',':','~','|',',','.','/'],
+ datepickerList: [{name:'Gregorian (Standard)', value: 'gregorian'}, {name:'Jalalian (شمسی)', value: 'jalalian'}],
remarkSample: '',
get remarkModel() {
rm = this.allSetting.remarkModel;
@@ -328,6 +350,12 @@
this.allSetting.remarkModel = value + this.allSetting.remarkModel.substring(1);
this.changeRemarkSample();
},
+ get datepicker() {
+ return this.allSetting.datepicker ? this.allSetting.datepicker : 'gregorian';
+ },
+ set datepicker(value) {
+ this.allSetting.datepicker = value;
+ },
changeRemarkSample(){
sample = []
this.remarkModel.forEach(r => sample.push(this.remarkModels[r]));