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/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 ------------- 7 files changed, 720 deletions(-) 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/xray') 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 - - - - - - - - - - - - - - - - - -{{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 deleted file mode 100644 index a8c93ea9..00000000 --- a/web/html/xui/settings/xray/reverse.html +++ /dev/null @@ -1,38 +0,0 @@ -{{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 deleted file mode 100644 index 8c2502de..00000000 --- a/web/html/xui/settings/xray/routing.html +++ /dev/null @@ -1,119 +0,0 @@ -{{define "settings/xray/routing"}} - - {{ i18n "pages.xray.rules.add" }} - - - - - - - - -{{end}} \ No newline at end of file -- cgit v1.2.3