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:
authorHamidreza Ghavami <hamid.r.gh.1998@gmail.com>2023-05-08 17:44:22 +0300
committerHamidreza Ghavami <hamid.r.gh.1998@gmail.com>2023-05-08 17:44:22 +0300
commit0e266b88f0eb70bf46d3ecc4df148794bc307205 (patch)
treeeaa17312f7d6a9bdc1e0d0c3293fc5a4ce8d5b38 /web/html/common
parent7d0c3b6517e6c9b8367e63400c83789c7ddab93f (diff)
update UI to use themeSwitcher
Diffstat (limited to 'web/html/common')
-rw-r--r--web/html/common/prompt_modal.html14
-rw-r--r--web/html/common/qrcode_modal.html8
-rw-r--r--web/html/common/text_modal.html4
3 files changed, 14 insertions, 12 deletions
diff --git a/web/html/common/prompt_modal.html b/web/html/common/prompt_modal.html
index 4b8a13d0..17a65ec1 100644
--- a/web/html/common/prompt_modal.html
+++ b/web/html/common/prompt_modal.html
@@ -1,7 +1,7 @@
{{define "promptModal"}}
<a-modal id="prompt-modal" v-model="promptModal.visible" :title="promptModal.title"
:closable="true" @ok="promptModal.ok" :mask-closable="false"
- :class="siderDrawer.isDarkTheme ? darkClass : ''"
+ :class="themeSwitcher.darkCardClass"
:ok-text="promptModal.okText" cancel-text='{{ i18n "cancel" }}'>
<a-input id="prompt-modal-input" :type="promptModal.type"
v-model="promptModal.value"
@@ -36,12 +36,12 @@
},
confirm() {},
open({
- title='',
- type='text',
- value='',
- okText='{{ i18n "sure"}}',
- confirm=() => {},
- }) {
+ title = '',
+ type = 'text',
+ value = '',
+ okText = '{{ i18n "sure"}}',
+ confirm = () => {},
+ }) {
this.title = title;
this.type = type;
this.value = value;
diff --git a/web/html/common/qrcode_modal.html b/web/html/common/qrcode_modal.html
index f492dabb..2bd2f00f 100644
--- a/web/html/common/qrcode_modal.html
+++ b/web/html/common/qrcode_modal.html
@@ -1,10 +1,12 @@
{{define "qrcodeModal"}}
<a-modal id="qrcode-modal" v-model="qrModal.visible" :title="qrModal.title"
:closable="true"
- :class="siderDrawer.isDarkTheme ? darkClass : ''"
+ :class="themeSwitcher.darkCardClass"
:footer="null"
width="300px">
- <a-tag color="green" style="margin-bottom: 10px;display: block;text-align: center;" >{{ i18n "pages.inbounds.clickOnQRcode" }}</a-tag>
+ <a-tag color="green" style="margin-bottom: 10px;display: block;text-align: center;">
+ {{ i18n "pages.inbounds.clickOnQRcode" }}
+ </a-tag>
<canvas @click="copyToClipboard()" id="qrCode" style="width: 100%; height: 100%;"></canvas>
</a-modal>
@@ -19,7 +21,7 @@
qrcode: null,
clipboard: null,
visible: false,
- show: function (title='', content='', dbInbound=new DBInbound(), copyText='') {
+ show: function (title = '', content = '', dbInbound = new DBInbound(), copyText = '') {
this.title = title;
this.content = content;
this.dbInbound = dbInbound;
diff --git a/web/html/common/text_modal.html b/web/html/common/text_modal.html
index ce77d0ca..1514051b 100644
--- a/web/html/common/text_modal.html
+++ b/web/html/common/text_modal.html
@@ -1,7 +1,7 @@
{{define "textModal"}}
<a-modal id="text-modal" v-model="txtModal.visible" :title="txtModal.title"
:closable="true" ok-text='{{ i18n "copy" }}' cancel-text='{{ i18n "close" }}'
- :class="siderDrawer.isDarkTheme ? darkClass : ''"
+ :class="themeSwitcher.darkCardClass"
:ok-button-props="{attrs:{id:'txt-modal-ok-btn'}}">
<a-button v-if="!ObjectUtil.isEmpty(txtModal.fileName)" type="primary" style="margin-bottom: 10px;"
:href="'data:application/text;charset=utf-8,' + encodeURIComponent(txtModal.content)"
@@ -21,7 +21,7 @@
qrcode: null,
clipboard: null,
visible: false,
- show: function (title='', content='', fileName='') {
+ show: function (title = '', content = '', fileName = '') {
this.title = title;
this.content = content;
this.fileName = fileName;