mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2025-07-02 11:43:49 +02:00
format cleanup component arguments
This commit is contained in:
parent
63e828d2df
commit
a4104822e2
@ -353,10 +353,10 @@
|
|||||||
</Col>
|
</Col>
|
||||||
<Col xs="auto">
|
<Col xs="auto">
|
||||||
<Filters
|
<Filters
|
||||||
|
disableClusterSelection
|
||||||
|
startTimeQuickSelect
|
||||||
bind:this={filterComponent}
|
bind:this={filterComponent}
|
||||||
{filterPresets}
|
{filterPresets}
|
||||||
disableClusterSelection={true}
|
|
||||||
startTimeQuickSelect={true}
|
|
||||||
applyFilters={(detail) => {
|
applyFilters={(detail) => {
|
||||||
jobFilters = detail.filters;
|
jobFilters = detail.filters;
|
||||||
}}
|
}}
|
||||||
@ -565,8 +565,8 @@
|
|||||||
<!-- Note: Ignore '#snippet' Error in IDE -->
|
<!-- Note: Ignore '#snippet' Error in IDE -->
|
||||||
{#snippet histoGridContent(item)}
|
{#snippet histoGridContent(item)}
|
||||||
<Histogram
|
<Histogram
|
||||||
|
usesBins
|
||||||
data={convert2uplot(item.bins)}
|
data={convert2uplot(item.bins)}
|
||||||
usesBins={true}
|
|
||||||
title="Average Distribution of '{item.metric}'"
|
title="Average Distribution of '{item.metric}'"
|
||||||
xlabel={`${item.metric} bin maximum [${metricUnits[item.metric]}]`}
|
xlabel={`${item.metric} bin maximum [${metricUnits[item.metric]}]`}
|
||||||
xunit={`${metricUnits[item.metric]}`}
|
xunit={`${metricUnits[item.metric]}`}
|
||||||
|
@ -127,9 +127,9 @@
|
|||||||
</Col>
|
</Col>
|
||||||
<Col xs="12" md="7" lg="8" xl="9">
|
<Col xs="12" md="7" lg="8" xl="9">
|
||||||
<Filters
|
<Filters
|
||||||
|
startTimeQuickSelect
|
||||||
bind:this={filterComponent}
|
bind:this={filterComponent}
|
||||||
{filterPresets}
|
{filterPresets}
|
||||||
startTimeQuickSelect={true}
|
|
||||||
menuText="Only {type.toLowerCase()}s with jobs that match the filters will show up"
|
menuText="Only {type.toLowerCase()}s with jobs that match the filters will show up"
|
||||||
applyFilters={(detail) => {
|
applyFilters={(detail) => {
|
||||||
jobFilters = detail.filters;
|
jobFilters = detail.filters;
|
||||||
|
@ -217,7 +217,7 @@
|
|||||||
cluster={clusters.find((c) => c.name == cluster)}
|
cluster={clusters.find((c) => c.name == cluster)}
|
||||||
subCluster={$nodeMetricsData.data.nodeMetrics[0].subCluster}
|
subCluster={$nodeMetricsData.data.nodeMetrics[0].subCluster}
|
||||||
series={item.metric.series}
|
series={item.metric.series}
|
||||||
forNode={true}
|
forNode
|
||||||
/>
|
/>
|
||||||
{:else if item.disabled === true && item.metric}
|
{:else if item.disabled === true && item.metric}
|
||||||
<Card style="margin-left: 2rem;margin-right: 2rem;" body color="info"
|
<Card style="margin-left: 2rem;margin-right: 2rem;" body color="info"
|
||||||
|
@ -460,7 +460,7 @@
|
|||||||
<div bind:clientWidth={plotWidths[i]}>
|
<div bind:clientWidth={plotWidths[i]}>
|
||||||
{#key $mainQuery.data.nodeMetrics}
|
{#key $mainQuery.data.nodeMetrics}
|
||||||
<Roofline
|
<Roofline
|
||||||
allowSizeChange={true}
|
allowSizeChange
|
||||||
width={plotWidths[i] - 10}
|
width={plotWidths[i] - 10}
|
||||||
height={300}
|
height={300}
|
||||||
subCluster={subCluster}
|
subCluster={subCluster}
|
||||||
@ -680,12 +680,12 @@
|
|||||||
{#snippet gridContent(item)}
|
{#snippet gridContent(item)}
|
||||||
<Histogram
|
<Histogram
|
||||||
data={convert2uplot(item.data)}
|
data={convert2uplot(item.data)}
|
||||||
usesBins={true}
|
|
||||||
title="Distribution of '{item.metric}' averages"
|
title="Distribution of '{item.metric}' averages"
|
||||||
xlabel={`${item.metric} bin maximum ${item?.unit ? `[${item.unit}]` : ``}`}
|
xlabel={`${item.metric} bin maximum ${item?.unit ? `[${item.unit}]` : ``}`}
|
||||||
xunit={item.unit}
|
xunit={item.unit}
|
||||||
ylabel="Number of Jobs"
|
ylabel="Number of Jobs"
|
||||||
yunit="Jobs"
|
yunit="Jobs"
|
||||||
|
usesBins
|
||||||
/>
|
/>
|
||||||
{/snippet}
|
{/snippet}
|
||||||
|
|
||||||
|
@ -173,10 +173,10 @@
|
|||||||
</Col>
|
</Col>
|
||||||
<Col lg="4" class="mb-1 mb-lg-0">
|
<Col lg="4" class="mb-1 mb-lg-0">
|
||||||
<Filters
|
<Filters
|
||||||
|
startTimeQuickSelect
|
||||||
bind:this={filterComponent}
|
bind:this={filterComponent}
|
||||||
{filterPresets}
|
{filterPresets}
|
||||||
matchedJobs={matchedListJobs}
|
matchedJobs={matchedListJobs}
|
||||||
startTimeQuickSelect={true}
|
|
||||||
applyFilters={(detail) => {
|
applyFilters={(detail) => {
|
||||||
jobFilters = [...detail.filters, { user: { eq: user.username } }];
|
jobFilters = [...detail.filters, { user: { eq: user.username } }];
|
||||||
selectedCluster = jobFilters[0]?.cluster
|
selectedCluster = jobFilters[0]?.cluster
|
||||||
|
@ -51,19 +51,19 @@
|
|||||||
<ModalFooter>
|
<ModalFooter>
|
||||||
<Button
|
<Button
|
||||||
color="primary"
|
color="primary"
|
||||||
on:click={() => {
|
onclick={() => {
|
||||||
isOpen = false;
|
isOpen = false;
|
||||||
setFilter({ energy: energyState });
|
setFilter({ energy: energyState });
|
||||||
}}>Close & Apply</Button
|
}}>Close & Apply</Button
|
||||||
>
|
>
|
||||||
<Button
|
<Button
|
||||||
color="danger"
|
color="danger"
|
||||||
on:click={() => {
|
onclick={() => {
|
||||||
isOpen = false;
|
isOpen = false;
|
||||||
energyState = {from: null, to: null};
|
energyState = {from: null, to: null};
|
||||||
setFilter({ energy: energyState });
|
setFilter({ energy: energyState });
|
||||||
}}>Reset</Button
|
}}>Reset</Button
|
||||||
>
|
>
|
||||||
<Button on:click={() => (isOpen = false)}>Close</Button>
|
<Button onclick={() => (isOpen = false)}>Close</Button>
|
||||||
</ModalFooter>
|
</ModalFooter>
|
||||||
</Modal>
|
</Modal>
|
||||||
|
@ -99,7 +99,7 @@
|
|||||||
</ListGroup>
|
</ListGroup>
|
||||||
</ModalBody>
|
</ModalBody>
|
||||||
<ModalFooter>
|
<ModalFooter>
|
||||||
<Button color="primary" on:click={() => closeAndApply()}>Close & Apply</Button>
|
<Button color="primary" onclick={() => closeAndApply()}>Close & Apply</Button>
|
||||||
<Button color="secondary" on:click={() => (isOpen = !isOpen)}>Close</Button>
|
<Button color="secondary" onclick={() => (isOpen = !isOpen)}>Close</Button>
|
||||||
</ModalFooter>
|
</ModalFooter>
|
||||||
</Modal>
|
</Modal>
|
||||||
|
@ -174,8 +174,9 @@
|
|||||||
{/if}
|
{/if}
|
||||||
{#each listedMetrics as metric, index (metric)}
|
{#each listedMetrics as metric, index (metric)}
|
||||||
<li
|
<li
|
||||||
|
draggable
|
||||||
class="cc-config-column list-group-item"
|
class="cc-config-column list-group-item"
|
||||||
draggable={true}
|
class:is-active={columnHovering === index}
|
||||||
ondragover={(event) => {
|
ondragover={(event) => {
|
||||||
event.preventDefault()
|
event.preventDefault()
|
||||||
return false
|
return false
|
||||||
@ -188,7 +189,6 @@
|
|||||||
columnsDrag(event, index)
|
columnsDrag(event, index)
|
||||||
}}
|
}}
|
||||||
ondragenter={() => (columnHovering = index)}
|
ondragenter={() => (columnHovering = index)}
|
||||||
class:is-active={columnHovering === index}
|
|
||||||
>
|
>
|
||||||
{#if pendingMetrics.includes(metric)}
|
{#if pendingMetrics.includes(metric)}
|
||||||
<input
|
<input
|
||||||
|
Loading…
x
Reference in New Issue
Block a user