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/form/stream/external_proxy.html | 29 ----------
web/html/xui/form/stream/stream_grpc.html | 13 -----
web/html/xui/form/stream/stream_httpupgrade.html | 26 ---------
web/html/xui/form/stream/stream_kcp.html | 48 ----------------
web/html/xui/form/stream/stream_settings.html | 51 -----------------
web/html/xui/form/stream/stream_sockopt.html | 66 ----------------------
web/html/xui/form/stream/stream_tcp.html | 72 ------------------------
web/html/xui/form/stream/stream_ws.html | 29 ----------
web/html/xui/form/stream/stream_xhttp.html | 46 ---------------
9 files changed, 380 deletions(-)
delete mode 100644 web/html/xui/form/stream/external_proxy.html
delete mode 100644 web/html/xui/form/stream/stream_grpc.html
delete mode 100644 web/html/xui/form/stream/stream_httpupgrade.html
delete mode 100644 web/html/xui/form/stream/stream_kcp.html
delete mode 100644 web/html/xui/form/stream/stream_settings.html
delete mode 100644 web/html/xui/form/stream/stream_sockopt.html
delete mode 100644 web/html/xui/form/stream/stream_tcp.html
delete mode 100644 web/html/xui/form/stream/stream_ws.html
delete mode 100644 web/html/xui/form/stream/stream_xhttp.html
(limited to 'web/html/xui/form/stream')
diff --git a/web/html/xui/form/stream/external_proxy.html b/web/html/xui/form/stream/external_proxy.html
deleted file mode 100644
index defed984..00000000
--- a/web/html/xui/form/stream/external_proxy.html
+++ /dev/null
@@ -1,29 +0,0 @@
-{{define "form/externalProxy"}}
-
-
-
-
-
-
-
-
-
-
- {{ i18n "pages.inbounds.same" }}
- {{ i18n "none" }}
- TLS
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-{{end}}
diff --git a/web/html/xui/form/stream/stream_grpc.html b/web/html/xui/form/stream/stream_grpc.html
deleted file mode 100644
index e74a3c3f..00000000
--- a/web/html/xui/form/stream/stream_grpc.html
+++ /dev/null
@@ -1,13 +0,0 @@
-{{define "form/streamGRPC"}}
-
-
-
-
-
-
-
-
-
-
-
-{{end}}
diff --git a/web/html/xui/form/stream/stream_httpupgrade.html b/web/html/xui/form/stream/stream_httpupgrade.html
deleted file mode 100644
index 35dd2db8..00000000
--- a/web/html/xui/form/stream/stream_httpupgrade.html
+++ /dev/null
@@ -1,26 +0,0 @@
-{{define "form/streamHTTPUpgrade"}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- [[ index+1 ]]
-
-
-
-
-
-
-
-{{end}}
diff --git a/web/html/xui/form/stream/stream_kcp.html b/web/html/xui/form/stream/stream_kcp.html
deleted file mode 100644
index 74c375d2..00000000
--- a/web/html/xui/form/stream/stream_kcp.html
+++ /dev/null
@@ -1,48 +0,0 @@
-{{define "form/streamKCP"}}
-
-
-
- None
- SRTP
- uTP
- WeChat
- DTLS 1.2
- WireGuard
- DNS
-
-
-
-
-
-
- {{ i18n "reset" }}
-
- {{ i18n "password" }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-{{end}}
diff --git a/web/html/xui/form/stream/stream_settings.html b/web/html/xui/form/stream/stream_settings.html
deleted file mode 100644
index a3119d9c..00000000
--- a/web/html/xui/form/stream/stream_settings.html
+++ /dev/null
@@ -1,51 +0,0 @@
-{{define "form/streamSettings"}}
-
-
-
-
- TCP (RAW)
- mKCP
- WebSocket
- gRPC
- HTTPUpgrade
- XHTTP
-
-
-
-
-
-
- {{template "form/streamTCP"}}
-
-
-
-
- {{template "form/streamKCP"}}
-
-
-
-
- {{template "form/streamWS"}}
-
-
-
-
- {{template "form/streamGRPC"}}
-
-
-
-
- {{template "form/streamHTTPUpgrade"}}
-
-
-
-
- {{template "form/streamXHTTP"}}
-
-
-
-
- {{template "form/streamSockopt"}}
-
-{{end}}
diff --git a/web/html/xui/form/stream/stream_sockopt.html b/web/html/xui/form/stream/stream_sockopt.html
deleted file mode 100644
index 771d80aa..00000000
--- a/web/html/xui/form/stream/stream_sockopt.html
+++ /dev/null
@@ -1,66 +0,0 @@
-{{define "form/streamSockopt"}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- [[ key ]]
-
-
-
-
- [[ key ]]
-
-
-
-
- Off
- Redirect
- TProxy
-
-
-
-
-
-
-
-
-
-
-{{end}}
diff --git a/web/html/xui/form/stream/stream_tcp.html b/web/html/xui/form/stream/stream_tcp.html
deleted file mode 100644
index 31d2f9e8..00000000
--- a/web/html/xui/form/stream/stream_tcp.html
+++ /dev/null
@@ -1,72 +0,0 @@
-{{define "form/streamTCP"}}
-
-
-
-
-
-
- inbound.stream.tcp.type = checked ? 'http' : 'none'">
-
-
-
-
-
- {{ i18n "pages.inbounds.stream.general.request" }}
-
-
-
-
-
-
-
- {{ i18n "pages.inbounds.stream.tcp.path" }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- [[ index+1 ]]
-
-
-
-
-
-
-
-
- {{ i18n "pages.inbounds.stream.general.response" }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- [[ index+1 ]]
-
-
-
-
-
-
-
-
-
-{{end}}
diff --git a/web/html/xui/form/stream/stream_ws.html b/web/html/xui/form/stream/stream_ws.html
deleted file mode 100644
index 65c87ae1..00000000
--- a/web/html/xui/form/stream/stream_ws.html
+++ /dev/null
@@ -1,29 +0,0 @@
-{{define "form/streamWS"}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- [[ index+1 ]]
-
-
-
-
-
-
-
-{{end}}
diff --git a/web/html/xui/form/stream/stream_xhttp.html b/web/html/xui/form/stream/stream_xhttp.html
deleted file mode 100644
index 601d0cb4..00000000
--- a/web/html/xui/form/stream/stream_xhttp.html
+++ /dev/null
@@ -1,46 +0,0 @@
-{{define "form/streamXHTTP"}}
-
-
-
-
-
-
-
-
-
-
-
-
-
- [[ index+1 ]]
-
-
-
-
-
-
-
-
- [[ key ]]
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-{{end}}
\ No newline at end of file
--
cgit v1.2.3