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
+14 -3
View File
@@ -3,14 +3,25 @@
import { formatTimeOffset } from '$ui/duration.js';
import { timeFormat } from '$ui/stores/time-zone.js';
let { value, start, missing = 'Not recorded' }: { value: Timestamp; start: Timestamp; missing?: string } = $props();
let {
value,
start,
missing = 'Not recorded'
}: { value: Timestamp; start: Timestamp; missing?: string } = $props();
const iso = $derived(timestampISO(value));
const offset = $derived(formatTimeOffset(start, value));
const absolute = $derived($timeFormat.dateTime(value));
</script>
{#if iso}<time datetime={iso} title={absolute} aria-label={offset ? `${offset} from operation start · ${absolute}` : undefined}>{offset ?? absolute}</time>{:else}<span>{missing}</span>{/if}
{#if iso}<time
datetime={iso}
title={absolute}
aria-label={offset ? `${offset} from operation start · ${absolute}` : undefined}
>{offset ?? absolute}</time
>{:else}<span>{missing}</span>{/if}
<style>
time { font-variant-numeric: tabular-nums; }
time {
font-variant-numeric: tabular-nums;
}
</style>