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
+9 -1
View File
@@ -2,7 +2,15 @@
import { watchdogStateLabels, type WatchdogState } from '$lib/watchdog.js';
import Badge from './primitives/Badge.svelte';
let { state }: { state: WatchdogState } = $props();
const tone = $derived(state === 'attention' ? 'warning' : state === 'resolved' ? 'online' : state === 'recovering' ? 'info' : 'neutral');
const tone = $derived(
state === 'attention'
? 'warning'
: state === 'resolved'
? 'online'
: state === 'recovering'
? 'info'
: 'neutral'
);
</script>
<Badge variant={tone}>{watchdogStateLabels[state]}</Badge>