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/modals/client_bulk_modal.html | 250 ------------ web/html/xui/modals/client_modal.html | 172 -------- web/html/xui/modals/dns_modal.html | 114 ------ web/html/xui/modals/fakedns_modal.html | 57 --- web/html/xui/modals/inbound_info_modal.html | 572 --------------------------- web/html/xui/modals/inbound_modal.html | 144 ------- web/html/xui/modals/prompt_modal.html | 71 ---- web/html/xui/modals/qrcode_modal.html | 161 -------- web/html/xui/modals/text_modal.html | 52 --- web/html/xui/modals/warp_modal.html | 246 ------------ web/html/xui/modals/xray_balancer_modal.html | 123 ------ web/html/xui/modals/xray_outbound_modal.html | 127 ------ web/html/xui/modals/xray_reverse_modal.html | 138 ------- web/html/xui/modals/xray_rule_modal.html | 246 ------------ 14 files changed, 2473 deletions(-) delete mode 100644 web/html/xui/modals/client_bulk_modal.html delete mode 100644 web/html/xui/modals/client_modal.html delete mode 100644 web/html/xui/modals/dns_modal.html delete mode 100644 web/html/xui/modals/fakedns_modal.html delete mode 100644 web/html/xui/modals/inbound_info_modal.html delete mode 100644 web/html/xui/modals/inbound_modal.html delete mode 100644 web/html/xui/modals/prompt_modal.html delete mode 100644 web/html/xui/modals/qrcode_modal.html delete mode 100644 web/html/xui/modals/text_modal.html delete mode 100644 web/html/xui/modals/warp_modal.html delete mode 100644 web/html/xui/modals/xray_balancer_modal.html delete mode 100644 web/html/xui/modals/xray_outbound_modal.html delete mode 100644 web/html/xui/modals/xray_reverse_modal.html delete mode 100644 web/html/xui/modals/xray_rule_modal.html (limited to 'web/html/xui/modals') diff --git a/web/html/xui/modals/client_bulk_modal.html b/web/html/xui/modals/client_bulk_modal.html deleted file mode 100644 index 88e8e645..00000000 --- a/web/html/xui/modals/client_bulk_modal.html +++ /dev/null @@ -1,250 +0,0 @@ -{{define "modals/clientsBulkModal"}} - - - - - Random - Random+Prefix - Random+Prefix+Num - Random+Prefix+Num+Postfix - Prefix+Num+Postfix - - - - - - - - - - - - - - - - - - - - [[ key ]] - - - - - {{ i18n "none" }} - [[ key ]] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -{{end}} \ No newline at end of file diff --git a/web/html/xui/modals/client_modal.html b/web/html/xui/modals/client_modal.html deleted file mode 100644 index b6d2a554..00000000 --- a/web/html/xui/modals/client_modal.html +++ /dev/null @@ -1,172 +0,0 @@ -{{define "modals/clientsModal"}} - - - {{template "form/client"}} - - -{{end}} diff --git a/web/html/xui/modals/dns_modal.html b/web/html/xui/modals/dns_modal.html deleted file mode 100644 index a1ebaa9f..00000000 --- a/web/html/xui/modals/dns_modal.html +++ /dev/null @@ -1,114 +0,0 @@ -{{define "modals/dnsModal"}} - - - - - - - - - - - - [[ l ]] - - - - - - - - - - - - -{{end}} \ No newline at end of file diff --git a/web/html/xui/modals/fakedns_modal.html b/web/html/xui/modals/fakedns_modal.html deleted file mode 100644 index 8e554ac0..00000000 --- a/web/html/xui/modals/fakedns_modal.html +++ /dev/null @@ -1,57 +0,0 @@ -{{define "modals/fakednsModal"}} - - - - - - - - - - - -{{end}} diff --git a/web/html/xui/modals/inbound_info_modal.html b/web/html/xui/modals/inbound_info_modal.html deleted file mode 100644 index 50a52190..00000000 --- a/web/html/xui/modals/inbound_info_modal.html +++ /dev/null @@ -1,572 +0,0 @@ -{{define "modals/inboundInfoModal"}} - - - - - - - - - - - - - - - - -
{{ i18n "protocol" }} - [[ dbInbound.protocol ]] -
{{ i18n "pages.inbounds.address" }} - - [[ dbInbound.address ]] - -
{{ i18n "pages.inbounds.port" }} - [[ dbInbound.port ]] -
-
- - - - - - - - - - - - - - - - - -
{{ i18n "encryption" }} - [[ inbound.settings.method ]] -
{{ i18n "password" }} - - [[ inbound.settings.password ]] - -
{{ i18n "pages.inbounds.network" }} - [[ inbound.settings.network ]] -
- - -
- -{{end}} diff --git a/web/html/xui/modals/inbound_modal.html b/web/html/xui/modals/inbound_modal.html deleted file mode 100644 index 99d182b9..00000000 --- a/web/html/xui/modals/inbound_modal.html +++ /dev/null @@ -1,144 +0,0 @@ -{{define "modals/inboundModal"}} - - {{template "form/inbound"}} - - -{{end}} diff --git a/web/html/xui/modals/prompt_modal.html b/web/html/xui/modals/prompt_modal.html deleted file mode 100644 index 5073650f..00000000 --- a/web/html/xui/modals/prompt_modal.html +++ /dev/null @@ -1,71 +0,0 @@ -{{define "modals/promptModal"}} - - - - - -{{end}} \ No newline at end of file diff --git a/web/html/xui/modals/qrcode_modal.html b/web/html/xui/modals/qrcode_modal.html deleted file mode 100644 index 7046ca9b..00000000 --- a/web/html/xui/modals/qrcode_modal.html +++ /dev/null @@ -1,161 +0,0 @@ -{{define "modals/qrcodeModal"}} - - - - - - - -