From 3b077f07c15dd40a0e47066fcfb0d93a71f0746c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?O=CC=81scar=20M=2E=20Lage?= Date: Thu, 5 Dec 2024 21:27:19 +0100 Subject: [PATCH] Fix frontend data visualization --- internal/web/templates/result.html | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/internal/web/templates/result.html b/internal/web/templates/result.html index 1d55e0b..5c3e2ce 100644 --- a/internal/web/templates/result.html +++ b/internal/web/templates/result.html @@ -42,29 +42,32 @@
-
+

Top Commands

    {{range .topCommands}} -
  • {{.Command}} - {{.Count}} times
  • +
  • {{.Count}} times - {{.Command}}
  • {{end}}
-
+

Tools

    {{range .categoryStats}} -
  • {{.Command}} - {{.Count}} times
  • +
  • {{.Count}} times - {{.Command}}
  • {{end}}
-
-

Common Patterns

+
+

Patterns

    {{range .commonPatternStats}} -
  • {{.Command}} - {{.Count}} times
  • +
  • {{.Count}} times - {{.Command }}
  • {{end}}

Pipe Counts