Files
shumai/packages/webui/routes/projects/$projectId/files/$fileId.tsx
T
Yiling-J d957ab2339 fix(webui): fix loading skeleton layout mismatches and keep left carousel visible (#485)
* fix(webui): fix loading skeleton layout mismatches and keep left carousel visible

* fix(webui): update mobile file list skeleton to match card layout

* fix(webui): blur video poster before playback with instant cut on play

* docs: consolidate webui changelog entries into single line
2026-10-20 17:39:40 +08:00

24 lines
884 B
TypeScript

import { createFileRoute } from '@tanstack/react-router'
import { FileDetailSkeleton } from '@/ui/components/loading-skeletons'
export const Route = createFileRoute('/projects/$projectId/files/$fileId')({
pendingComponent: () => <FileDetailSkeleton />,
validateSearch: (search: Record<string, unknown>) => {
return {
version: (search.version as string) || undefined,
start: search.start ? Number(search.start) : undefined,
compare: search.compare === true || search.compare === 'true' || undefined,
cmpLeft: (search.cmpLeft as string) || undefined,
cmpRight: (search.cmpRight as string) || undefined,
cmpActive: search.cmpActive === 'right' ? 'right' : undefined,
} as {
version?: string
start?: number
compare?: boolean
cmpLeft?: string
cmpRight?: string
cmpActive?: 'left' | 'right'
}
},
})