- import { Icon, InputGroup, InputGroupText } from "@sveltestrap/sveltestrap";
-
- export let timeseriesPlots;
-
- let windowSize = 100; // Goes from 0 to 100
- let windowPosition = 50; // Goes from 0 to 100
-
- function updatePlots() {
- let ws = windowSize / (100 * 2),
- wp = windowPosition / 100;
- let from = wp - ws,
- to = wp + ws;
- Object.values(timeseriesPlots).forEach((plot) =>
- plot.setTimeRange(from, to),
- );
- }
-
- // Rendering a big job can take a long time, so we
- // throttle the rerenders to every 100ms here.
- let timeoutId = null;
- function requestUpdatePlots() {
- if (timeoutId != null) window.cancelAnimationFrame(timeoutId);
-
- timeoutId = window.requestAnimationFrame(() => {
- updatePlots();
- timeoutId = null;
- }, 100);
- }
-
- $: requestUpdatePlots(windowSize, windowPosition);
-
-
-
-
-
-
-
-
- Window Size:
-
-
- ({windowSize}%)
-
-
-
- Window Position:
-
-
-
-
diff --git a/web/frontend/src/PlotSelection.svelte b/web/frontend/src/analysis/PlotSelection.svelte
similarity index 91%
rename from web/frontend/src/PlotSelection.svelte
rename to web/frontend/src/analysis/PlotSelection.svelte
index b4cf58b..6a5e089 100644
--- a/web/frontend/src/PlotSelection.svelte
+++ b/web/frontend/src/analysis/PlotSelection.svelte
@@ -1,3 +1,12 @@
+
+
- handleSettingSubmit(e)}/>
- handleSettingSubmit(e)}/>
- handleSettingSubmit(e)}/>
+ handleSettingSubmit(e)}/>
+ handleSettingSubmit(e)}/>
+ handleSettingSubmit(e)}/>
diff --git a/web/frontend/src/config/admin/AddUser.svelte b/web/frontend/src/config/admin/AddUser.svelte
index 84aacc3..6c20d7a 100644
--- a/web/frontend/src/config/admin/AddUser.svelte
+++ b/web/frontend/src/config/admin/AddUser.svelte
@@ -1,4 +1,14 @@
-
-
- (isOpen = !isOpen)}>
- Filter based on statistics (of non-running jobs)
-
- {#each statistics as stat}
- {stat.text}
- (
- (stat.from = detail[0]), (stat.to = detail[1]), (stat.enabled = true)
- )}
- min={0}
- max={stat.peak}
- firstSlider={stat.from}
- secondSlider={stat.to}
- inputFieldFrom={stat.from}
- inputFieldTo={stat.to}
- />
- {/each}
-
-
-
-
-
-
-
diff --git a/web/frontend/src/filters/Filters.svelte b/web/frontend/src/generic/Filters.svelte
similarity index 88%
rename from web/frontend/src/filters/Filters.svelte
rename to web/frontend/src/generic/Filters.svelte
index 7253ff7..a1839c7 100644
--- a/web/frontend/src/filters/Filters.svelte
+++ b/web/frontend/src/generic/Filters.svelte
@@ -1,15 +1,21 @@
+
+
+ (isOpen = !isOpen)}>
+ Filter based on statistics (of non-running jobs)
+
+ {#each statistics as stat}
+ {stat.text}
+ (
+ (stat.from = detail[0]), (stat.to = detail[1]), (stat.enabled = true)
+ )}
+ min={0}
+ max={stat.peak}
+ firstSlider={stat.from}
+ secondSlider={stat.to}
+ inputFieldFrom={stat.from}
+ inputFieldTo={stat.to}
+ />
+ {/each}
+
+
+
+
+
+
+
diff --git a/web/frontend/src/filters/Tags.svelte b/web/frontend/src/generic/filters/Tags.svelte
similarity index 80%
rename from web/frontend/src/filters/Tags.svelte
rename to web/frontend/src/generic/filters/Tags.svelte
index 06153ed..e42d185 100644
--- a/web/frontend/src/filters/Tags.svelte
+++ b/web/frontend/src/generic/filters/Tags.svelte
@@ -1,3 +1,15 @@
+
+
+
+
+
+
+ {#if displayTitle}
+
+
+ Core Metrics Footprint
+
+
+ {/if}
+
+ {#each footprintData as fpd, index}
+ {#if fpd.impact !== 4}
+
+
{fpd.name}
+
+
+
{fpd.message}
+
+
+ {:else}
+
+ {fpd.message}
+ {/if}
+ {/each}
+ {#if job?.metaData?.message}
+
+ {@html job.metaData.message}
+ {/if}
+
+
+
+
diff --git a/web/frontend/src/joblist/Refresher.svelte b/web/frontend/src/generic/helper/Refresher.svelte
similarity index 68%
rename from web/frontend/src/joblist/Refresher.svelte
rename to web/frontend/src/generic/helper/Refresher.svelte
index 635ffbe..bf90f3c 100644
--- a/web/frontend/src/joblist/Refresher.svelte
+++ b/web/frontend/src/generic/helper/Refresher.svelte
@@ -1,8 +1,11 @@
@@ -166,9 +148,9 @@
|
{/if}
diff --git a/web/frontend/src/joblist/Pagination.svelte b/web/frontend/src/generic/joblist/Pagination.svelte
similarity index 97%
rename from web/frontend/src/joblist/Pagination.svelte
rename to web/frontend/src/generic/joblist/Pagination.svelte
index f7b7453..77f6bc9 100644
--- a/web/frontend/src/joblist/Pagination.svelte
+++ b/web/frontend/src/generic/joblist/Pagination.svelte
@@ -1,12 +1,13 @@
@@ -60,7 +61,7 @@
itemsPerPage = Number(itemsPerPage);
}
- dispatch("update", { itemsPerPage, page });
+ dispatch("update-paging", { itemsPerPage, page });
}
$: backButtonDisabled = (page === 1);
$: nextButtonDisabled = (page >= (totalItems / itemsPerPage));
diff --git a/web/frontend/src/plots/Histogram.svelte b/web/frontend/src/generic/plots/Histogram.svelte
similarity index 89%
rename from web/frontend/src/plots/Histogram.svelte
rename to web/frontend/src/generic/plots/Histogram.svelte
index 8300384..a1bb79b 100644
--- a/web/frontend/src/plots/Histogram.svelte
+++ b/web/frontend/src/generic/plots/Histogram.svelte
@@ -1,7 +1,16 @@
-
{#if series[0].data.length > 0}
diff --git a/web/frontend/src/plots/Pie.svelte b/web/frontend/src/generic/plots/Pie.svelte
similarity index 79%
rename from web/frontend/src/plots/Pie.svelte
rename to web/frontend/src/generic/plots/Pie.svelte
index 11dc2c9..89c333c 100644
--- a/web/frontend/src/plots/Pie.svelte
+++ b/web/frontend/src/generic/plots/Pie.svelte
@@ -1,3 +1,17 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/web/frontend/src/plots/Scatter.svelte b/web/frontend/src/generic/plots/Scatter.svelte
similarity index 91%
rename from web/frontend/src/plots/Scatter.svelte
rename to web/frontend/src/generic/plots/Scatter.svelte
index 911d27d..1b260a6 100644
--- a/web/frontend/src/plots/Scatter.svelte
+++ b/web/frontend/src/generic/plots/Scatter.svelte
@@ -1,6 +1,16 @@
-
-
-
+
+
+
+
+
diff --git a/web/frontend/src/filters/DoubleRangeSlider.svelte b/web/frontend/src/generic/select/DoubleRangeSlider.svelte
similarity index 98%
rename from web/frontend/src/filters/DoubleRangeSlider.svelte
rename to web/frontend/src/generic/select/DoubleRangeSlider.svelte
index 2d4795f..57bcace 100644
--- a/web/frontend/src/filters/DoubleRangeSlider.svelte
+++ b/web/frontend/src/generic/select/DoubleRangeSlider.svelte
@@ -4,13 +4,14 @@ Originally created by Michael Keller (https://github.com/mhkeller/svelte-double-
Changes: remove dependency, text inputs, configurable value ranges, on:change event
-->
diff --git a/web/frontend/src/HistogramSelection.svelte b/web/frontend/src/generic/select/HistogramSelection.svelte
similarity index 72%
rename from web/frontend/src/HistogramSelection.svelte
rename to web/frontend/src/generic/select/HistogramSelection.svelte
index 39b1872..4e38123 100644
--- a/web/frontend/src/HistogramSelection.svelte
+++ b/web/frontend/src/generic/select/HistogramSelection.svelte
@@ -1,4 +1,14 @@
+
+
(isOpen = !isOpen)}>
diff --git a/web/frontend/src/MetricSelection.svelte b/web/frontend/src/generic/select/MetricSelection.svelte
similarity index 65%
rename from web/frontend/src/MetricSelection.svelte
rename to web/frontend/src/generic/select/MetricSelection.svelte
index 91fd8e6..2b1151e 100644
--- a/web/frontend/src/MetricSelection.svelte
+++ b/web/frontend/src/generic/select/MetricSelection.svelte
@@ -1,13 +1,18 @@
+
{#each links as item}
diff --git a/web/frontend/src/NavbarTools.svelte b/web/frontend/src/header/NavbarTools.svelte
similarity index 89%
rename from web/frontend/src/NavbarTools.svelte
rename to web/frontend/src/header/NavbarTools.svelte
index f44b4e9..fa9cac9 100644
--- a/web/frontend/src/NavbarTools.svelte
+++ b/web/frontend/src/header/NavbarTools.svelte
@@ -1,3 +1,13 @@
+
+