From 1f8684481af50abdefd31c808e132a0616131a5f Mon Sep 17 00:00:00 2001 From: Toby Chui Date: Sun, 8 Jun 2025 21:56:51 +0800 Subject: [PATCH] New UI for proxy editor --- src/web/components/httprp.html | 640 ++++++++++++++++++++--- src/web/components/httprp.html.bak | 797 +++++++++++++++++++++++++++++ 2 files changed, 1370 insertions(+), 67 deletions(-) create mode 100644 src/web/components/httprp.html.bak diff --git a/src/web/components/httprp.html b/src/web/components/httprp.html index 484eb37..eea543f 100644 --- a/src/web/components/httprp.html +++ b/src/web/components/httprp.html @@ -9,7 +9,7 @@ } .subdEntry td:not(.ignoremw){ - min-width: 200px; + min-width: 100px; } .httpProxyListTools{ @@ -20,10 +20,86 @@ cursor: pointer; } + th.no-sort{ + cursor: default !important; + } + .tag-select:hover{ text-decoration: underline; opacity: 0.8; } + + .inlineEditActionBtn{ + border: 0px solid transparent !important; + box-shadow: none !important; + background-color: transparent !important; + } + + body.darkTheme .ui.basic.small.icon.circular.button.inlineEditActionBtn{ + border: 0px solid transparent !important; + } + + /* Custom, non overlaying modal for proxy rule editing */ + #httprpEditModal{ + position: fixed; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + width: 68vw; + height: 50vh; + background-color: var(--theme_bg_primary); + padding: 1.4em; + border-radius: .6em; + box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2), 0px 8px 16px rgba(0, 0, 0, 0.2); + z-index: 9; + max-width: 840px; + } + + @media screen and (max-width: 1024px) { + #httprpEditModal { + width: 85vw; + } + } + + @media screen and (max-width: 768px) { + #httprpEditModal { + width: 95vw; + height: 80vh; + border-radius: 0; + } + + .httpProxyEditClosePC{ + display:none !important; + } + .httpProxyEditCloseMobile{ + display:block !important; + } + } + + @media screen and (min-width: 769px) { + .httpProxyEditClosePC{ + display:block !important; + } + .httpProxyEditCloseMobile{ + display:none !important; + } + } + + + + #httprpEditDarkenLayer { + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; + background-color: rgba(0, 0, 0, 0.5); + z-index: 8; + } + + #httprpEditModalWrapper { + display: none; /* Hidden by default */ + }
- +
+ - - - + + @@ -76,7 +152,219 @@

+ +
+
+
+ +
+
+ +
+

+ +

+
+ +
+
+
+
+ + +
+
+ + +
+
+ +
+
+ +
+ +
+
+ + +
+
+
+
+ + Advanced Settings +
+
+
+ + +
+
+
+ + +
+
+
+
+
+ +
+
+ +
+
+ +
+
+ Headers + +
+ +
+
+ + +
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+ +
+ + +

+
+ + +
+
+ +
+ SSL + +
+ +
+ Tags + +
+
+

Note: All changes will be automatically saved.

+

+ +
+
+
+
+
+ + diff --git a/src/web/components/httprp.html.bak b/src/web/components/httprp.html.bak new file mode 100644 index 0000000..484eb37 --- /dev/null +++ b/src/web/components/httprp.html.bak @@ -0,0 +1,797 @@ +
+
+

HTTP Proxy

+

Proxy HTTP server with HTTP or HTTPS for multiple hosts. If you are only proxying for one host / domain, use Default Site instead.

+
+ +
+ +
+ + + +
+
+ +
+
Host Destination Virtual DirectoryTagsAdvanced SettingsActionsTags
+ + + + + + + + + + + + + +
HostDestinationVirtual DirectoryTagsAdvanced SettingsActions
+
+ + +

+
+ +