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
+4 -4
View File
@@ -45,10 +45,10 @@ type Pool struct {
// SortKey / SortOrder control how the pool's files are ordered. When SortKey
// is PoolSortManual, files follow the manual position order and can be
// reordered; otherwise they are sorted automatically and reordering is a no-op.
SortKey string
SortOrder string
FileCount int
CreatedAt time.Time // extracted from UUID v7 via UUIDCreatedAt
SortKey string
SortOrder string
FileCount int
CreatedAt time.Time // extracted from UUID v7 via UUIDCreatedAt
}
// PoolFile is a File with its ordering position within a pool.
+1 -2
View File
@@ -42,8 +42,7 @@ export function createRovingGrid<T extends Item>(opts: RovingGridOptions<T>) {
function isFormTarget(t: EventTarget | null): boolean {
return (
t instanceof HTMLElement &&
(t.isContentEditable ||
['INPUT', 'TEXTAREA', 'SELECT', 'BUTTON', 'A'].includes(t.tagName))
(t.isContentEditable || ['INPUT', 'TEXTAREA', 'SELECT', 'BUTTON', 'A'].includes(t.tagName))
);
}
+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}