chore(format): run prettier over src/ and scripts/
Formatting was configured but never enforced: `bun run format:check` reported 199 unformatted files and ran in no workflow and in no git hook, so .prettierrc (printWidth 100, trailing commas) described an intention rather than the tree. This is the one-time sweep that makes the check gateable. Whitespace and token-reflow only -- no behavioural change: `bun run check` reports 0 errors and all 1053 frontend tests pass before and after. Kept out of every other commit on purpose. A 199-file diff mixed with real changes is unreviewable, and the next commit turns format:check into a hard CI gate so this cannot silently accumulate again.
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
let serverName = $state("Jellyfin Server");
|
||||
|
||||
// Load session info asynchronously
|
||||
auth.getCurrentSession().then(session => {
|
||||
auth.getCurrentSession().then((session) => {
|
||||
if (session) {
|
||||
username = session.username ?? "User";
|
||||
serverName = session.serverName ?? "Jellyfin Server";
|
||||
@@ -56,7 +56,9 @@
|
||||
<div
|
||||
class="fixed inset-0 bg-black/70 z-[100] flex items-center justify-center p-4"
|
||||
onclick={handleBackdropClick}
|
||||
onkeydown={(e) => { if (e.key === 'Escape') handleBackdropClick(); }}
|
||||
onkeydown={(e) => {
|
||||
if (e.key === "Escape") handleBackdropClick();
|
||||
}}
|
||||
role="dialog"
|
||||
aria-modal="true"
|
||||
aria-labelledby="reauth-title"
|
||||
@@ -70,13 +72,10 @@
|
||||
<!-- Header -->
|
||||
<div class="px-6 pt-6 pb-4 text-center">
|
||||
<!-- Lock icon -->
|
||||
<div class="mx-auto w-16 h-16 rounded-full bg-amber-500/10 flex items-center justify-center mb-4">
|
||||
<svg
|
||||
class="w-8 h-8 text-amber-500"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
viewBox="0 0 24 24"
|
||||
>
|
||||
<div
|
||||
class="mx-auto w-16 h-16 rounded-full bg-amber-500/10 flex items-center justify-center mb-4"
|
||||
>
|
||||
<svg class="w-8 h-8 text-amber-500" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
@@ -86,12 +85,10 @@
|
||||
</svg>
|
||||
</div>
|
||||
|
||||
<h2 id="reauth-title" class="text-xl font-semibold text-white mb-2">
|
||||
Session Expired
|
||||
</h2>
|
||||
<h2 id="reauth-title" class="text-xl font-semibold text-white mb-2">Session Expired</h2>
|
||||
<p class="text-sm text-gray-400">
|
||||
Your session on <span class="text-white font-medium">{serverName}</span> has expired.
|
||||
Please enter your password to continue.
|
||||
Your session on <span class="text-white font-medium">{serverName}</span> has expired. Please
|
||||
enter your password to continue.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@@ -102,7 +99,10 @@
|
||||
<div class="block text-sm font-medium text-gray-400 mb-1" id="reauth-username-label">
|
||||
Username
|
||||
</div>
|
||||
<div class="px-4 py-3 rounded-lg bg-gray-800/50 text-gray-300 text-sm" aria-labelledby="reauth-username-label">
|
||||
<div
|
||||
class="px-4 py-3 rounded-lg bg-gray-800/50 text-gray-300 text-sm"
|
||||
aria-labelledby="reauth-username-label"
|
||||
>
|
||||
{username}
|
||||
</div>
|
||||
</div>
|
||||
@@ -140,8 +140,19 @@
|
||||
>
|
||||
{#if $isAuthLoading}
|
||||
<svg class="animate-spin h-5 w-5" fill="none" viewBox="0 0 24 24">
|
||||
<circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle>
|
||||
<path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path>
|
||||
<circle
|
||||
class="opacity-25"
|
||||
cx="12"
|
||||
cy="12"
|
||||
r="10"
|
||||
stroke="currentColor"
|
||||
stroke-width="4"
|
||||
></circle>
|
||||
<path
|
||||
class="opacity-75"
|
||||
fill="currentColor"
|
||||
d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
|
||||
></path>
|
||||
</svg>
|
||||
<span>Authenticating...</span>
|
||||
{:else}
|
||||
|
||||
Reference in New Issue
Block a user