From 0e266b88f0eb70bf46d3ecc4df148794bc307205 Mon Sep 17 00:00:00 2001 From: Hamidreza Ghavami Date: Mon, 8 May 2023 19:14:22 +0430 Subject: [PATCH] update UI to use themeSwitcher --- web/html/common/prompt_modal.html | 14 +- web/html/common/qrcode_modal.html | 8 +- web/html/common/text_modal.html | 4 +- web/html/xui/client_bulk_modal.html | 68 +- web/html/xui/client_modal.html | 45 +- web/html/xui/common_sider.html | 12 +- web/html/xui/form/client.html | 34 +- web/html/xui/form/inbound.html | 8 +- web/html/xui/form/protocol/dokodemo.html | 2 +- web/html/xui/form/protocol/shadowsocks.html | 10 +- web/html/xui/form/protocol/socks.html | 3 +- web/html/xui/form/protocol/trojan.html | 11 +- web/html/xui/form/protocol/vless.html | 15 +- web/html/xui/form/protocol/vmess.html | 6 +- web/html/xui/form/sniffing.html | 34 +- web/html/xui/form/stream/stream_kcp.html | 2 +- web/html/xui/form/stream/stream_quic.html | 4 +- web/html/xui/form/stream/stream_settings.html | 2 +- web/html/xui/form/stream/stream_tcp.html | 18 +- web/html/xui/form/stream/stream_ws.html | 6 +- web/html/xui/form/tls_settings.html | 14 +- web/html/xui/inbound_client_table.html | 12 +- web/html/xui/inbound_info_modal.html | 148 +- web/html/xui/inbound_modal.html | 16 +- web/html/xui/inbounds.html | 138 +- web/html/xui/index.html | 54 +- web/html/xui/settings.html | 1471 +++++++++-------- 27 files changed, 1094 insertions(+), 1065 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"}} {}, - }) { + 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"}} - {{ i18n "pages.inbounds.clickOnQRcode" }} + + {{ i18n "pages.inbounds.clickOnQRcode" }} + @@ -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"}} - + Random Random+Prefix Random+Prefix+Num @@ -71,20 +71,20 @@
- + {{ i18n "none" }} [[ key ]] - + {{ i18n "none" }} [[ key ]] - {{ i18n "pages.inbounds.totalFlow" }} (GB) + {{ i18n "pages.inbounds.totalFlow" }} (GB)