From 366a44a992f6019ae379adb97369b2fe04f30aac Mon Sep 17 00:00:00 2001 From: Toby Chui Date: Tue, 10 Jun 2025 22:19:33 +0800 Subject: [PATCH 1/2] Restored old httprp page - Restored old httprp page - Moved dev page to httprp_new.html --- src/web/components/httprp.html | 854 ++-------------- src/web/components/httprp.html.bak | 797 --------------- src/web/components/httprp_new.html | 1455 ++++++++++++++++++++++++++++ 3 files changed, 1553 insertions(+), 1553 deletions(-) delete mode 100644 src/web/components/httprp.html.bak create mode 100644 src/web/components/httprp_new.html diff --git a/src/web/components/httprp.html b/src/web/components/httprp.html index e7b4f4f..484eb37 100644 --- a/src/web/components/httprp.html +++ b/src/web/components/httprp.html @@ -9,7 +9,7 @@ } .subdEntry td:not(.ignoremw){ - min-width: 100px; + min-width: 200px; } .httpProxyListTools{ @@ -20,123 +20,10 @@ 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: 75vh; - 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; - } - - #httprpEditModal .rpconfig_content{ - height: 100%; - } - - #httprpEditModal .editor_side_wrapper{ - position: absolute; - top: 0; - right: 0; - height:100%; - width: 100%; - background-color: var(--theme_bg_primary); - } - - #httprpEditModal .wrapper_frame{ - width: 100%; - border: 1px solid var(--divider_color); - border-radius: 0.5em; - height: calc(100%); - } - - #httprpEditModal .editor_side_wrapper .wrapper_frame{ - height: calc(100% - 30px); - } - - #httprpEditModal .editor_back_button { - border: none; - background-color: transparent; - box-shadow: none; - color: var(--text_color); - font-size: 2.2em; - cursor: pointer; - padding-top: 20px; - } - - #httprpEditModal .editor_back_button:hover{ - opacity: 0.5; - } - - @media screen and (max-width: 1024px) { - #httprpEditModal { - width: 85vw; - } - } - - @media screen and (max-width: 768px) { - #httprpEditModal { - height: 80vh; - border-radius: 0; - overflow-y: scroll; - } - - .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; - backdrop-filter: blur(3px); - } - - #httprpEditModalWrapper { - display: none; /* Hidden by default */ - }
- +
- - - + + + @@ -189,266 +76,7 @@

- -
-
-
- -
-
- -
-
-

- -

-
- -
-
-
-
- - -
-
-
-
- -
-
-
- -
- -
-
- - -
-
-
-
- - Advanced Settings -
-
-
- - -
-
-
- - -
-
-
-
-
-
- -
-
-
- -
-
- -
-
- -
- -
- -
-
-

Work In Progress

-
- -
-
- -
- -
- -
- -
- -
-
-
- - -
-
- - -
-
-
-
- - -
-
-
-
- - -
-
-
-
- - -
-
-
-
- - -
- -
- - -

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

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 DirectoryTagsTagsAdvanced SettingsActions
- - - - - - - - - - - - - -
HostDestinationVirtual DirectoryTagsAdvanced SettingsActions
-
- - -

-
- - diff --git a/src/web/components/httprp_new.html b/src/web/components/httprp_new.html new file mode 100644 index 0000000..e7b4f4f --- /dev/null +++ b/src/web/components/httprp_new.html @@ -0,0 +1,1455 @@ +
+
+

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.

+
+ +
+ +
+ + + +
+
+ +
+ + + + + + + + + + + + + + +
HostDestinationVirtual DirectoryTags
+
+ + +

+
+ + +
+
+
+ +
+
+ +
+
+

+ +

+
+ +
+
+
+
+ + +
+
+
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+ + Advanced Settings +
+
+
+ + +
+
+
+ + +
+
+
+
+
+
+ +
+
+
+ +
+
+ +
+
+ +
+ +
+ +
+
+

Work In Progress

+
+ +
+
+ +
+ +
+ +
+ +
+ +
+
+
+ + +
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+ +
+ + +

+
+ + +
+
+
+ +
+ +
+
+ + + +
+
+
+
+
+ + + From 650d61ba245427ae58cdd3161c9d84a517f0ed85 Mon Sep 17 00:00:00 2001 From: Toby Chui Date: Thu, 12 Jun 2025 19:26:15 +0800 Subject: [PATCH 2/2] Added plugin doc link to homepage - Fixed plugin doc css error - Added plugin doc link to homepage footer --- docs/index.html | 4 ++-- .../docs/3. Basic Examples/4. Dynamic Capture Example.md | 2 +- .../html/3. Basic Examples/4. Dynamic Capture Example.html | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/index.html b/docs/index.html index a46d612..8027bb6 100644 --- a/docs/index.html +++ b/docs/index.html @@ -519,8 +519,8 @@ - - + +
diff --git a/docs/plugins/docs/3. Basic Examples/4. Dynamic Capture Example.md b/docs/plugins/docs/3. Basic Examples/4. Dynamic Capture Example.md index 329e72c..018605f 100644 --- a/docs/plugins/docs/3. Basic Examples/4. Dynamic Capture Example.md +++ b/docs/plugins/docs/3. Basic Examples/4. Dynamic Capture Example.md @@ -318,7 +318,7 @@ If everything is correctly setup, you should see the following page when request Example terminal output for requesting `/foobar/*`: -``` +```html [2025-05-30 20:44:26.142645] [plugin-manager] [system:info] [Dynamic Capture Example:22964] Request captured by dynamic sniff path: /d_sniff/ [2025-05-30 20:44:26.142645] [plugin-manager] [system:info] [Dynamic Capture Example:22964] Header: [2025-05-30 20:44:26.142645] [plugin-manager] [system:info] [Dynamic Capture Example:22964] Method: GET diff --git a/docs/plugins/html/3. Basic Examples/4. Dynamic Capture Example.html b/docs/plugins/html/3. Basic Examples/4. Dynamic Capture Example.html index 35c786e..858930c 100644 --- a/docs/plugins/html/3. Basic Examples/4. Dynamic Capture Example.html +++ b/docs/plugins/html/3. Basic Examples/4. Dynamic Capture Example.html @@ -615,7 +615,7 @@ func RenderDebugUI(w http.ResponseWriter, r *http.Request) { :

-
[2025-05-30 20:44:26.142645] [plugin-manager] [system:info] [Dynamic Capture Example:22964] Request captured by dynamic sniff path: /d_sniff/
+                
[2025-05-30 20:44:26.142645] [plugin-manager] [system:info] [Dynamic Capture Example:22964] Request captured by dynamic sniff path: /d_sniff/
 [2025-05-30 20:44:26.142645] [plugin-manager] [system:info] [Dynamic Capture Example:22964] Header:
 [2025-05-30 20:44:26.142645] [plugin-manager] [system:info] [Dynamic Capture Example:22964] Method: GET
 [2025-05-30 20:44:26.142645] [plugin-manager] [system:info] [Dynamic Capture Example:22964] Hostname: a.localhost
@@ -641,7 +641,7 @@ func RenderDebugUI(w http.ResponseWriter, r *http.Request) {
 [2025-05-30 20:44:26.143165] [plugin-manager] [system:info] [Dynamic Capture Example:22964] Proto: HTTP/2.0
 [2025-05-30 20:44:26.143165] [plugin-manager] [system:info] [Dynamic Capture Example:22964] ProtoMajor: 2
 [2025-05-30 20:44:26.143165] [plugin-manager] [system:info] [Dynamic Capture Example:22964] ProtoMinor: 0
-
+