style: format frontend with prettier

Mechanical one-shot pass of pnpm format over src/, tests/, tools/, and
root configs. No functional changes; build and type-check verified.
This commit is contained in:
2026-07-04 20:23:32 +01:00
parent 32c6ae09d6
commit 827e1a8ecf
152 changed files with 9204 additions and 7445 deletions
+24 -24
View File
@@ -1,30 +1,30 @@
export type MockScenario =
| "rich"
| "empty"
| "busy"
| "duplicates"
| "album"
| "errors"
| "huge"
| "extreme"
| "unready"
| "joytag-unready";
| 'rich'
| 'empty'
| 'busy'
| 'duplicates'
| 'album'
| 'errors'
| 'huge'
| 'extreme'
| 'unready'
| 'joytag-unready'
const SCENARIOS = new Set<MockScenario>([
"rich",
"empty",
"busy",
"duplicates",
"album",
"errors",
"huge",
"extreme",
"unready",
"joytag-unready",
]);
'rich',
'empty',
'busy',
'duplicates',
'album',
'errors',
'huge',
'extreme',
'unready',
'joytag-unready',
])
export function getMockScenario(): MockScenario {
if (typeof window === "undefined") return "rich";
const value = new URLSearchParams(window.location.search).get("scenario");
return value && SCENARIOS.has(value as MockScenario) ? (value as MockScenario) : "rich";
if (typeof window === 'undefined') return 'rich'
const value = new URLSearchParams(window.location.search).get('scenario')
return value && SCENARIOS.has(value as MockScenario) ? (value as MockScenario) : 'rich'
}