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 ++-- web/html/xui/index.html | 2 +- web/html/xui/xray.html | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'web/html/xui') 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: { diff --git a/web/html/xui/index.html b/web/html/xui/index.html index 92b25d5c..c072893d 100644 --- a/web/html/xui/index.html +++ b/web/html/xui/index.html @@ -601,7 +601,7 @@ loadingTip: '{{ i18n "loading"}}', showAlert: false, showIp: false, - isMobile: window.innerWidth <= 768 + isMobile: DeviceUtils.isMobile() }, methods: { loading(spinning, tip = '{{ i18n "loading"}}') { diff --git a/web/html/xui/xray.html b/web/html/xui/xray.html index 8ba14f7d..f8f3071d 100644 --- a/web/html/xui/xray.html +++ b/web/html/xui/xray.html @@ -877,7 +877,7 @@ refreshing: false, restartResult: '', showAlert: false, - isMobile: window.innerWidth <= 768, + isMobile: DeviceUtils.isMobile(), advSettings: 'xraySetting', obsSettings: '', cm: null, -- cgit v1.2.3 From 7b15274c842b31e8caded3e7f272237f31824852 Mon Sep 17 00:00:00 2001 From: "Shishkevich D." <135337715+shishkevichd@users.noreply.github.com> Date: Mon, 24 Mar 2025 09:45:15 +0000 Subject: chore: moving the settings tabs to a separate directory --- web/html/xui/settings.html | 542 +---------------- web/html/xui/settings/panel/general.html | 149 +++++ web/html/xui/settings/panel/security.html | 60 ++ .../xui/settings/panel/subscription/general.html | 98 +++ web/html/xui/settings/panel/subscription/json.html | 180 ++++++ web/html/xui/settings/panel/telegram.html | 87 +++ web/html/xui/settings/xray/advanced.html | 14 + web/html/xui/settings/xray/balancers.html | 53 ++ web/html/xui/settings/xray/basics.html | 275 +++++++++ web/html/xui/settings/xray/dns.html | 149 +++++ web/html/xui/settings/xray/outbounds.html | 72 +++ web/html/xui/settings/xray/reverse.html | 38 ++ web/html/xui/settings/xray/routing.html | 119 ++++ web/html/xui/xray.html | 676 +-------------------- 14 files changed, 1308 insertions(+), 1204 deletions(-) create mode 100644 web/html/xui/settings/panel/general.html create mode 100644 web/html/xui/settings/panel/security.html create mode 100644 web/html/xui/settings/panel/subscription/general.html create mode 100644 web/html/xui/settings/panel/subscription/json.html create mode 100644 web/html/xui/settings/panel/telegram.html create mode 100644 web/html/xui/settings/xray/advanced.html create mode 100644 web/html/xui/settings/xray/balancers.html create mode 100644 web/html/xui/settings/xray/basics.html create mode 100644 web/html/xui/settings/xray/dns.html create mode 100644 web/html/xui/settings/xray/outbounds.html create mode 100644 web/html/xui/settings/xray/reverse.html create mode 100644 web/html/xui/settings/xray/routing.html (limited to 'web/html/xui') diff --git a/web/html/xui/settings.html b/web/html/xui/settings.html index febb26e8..1bf5dab8 100644 --- a/web/html/xui/settings.html +++ b/web/html/xui/settings.html @@ -109,551 +109,19 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + {{ template "settings/panel/general" . }} - - - - - - - - - - - - - - - - - - - - - {{ i18n "confirm" }} - - - - - - - - - - - - - - - - - {{ i18n "confirm" }} - - - - + {{ template "settings/panel/security" . }} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + {{ template "settings/panel/telegram" . }} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + {{ template "settings/panel/subscription/general" . }} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Remove - - - - Add Noise - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + {{ template "settings/panel/subscription/json" . }} diff --git a/web/html/xui/settings/panel/general.html b/web/html/xui/settings/panel/general.html new file mode 100644 index 00000000..2f801c49 --- /dev/null +++ b/web/html/xui/settings/panel/general.html @@ -0,0 +1,149 @@ +{{define "settings/panel/general"}} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +{{end}} \ No newline at end of file diff --git a/web/html/xui/settings/panel/security.html b/web/html/xui/settings/panel/security.html new file mode 100644 index 00000000..89ff0d96 --- /dev/null +++ b/web/html/xui/settings/panel/security.html @@ -0,0 +1,60 @@ +{{define "settings/panel/security"}} + + + + + + + + + + + + + + + + + + + + + {{ i18n "confirm" }} + + + + + + + + + + + + + + + + + + {{ i18n "confirm"}} + + + + + +{{end}} \ No newline at end of file diff --git a/web/html/xui/settings/panel/subscription/general.html b/web/html/xui/settings/panel/subscription/general.html new file mode 100644 index 00000000..bcf6a432 --- /dev/null +++ b/web/html/xui/settings/panel/subscription/general.html @@ -0,0 +1,98 @@ +{{define "settings/panel/subscription/general"}} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +{{end}} \ No newline at end of file diff --git a/web/html/xui/settings/panel/subscription/json.html b/web/html/xui/settings/panel/subscription/json.html new file mode 100644 index 00000000..48273586 --- /dev/null +++ b/web/html/xui/settings/panel/subscription/json.html @@ -0,0 +1,180 @@ +{{define "settings/panel/subscription/json"}} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Remove + + + + Add Noise + + + + + + + + + + +