From 6f4eefe60181a9913155ec8c1cc644bf78b23ea3 Mon Sep 17 00:00:00 2001 From: "Shishkevich D." <135337715+shishkevichd@users.noreply.github.com> Date: Fri, 21 Mar 2025 15:09:05 +0000 Subject: chore: make class to get the device form factor --- web/html/xui/inbounds.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'web/html/xui/inbounds.html') diff --git a/web/html/xui/inbounds.html b/web/html/xui/inbounds.html index 758de9e8..94333429 100644 --- a/web/html/xui/inbounds.html +++ b/web/html/xui/inbounds.html @@ -709,7 +709,7 @@ showAlert: false, ipLimitEnable: false, pageSize: 50, - isMobile: window.innerWidth <= 768, + isMobile: DeviceUtils.isMobile(), }, methods: { loading(spinning = true) { @@ -1473,7 +1473,7 @@ return false }, onResize() { - this.isMobile = window.innerWidth <= 768; + this.isMobile = DeviceUtils.isMobile(); } }, watch: { -- cgit v1.2.3 From 14253c35864828458ef3eeecb05591a7ae6e641e Mon Sep 17 00:00:00 2001 From: "Shishkevich D." <135337715+shishkevichd@users.noreply.github.com> Date: Mon, 24 Mar 2025 09:57:37 +0000 Subject: chore: moving the modals to a separate directory --- web/html/xui/inbounds.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'web/html/xui/inbounds.html') diff --git a/web/html/xui/inbounds.html b/web/html/xui/inbounds.html index 94333429..fd6ebe8d 100644 --- a/web/html/xui/inbounds.html +++ b/web/html/xui/inbounds.html @@ -1524,12 +1524,12 @@ }); -{{template "inboundModal"}} -{{template "promptModal"}} -{{template "qrcodeModal"}} -{{template "textModal"}} -{{template "inboundInfoModal"}} -{{template "clientsModal"}} -{{template "clientsBulkModal"}} +{{template "modals/inboundModal"}} +{{template "modals/promptModal"}} +{{template "modals/qrcodeModal"}} +{{template "modals/textModal"}} +{{template "modals/inboundInfoModal"}} +{{template "modals/clientsModal"}} +{{template "modals/clientsBulkModal"}} -- cgit v1.2.3 From 3ea05d30c14cea2e245234a232671560d40c4737 Mon Sep 17 00:00:00 2001 From: "Shishkevich D." <135337715+shishkevichd@users.noreply.github.com> Date: Mon, 24 Mar 2025 11:19:27 +0000 Subject: chore: transforming a common sidebar into a separate component - also added saving collapsed state --- web/html/xui/inbounds.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'web/html/xui/inbounds.html') diff --git a/web/html/xui/inbounds.html b/web/html/xui/inbounds.html index fd6ebe8d..4a0d2c8f 100644 --- a/web/html/xui/inbounds.html +++ b/web/html/xui/inbounds.html @@ -133,7 +133,7 @@ - {{ template "commonSider" . }} + @@ -584,6 +584,7 @@ +{{template "component/aSidebar" .}} {{template "component/aThemeSwitch" .}} {{template "component/aCustomStatistic" .}} {{template "component/aPersianDatepicker" .}} @@ -678,7 +679,6 @@ delimiters: ['[[', ']]'], el: '#app', data: { - siderDrawer, themeSwitcher, persianDatepicker, spinning: false, -- cgit v1.2.3 From fe791b6e998472b2aca85fba386071ffc880897e Mon Sep 17 00:00:00 2001 From: danilshishkevich Date: Mon, 24 Mar 2025 15:17:45 +0000 Subject: chore: move client table into components --- web/html/xui/inbounds.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web/html/xui/inbounds.html') diff --git a/web/html/xui/inbounds.html b/web/html/xui/inbounds.html index 4a0d2c8f..6c16bfa7 100644 --- a/web/html/xui/inbounds.html +++ b/web/html/xui/inbounds.html @@ -568,7 +568,7 @@ :data-source="getInboundClients(record)" :pagination=pagination(getInboundClients(record)) :style="isMobile ? 'margin: -10px 2px -11px;' : 'margin: -10px 22px -11px;'"> - {{template "client_table"}} + {{template "component/aClientTable"}} -- cgit v1.2.3