mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2026-01-28 15:01:46 +01:00
Update component header, format, streamline SV5 components
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
<!--
|
||||
@component Job Summary component; Displays aggregated job footprint statistics and performance indicators
|
||||
@component Job Summary component; Displays aggregated job footprint statistics and performance indicators
|
||||
|
||||
Properties:
|
||||
- `job Object`: The GQL job object
|
||||
- `width String?`: Width of the card [Default: 'auto']
|
||||
- `height String?`: Height of the card [Default: '310px']
|
||||
-->
|
||||
Properties:
|
||||
- `job Object`: The GQL job object
|
||||
- `width String?`: Width of the card [Default: 'auto']
|
||||
- `height String?`: Height of the card [Default: '400px']
|
||||
-->
|
||||
|
||||
<script>
|
||||
import { getContext } from "svelte";
|
||||
@@ -17,7 +17,6 @@
|
||||
import JobFootprintBars from "./jobsummary/JobFootprintBars.svelte";
|
||||
import JobFootprintPolar from "./jobsummary/JobFootprintPolar.svelte";
|
||||
|
||||
|
||||
/* Svelte 5 Props */
|
||||
let {
|
||||
job,
|
||||
@@ -25,6 +24,7 @@
|
||||
height = "400px",
|
||||
} = $props();
|
||||
|
||||
/* Const Init */
|
||||
const showFootprintTab = !!getContext("cc-config")[`job_view_showFootprint`];
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user