From 9b9875dc2cb6dc24cb1a69f83f0c242277c035f0 Mon Sep 17 00:00:00 2001 From: "lilong.129" Date: Wed, 25 Jun 2025 14:48:57 +0800 Subject: [PATCH] feat: enhance HTML report with modals for summary JSON and log content, and improve download functionality --- internal/version/VERSION | 2 +- report.go | 165 ++++++++++++++++++++++++++++++---- uixt/driver_ext_screenshot.go | 3 + 3 files changed, 150 insertions(+), 20 deletions(-) diff --git a/internal/version/VERSION b/internal/version/VERSION index 5b1c7b2a..aeb55490 100644 --- a/internal/version/VERSION +++ b/internal/version/VERSION @@ -1 +1 @@ -v5.0.0-beta-2506251440 +v5.0.0-beta-2506251530 diff --git a/report.go b/report.go index ea5a964e..54f8bee0 100644 --- a/report.go +++ b/report.go @@ -2337,25 +2337,25 @@ const htmlTemplate = `
Start Time: {{.Time.StartAt.Format "2006-01-02 15:04:05"}}
-
-
📥 Download & View
-
- - - {{if getCaseContentBase64}} - - {{end}} +
+
📥 View & Download
+
+ {{if getCaseContentBase64}} + + {{end}} + + +
-
@@ -2891,6 +2891,46 @@ const htmlTemplate = ` + +
+
+
+

📄 Summary JSON

+ +
+
+
+
+ + +
+ ✅ Copied! +
+

+            
+
+
+ + +
+
+
+

📋 Log Content

+ +
+
+
+
+ + +
+ ✅ Copied! +
+

+            
+
+
+