Fix frontend data visualization
This commit is contained in:
parent
548cb7cb39
commit
3b077f07c1
@ -42,29 +42,32 @@
|
||||
<div class="container" style="align-items: flex-start; justify-content:
|
||||
flex-start">
|
||||
|
||||
<section class="mb-8 flex-1">
|
||||
<section class="mb-8 min-w-0 flex-1 basis-1/3">
|
||||
<h2 class="text-2xl font-bold text-gray-200 mb-4">Top Commands</h2>
|
||||
<ul class="list-disc pl-6 space-y-2">
|
||||
{{range .topCommands}}
|
||||
<li class="text-lg text-gray-400">{{.Command}} - <span class="font-semibold text-blue-400">{{.Count}} times</span></li>
|
||||
<li class="text-lg text-gray-400 truncate"><span
|
||||
class="font-semibold text-blue-400">{{.Count}} times</span> - {{.Command}}</li>
|
||||
{{end}}
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<section class="mb-8 flex-1">
|
||||
<section class="mb-8 min-w-0 flex-1 basis-1/3">
|
||||
<h2 class="text-2xl font-bold text-gray-200 mb-4">Tools</h2>
|
||||
<ul class="list-disc pl-6 space-y-2">
|
||||
{{range .categoryStats}}
|
||||
<li class="text-lg text-gray-400">{{.Command}} - <span class="font-semibold text-blue-400">{{.Count}} times</span></li>
|
||||
<li class="text-lg text-gray-400 truncate"><span
|
||||
class="font-semibold text-blue-400">{{.Count}} times</span> - {{.Command}}</li>
|
||||
{{end}}
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<section class="mb-8 flex-1">
|
||||
<h3 class="text-xl font-semibold">Common Patterns</h3>
|
||||
<section class="mb-8 min-w-0 flex-1 basis-1/3">
|
||||
<h2 class="text-2xl font-bold text-gray-200 mb-4">Patterns</h2>
|
||||
<ul>
|
||||
{{range .commonPatternStats}}
|
||||
<li class="text-lg text-gray-400">{{.Command}} - <span class="font-semibold text-blue-400">{{.Count}} times</span></li>
|
||||
<li class="text-lg text-gray-400 truncate"><span
|
||||
class="font-semibold text-blue-400">{{.Count}} times</span> - {{.Command }}</li>
|
||||
{{end}}
|
||||
</ul>
|
||||
<h3 class="text-xl font-semibold mt-8">Pipe Counts</h3>
|
||||
|
Loading…
Reference in New Issue
Block a user