Add Prettier and ESLint tooling (Refs #77)
This commit is contained in:
@@ -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)}`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user