add per-state DICOM zip downloads

This commit is contained in:
2026-05-03 00:17:30 +08:00
parent 18541db9d4
commit 479a39d880
2 changed files with 38 additions and 7 deletions

View File

@@ -815,6 +815,7 @@ export default function App() {
].map(t => {
const screenshotDir = deformationJob?.result?.previews?.screenshots;
const imagePath = screenshotDir ? `${screenshotDir}/${t.key}.png` : '';
const stateZip = deformationJob?.result?.stateZips?.[t.key];
return (
<div key={t.key} className="bg-white p-4 rounded-2xl border flex flex-col hover:border-blue-200 transition-colors shadow-sm group min-h-[285px]">
<div className="flex justify-between items-center mb-3">
@@ -831,6 +832,15 @@ export default function App() {
</div>
)}
</div>
{stateZip?.path && (
<a
href={fileUrl(stateZip.path)}
download={stateZip.name}
className="mt-3 py-2.5 bg-slate-100 text-slate-600 rounded-xl text-[11px] font-black hover:bg-green-600 hover:text-white transition-all flex items-center justify-center gap-2"
>
<Download size={13} /> DICOM ZIP
</a>
)}
</div>
);
})}