Add Prettier and ESLint tooling (Refs #77)

This commit is contained in:
2026-10-09 15:56:13 -04:00
parent 8ed059b8d3
commit 16469e2d43
711 changed files with 99737 additions and 28286 deletions
+13 -3
View File
@@ -1,9 +1,19 @@
import type { RebalanceMove, RebalanceRun } from '$lib/rebalancing.js';
export const rebalanceRunLabels: Record<RebalanceRun['state'], string> = {
running: 'In progress', stopping: 'Stopping', done: 'Finished', stopped: 'Stopped', failed: 'Needs attention'
running: 'In progress',
stopping: 'Stopping',
done: 'Finished',
stopped: 'Stopped',
failed: 'Needs attention'
};
export const rebalanceMoveLabels: Record<RebalanceMove['state'], string> = {
planned: 'Not started', moving: 'Moving', done: 'Completed', skipped: 'Skipped', failed: 'Needs attention'
planned: 'Not started',
moving: 'Moving',
done: 'Completed',
skipped: 'Skipped',
failed: 'Needs attention'
};
export function rebalanceRunHref(id: string) { return `/capacity?rebalance=1&rebalanceRun=${encodeURIComponent(id)}`; }
export function rebalanceRunHref(id: string) {
return `/capacity?rebalance=1&rebalanceRun=${encodeURIComponent(id)}`;
}