From bea19a263db88fef44b4356082b199fbfcc39a25 Mon Sep 17 00:00:00 2001 From: "Shishkevich D." <135337715+shishkevichd@users.noreply.github.com> Date: Sun, 6 Apr 2025 16:40:33 +0700 Subject: Code refactoring (#2865) * refactor: use vue inline styles in entire application * refactor: setting row in dashboard page * refactor: use blob for download file in text modal * refactor: move all html templates in `web/html` folder * refactor: `DeviceUtils` -> `MediaQueryMixin` The transition to mixins has been made, as they can update themselves. * chore: pretty right buttons in `outbounds` tab in xray settings * refactor: add translations for system status * refactor: adjust gutter spacing in setting list item * refactor: use native `a-input-password` for password field * chore: return old system status with new translations * chore: add missing translation --- 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 --------- 12 files changed, 1294 deletions(-) delete mode 100644 web/html/xui/settings/panel/general.html delete mode 100644 web/html/xui/settings/panel/security.html delete mode 100644 web/html/xui/settings/panel/subscription/general.html delete mode 100644 web/html/xui/settings/panel/subscription/json.html delete mode 100644 web/html/xui/settings/panel/telegram.html delete mode 100644 web/html/xui/settings/xray/advanced.html delete mode 100644 web/html/xui/settings/xray/balancers.html delete mode 100644 web/html/xui/settings/xray/basics.html delete mode 100644 web/html/xui/settings/xray/dns.html delete mode 100644 web/html/xui/settings/xray/outbounds.html delete mode 100644 web/html/xui/settings/xray/reverse.html delete mode 100644 web/html/xui/settings/xray/routing.html (limited to 'web/html/xui/settings') diff --git a/web/html/xui/settings/panel/general.html b/web/html/xui/settings/panel/general.html deleted file mode 100644 index 04b29341..00000000 --- a/web/html/xui/settings/panel/general.html +++ /dev/null @@ -1,149 +0,0 @@ -{{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 deleted file mode 100644 index 7b53a959..00000000 --- a/web/html/xui/settings/panel/security.html +++ /dev/null @@ -1,60 +0,0 @@ -{{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 deleted file mode 100644 index c5577c88..00000000 --- a/web/html/xui/settings/panel/subscription/general.html +++ /dev/null @@ -1,98 +0,0 @@ -{{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 deleted file mode 100644 index 4f0ee302..00000000 --- a/web/html/xui/settings/panel/subscription/json.html +++ /dev/null @@ -1,180 +0,0 @@ -{{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 deleted file mode 100644 index 0f11fc86..00000000 --- a/web/html/xui/settings/panel/telegram.html +++ /dev/null @@ -1,87 +0,0 @@ -{{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 deleted file mode 100644 index 6b9cb87b..00000000 --- a/web/html/xui/settings/xray/advanced.html +++ /dev/null @@ -1,14 +0,0 @@ -{{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 deleted file mode 100644 index 7e062ec0..00000000 --- a/web/html/xui/settings/xray/balancers.html +++ /dev/null @@ -1,53 +0,0 @@ -{{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 deleted file mode 100644 index 3f78de77..00000000 --- a/web/html/xui/settings/xray/basics.html +++ /dev/null @@ -1,275 +0,0 @@ -{{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 deleted file mode 100644 index 696f73e1..00000000 --- a/web/html/xui/settings/xray/dns.html +++ /dev/null @@ -1,149 +0,0 @@ -{{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 deleted file mode 100644 index 45d07c4c..00000000 --- a/web/html/xui/settings/xray/outbounds.html +++ /dev/null @@ -1,72 +0,0 @@ -{{define "settings/xray/outbounds"}} - - - - - - {{ i18n "pages.xray.outbound.addOutbound" }} - - WARP - - - - -