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
+3 -4
View File
@@ -129,9 +129,7 @@
selectionStore.exit();
try {
await api.post('/files/bulk/review', { file_ids: ids, needs_review: false });
files = files.map((f) =>
ids.includes(f.id ?? '') ? { ...f, needs_review: false } : f
);
files = files.map((f) => (ids.includes(f.id ?? '') ? { ...f, needs_review: false } : f));
} catch {
// ignore — list already reflects the intended state optimistically
}
@@ -148,7 +146,8 @@
function handleKey(e: KeyboardEvent) {
if (e.key === 'Escape') {
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 (activeFileId) return;
else if ($selectionActive) selectionStore.exit();
@@ -1,11 +1,7 @@
<script lang="ts">
import { goto } from '$app/navigation';
import { api } from '$lib/api/client';
import {
getDuplicates,
dismissDuplicate,
type DuplicatePairDistance
} from '$lib/api/duplicates';
import { getDuplicates, dismissDuplicate, type DuplicatePairDistance } from '$lib/api/duplicates';
import Thumb from '$lib/components/file/Thumb.svelte';
import DuplicateMergeDialog from '$lib/components/file/DuplicateMergeDialog.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)}
{@const dist = distanceFromKeep(c, keep, other.id)}
<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
class="dist"
class:unknown={dist === null}