style: apply prettier and gofmt

Formatting only: run prettier across the frontend and gofmt over the
backend. Fixes struct-field alignment in domain/pool.go and pre-existing
prettier drift in a few frontend files.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-07-03 10:13:56 +03:00
parent 36546c46c9
commit 87d3c27b65
4 changed files with 12 additions and 16 deletions
+1 -2
View File
@@ -42,8 +42,7 @@ export function createRovingGrid<T extends Item>(opts: RovingGridOptions<T>) {
function isFormTarget(t: EventTarget | null): boolean { function isFormTarget(t: EventTarget | null): boolean {
return ( return (
t instanceof HTMLElement && t instanceof HTMLElement &&
(t.isContentEditable || (t.isContentEditable || ['INPUT', 'TEXTAREA', 'SELECT', 'BUTTON', 'A'].includes(t.tagName))
['INPUT', 'TEXTAREA', 'SELECT', 'BUTTON', 'A'].includes(t.tagName))
); );
} }
+3 -4
View File
@@ -129,9 +129,7 @@
selectionStore.exit(); selectionStore.exit();
try { try {
await api.post('/files/bulk/review', { file_ids: ids, needs_review: false }); await api.post('/files/bulk/review', { file_ids: ids, needs_review: false });
files = files.map((f) => files = files.map((f) => (ids.includes(f.id ?? '') ? { ...f, needs_review: false } : f));
ids.includes(f.id ?? '') ? { ...f, needs_review: false } : f
);
} catch { } catch {
// ignore — list already reflects the intended state optimistically // ignore — list already reflects the intended state optimistically
} }
@@ -148,7 +146,8 @@
function handleKey(e: KeyboardEvent) { function handleKey(e: KeyboardEvent) {
if (e.key === 'Escape') { if (e.key === 'Escape') {
if (tagEditorOpen) tagEditorOpen = false; if (tagEditorOpen) tagEditorOpen = false;
else if (poolPickerOpen) return; // PoolPicker owns Escape (clear search, then close) else if (poolPickerOpen)
return; // PoolPicker owns Escape (clear search, then close)
else if (confirmDeleteFiles) confirmDeleteFiles = false; else if (confirmDeleteFiles) confirmDeleteFiles = false;
else if (activeFileId) return; else if (activeFileId) return;
else if ($selectionActive) selectionStore.exit(); else if ($selectionActive) selectionStore.exit();
@@ -1,11 +1,7 @@
<script lang="ts"> <script lang="ts">
import { goto } from '$app/navigation'; import { goto } from '$app/navigation';
import { api } from '$lib/api/client'; import { api } from '$lib/api/client';
import { import { getDuplicates, dismissDuplicate, type DuplicatePairDistance } from '$lib/api/duplicates';
getDuplicates,
dismissDuplicate,
type DuplicatePairDistance
} from '$lib/api/duplicates';
import Thumb from '$lib/components/file/Thumb.svelte'; import Thumb from '$lib/components/file/Thumb.svelte';
import DuplicateMergeDialog from '$lib/components/file/DuplicateMergeDialog.svelte'; import DuplicateMergeDialog from '$lib/components/file/DuplicateMergeDialog.svelte';
import FileViewer from '$lib/components/file/FileViewer.svelte'; import FileViewer from '$lib/components/file/FileViewer.svelte';
@@ -296,7 +292,9 @@
{#each c.files.filter((f) => f.id !== keep) as other (other.id)} {#each c.files.filter((f) => f.id !== keep) as other (other.id)}
{@const dist = distanceFromKeep(c, keep, other.id)} {@const dist = distanceFromKeep(c, keep, other.id)}
<div class="actrow"> <div class="actrow">
<span class="aname" title={other.original_name ?? ''}>{other.original_name ?? '—'}</span> <span class="aname" title={other.original_name ?? ''}
>{other.original_name ?? '—'}</span
>
<span <span
class="dist" class="dist"
class:unknown={dist === null} class:unknown={dist === null}