From 3152d5f1910de3019a7b06e9f45bb4466e1c3483 Mon Sep 17 00:00:00 2001 From: MHSanaei <33454419+MHSanaei@users.noreply.github.com> Date: Fri, 24 Mar 2023 16:47:14 +0330 Subject: Remove ugly-bugy qrCode footer --- web/html/common/qrcode_modal.html | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) (limited to 'web/html') diff --git a/web/html/common/qrcode_modal.html b/web/html/common/qrcode_modal.html index e535b401..f492dabb 100644 --- a/web/html/common/qrcode_modal.html +++ b/web/html/common/qrcode_modal.html @@ -1,9 +1,10 @@ {{define "qrcodeModal"}} - {{ i18n "pages.inbounds.clickOnQRcode" }} + :footer="null" + width="300px"> + {{ i18n "pages.inbounds.clickOnQRcode" }} @@ -14,17 +15,15 @@ content: '', inbound: new Inbound(), dbInbound: new DBInbound(), - okText: '', copyText: '', qrcode: null, clipboard: null, visible: false, - show: function (title='', content='', dbInbound=new DBInbound(),okText='{{ i18n "copy" }}', copyText='') { + show: function (title='', content='', dbInbound=new DBInbound(), copyText='') { this.title = title; this.content = content; this.dbInbound = dbInbound; this.inbound = dbInbound.toInbound(); - this.okText = okText; if (ObjectUtil.isEmpty(copyText)) { this.copyText = content; } else { @@ -32,13 +31,6 @@ } this.visible = true; qrModalApp.$nextTick(() => { - this.clipboard = new ClipboardJS('#qr-modal-ok-btn', { - text: () => this.copyText, - }); - this.clipboard.on('success', () => { - app.$message.success('{{ i18n "copied" }}') - this.clipboard.destroy(); - }); if (this.qrcode === null) { this.qrcode = new QRious({ element: document.querySelector('#qrCode'), -- cgit v1.2.3 From 8dad9a4338142a566de038ee409bf3ce9b4ab949 Mon Sep 17 00:00:00 2001 From: MHSanaei <33454419+MHSanaei@users.noreply.github.com> Date: Fri, 24 Mar 2023 16:51:43 +0330 Subject: [tgbot] fix admins input --- web/html/xui/setting.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web/html') diff --git a/web/html/xui/setting.html b/web/html/xui/setting.html index 0c0f9682..f8f873e6 100644 --- a/web/html/xui/setting.html +++ b/web/html/xui/setting.html @@ -117,7 +117,7 @@ - + -- cgit v1.2.3 From 03a6c131f994e0d7984b07b153acc6a6ca943f10 Mon Sep 17 00:00:00 2001 From: MHSanaei <33454419+MHSanaei@users.noreply.github.com> Date: Fri, 24 Mar 2023 16:54:21 +0330 Subject: [infoModal] better display --- web/html/xui/inbound_info_modal.html | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'web/html') diff --git a/web/html/xui/inbound_info_modal.html b/web/html/xui/inbound_info_modal.html index 0e1b1415..6de729f9 100644 --- a/web/html/xui/inbound_info_modal.html +++ b/web/html/xui/inbound_info_modal.html @@ -59,13 +59,11 @@ {{ i18n "pages.inbounds.client" }} - - - [[ col ]] - - - [[ col ]] - + + + [[ col ]] + [[ infoModal.clientSettings[col] ]] + {{ i18n "usage" }}{{ i18n "pages.inbounds.totalFlow" }}{{ i18n "pages.inbounds.expireDate" }}{{ i18n "enable" }} -- cgit v1.2.3 From a6dfdcdd316f53444a30ae7fa6038f252f1b20b7 Mon Sep 17 00:00:00 2001 From: MHSanaei <33454419+MHSanaei@users.noreply.github.com> Date: Fri, 24 Mar 2023 17:08:30 +0330 Subject: Add version and log --- web/html/xui/index.html | 47 +++++++++++++++++++++++++++++++++++++++++------ web/html/xui/setting.html | 4 ++-- 2 files changed, 43 insertions(+), 8 deletions(-) (limited to 'web/html') diff --git a/web/html/xui/index.html b/web/html/xui/index.html index b8a1e4b5..713d5b7e 100644 --- a/web/html/xui/index.html +++ b/web/html/xui/index.html @@ -84,16 +84,18 @@ - [[ status.xray.version ]] - {{ i18n "pages.index.stopXray" }} - {{ i18n "pages.index.restartXray" }} - {{ i18n "pages.index.xraySwitch" }} + [[ status.xray.version ]] + {{ i18n "pages.index.stopXray" }} + {{ i18n "pages.index.restartXray" }} + {{ i18n "pages.index.xraySwitch" }} + x-ui: {{ .cur_ver }} + Logs {{ i18n "pages.index.operationHours" }}: - [[ formatSecond(status.uptime) ]] + [[ formatSecond(status.uptime) ]] {{ i18n "pages.index.operationHoursDesc" }} @@ -177,7 +179,7 @@ versionModal.visible = false" :class="siderDrawer.isDarkTheme ? darkClass : ''" - ok-text='{{ i18n "confirm" }}' cancel-text='{{ i18n "cancel"}}'> + footer=""> {{ i18n "pages.index.xraySwitchClick"}} {{ i18n "pages.index.xraySwitchClickDesk"}} @@ -187,6 +189,17 @@ + logModal.visible = false" @cancel="() => logModal.visible = false" + :class="siderDrawer.isDarkTheme ? darkClass : ''" + width="800px" + footer=""> + + + [[ index ]][[ log ]] + + + {{template "js" .}}