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/settings/xray/advanced.html | 14 ++ web/html/settings/xray/balancers.html | 53 +++++++ web/html/settings/xray/basics.html | 275 ++++++++++++++++++++++++++++++++++ web/html/settings/xray/dns.html | 149 ++++++++++++++++++ web/html/settings/xray/outbounds.html | 74 +++++++++ web/html/settings/xray/reverse.html | 38 +++++ web/html/settings/xray/routing.html | 119 +++++++++++++++ 7 files changed, 722 insertions(+) create mode 100644 web/html/settings/xray/advanced.html create mode 100644 web/html/settings/xray/balancers.html create mode 100644 web/html/settings/xray/basics.html create mode 100644 web/html/settings/xray/dns.html create mode 100644 web/html/settings/xray/outbounds.html create mode 100644 web/html/settings/xray/reverse.html create mode 100644 web/html/settings/xray/routing.html (limited to 'web/html/settings/xray') diff --git a/web/html/settings/xray/advanced.html b/web/html/settings/xray/advanced.html new file mode 100644 index 00000000..b5f61b34 --- /dev/null +++ b/web/html/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/settings/xray/balancers.html b/web/html/settings/xray/balancers.html new file mode 100644 index 00000000..19c4c99a --- /dev/null +++ b/web/html/settings/xray/balancers.html @@ -0,0 +1,53 @@ +{{define "settings/xray/balancers"}} + + +{{end}} \ No newline at end of file diff --git a/web/html/settings/xray/basics.html b/web/html/settings/xray/basics.html new file mode 100644 index 00000000..374cb7dd --- /dev/null +++ b/web/html/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/settings/xray/dns.html b/web/html/settings/xray/dns.html new file mode 100644 index 00000000..d2cb7082 --- /dev/null +++ b/web/html/settings/xray/dns.html @@ -0,0 +1,149 @@ +{{define "settings/xray/dns"}} + + + + + + + + + + + +{{end}} \ No newline at end of file diff --git a/web/html/settings/xray/outbounds.html b/web/html/settings/xray/outbounds.html new file mode 100644 index 00000000..0837a223 --- /dev/null +++ b/web/html/settings/xray/outbounds.html @@ -0,0 +1,74 @@ +{{define "settings/xray/outbounds"}} + + + + + + {{ i18n "pages.xray.outbound.addOutbound" }} + + WARP + + + + + + + + + + + + + + + + + + + +{{end}} \ No newline at end of file diff --git a/web/html/settings/xray/reverse.html b/web/html/settings/xray/reverse.html new file mode 100644 index 00000000..cdb4738d --- /dev/null +++ b/web/html/settings/xray/reverse.html @@ -0,0 +1,38 @@ +{{define "settings/xray/reverse"}} + + +{{end}} \ No newline at end of file diff --git a/web/html/settings/xray/routing.html b/web/html/settings/xray/routing.html new file mode 100644 index 00000000..e5b9b6c6 --- /dev/null +++ b/web/html/settings/xray/routing.html @@ -0,0 +1,119 @@ +{{define "settings/xray/routing"}} + + {{ i18n "pages.xray.rules.add" }} + + + + + + + + +{{end}} \ No newline at end of file -- cgit v1.2.3