From dc86523cce014ab62135e3a8ff06aa58a22ce5e8 Mon Sep 17 00:00:00 2001 From: Christoph Kluge Date: Mon, 20 Nov 2023 14:16:01 +0100 Subject: [PATCH] Add alternative ver with progress bars --- web/frontend/src/JobFootprintBars.svelte | 209 +++++++++++++++++++++++ 1 file changed, 209 insertions(+) create mode 100644 web/frontend/src/JobFootprintBars.svelte diff --git a/web/frontend/src/JobFootprintBars.svelte b/web/frontend/src/JobFootprintBars.svelte new file mode 100644 index 0000000..ba21d9b --- /dev/null +++ b/web/frontend/src/JobFootprintBars.svelte @@ -0,0 +1,209 @@ + + + + + + Core Metrics Footprint + + + + {#each footprintData as fpd} +
+
{fpd.name}
+
+
+ + {#if fpd.impact === 3} + + {:else if fpd.impact === 2} + + {/if} + + {#if fpd.impact === 4} + + {:else if fpd.impact === 3} + + {:else if fpd.impact === 2} + + {:else if fpd.impact === 1} + + {:else if fpd.impact === 0} + + {/if} +
+
+ + {fpd.avg} / {fpd.max} {fpd.unit} +
+
+
+
+ +
+ {/each} +
+
+ + +