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: [PATCH] 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 ++ .../settings/panel/subscription/general.html | 98 +++ .../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 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 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +{{end}} \ No newline at end of file diff --git a/web/html/xui/settings/panel/telegram.html b/web/html/xui/settings/panel/telegram.html new file mode 100644 index 00000000..b826f17d --- /dev/null +++ b/web/html/xui/settings/panel/telegram.html @@ -0,0 +1,87 @@ +{{define "settings/panel/telegram"}} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +{{end}} \ No newline at end of file diff --git a/web/html/xui/settings/xray/advanced.html b/web/html/xui/settings/xray/advanced.html new file mode 100644 index 00000000..6b9cb87b --- /dev/null +++ b/web/html/xui/settings/xray/advanced.html @@ -0,0 +1,14 @@ +{{define "settings/xray/advanced"}} + + + + {{ i18n "pages.xray.completeTemplate"}} + {{ i18n "pages.xray.Inbounds" }} + {{ i18n "pages.xray.Outbounds" }} + {{ i18n "pages.xray.Routings" }} + + + +{{end}} \ No newline at end of file diff --git a/web/html/xui/settings/xray/balancers.html b/web/html/xui/settings/xray/balancers.html new file mode 100644 index 00000000..7e062ec0 --- /dev/null +++ b/web/html/xui/settings/xray/balancers.html @@ -0,0 +1,53 @@ +{{define "settings/xray/balancers"}} + + +{{end}} \ No newline at end of file diff --git a/web/html/xui/settings/xray/basics.html b/web/html/xui/settings/xray/basics.html new file mode 100644 index 00000000..292d8f50 --- /dev/null +++ b/web/html/xui/settings/xray/basics.html @@ -0,0 +1,275 @@ +{{define "settings/xray/basics"}} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ i18n "pages.settings.resetDefaultConfig" }} + + + + +{{end}} \ No newline at end of file diff --git a/web/html/xui/settings/xray/dns.html b/web/html/xui/settings/xray/dns.html new file mode 100644 index 00000000..65735ff9 --- /dev/null +++ b/web/html/xui/settings/xray/dns.html @@ -0,0 +1,149 @@ +{{define "settings/xray/dns"}} + + + + + + + + + + + +{{end}} \ No newline at end of file diff --git a/web/html/xui/settings/xray/outbounds.html b/web/html/xui/settings/xray/outbounds.html new file mode 100644 index 00000000..45d07c4c --- /dev/null +++ b/web/html/xui/settings/xray/outbounds.html @@ -0,0 +1,72 @@ +{{define "settings/xray/outbounds"}} + + + + + + {{ i18n "pages.xray.outbound.addOutbound" }} + + WARP + + + + + + + + + + + + + + + + + +{{end}} \ No newline at end of file diff --git a/web/html/xui/settings/xray/reverse.html b/web/html/xui/settings/xray/reverse.html new file mode 100644 index 00000000..a8c93ea9 --- /dev/null +++ b/web/html/xui/settings/xray/reverse.html @@ -0,0 +1,38 @@ +{{define "settings/xray/reverse"}} + + +{{end}} \ No newline at end of file diff --git a/web/html/xui/settings/xray/routing.html b/web/html/xui/settings/xray/routing.html new file mode 100644 index 00000000..8c2502de --- /dev/null +++ b/web/html/xui/settings/xray/routing.html @@ -0,0 +1,119 @@ +{{define "settings/xray/routing"}} + + {{ i18n "pages.xray.rules.add" }} + + + + + + + + +{{end}} \ No newline at end of file diff --git a/web/html/xui/xray.html b/web/html/xui/xray.html index f8f3071d..07737509 100644 --- a/web/html/xui/xray.html +++ b/web/html/xui/xray.html @@ -6,7 +6,6 @@ - @@ -104,682 +103,25 @@ @change="(activeKey) => { this.changePage(activeKey); }" :class="themeSwitcher.currentTheme"> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {{ i18n "pages.settings.resetDefaultConfig" }} - - - + {{ template "settings/xray/basics" . }} - - {{ i18n "pages.xray.rules.add" }} - - - - - - - - + {{ template "settings/xray/routing" . }} - - - - - - {{ i18n "pages.xray.outbound.addOutbound" }} - - WARP - - - - - - - - - - - - - - - - - + {{ template "settings/xray/outbounds" . }} - - + {{ template "settings/xray/reverse" . }} - - + {{ template "settings/xray/balancers" . }} + + + {{ template "settings/xray/dns" . }} - - - - - - - - - - - - - - - - - {{ i18n "pages.xray.completeTemplate"}} - {{ i18n "pages.xray.Inbounds" }} - {{ i18n "pages.xray.Outbounds" }} - {{ i18n "pages.xray.Routings" }} - - - + {{ template "settings/xray/advanced" . }}