subdocument-splitting-plan

This commit is contained in:
rehlert committed 2026-10-06 22:52:35 +02:00
1 parent f09384d2e6
commit ca06ca2050
47 files changed
+4097 -136

No files matched your search

+8 -2
View File
@@ -9,8 +9,10 @@
import {
extractZipArchives,
mergeProcessedZipArchive,
pdfFileToArchive,
type ProcessedZipArchive
} from '$lib/zip-processing';
import { isAcceptedPdfFile } from '$lib/zip-selection';
import { downloadBlob } from '$lib/download';
import { takeQueuedZipFiles } from '$lib/pending-files';
import * as Card from '$lib/components/ui/card/index';
@@ -76,7 +78,9 @@
updateZipJob(jobId, { status: 'processing', error: undefined, archiveCount: undefined });
try {
const processedZipArchives = await extractZipArchives(file);
const processedZipArchives = isAcceptedPdfFile(file)
? [await pdfFileToArchive(file)]
: await extractZipArchives(file);
if (generation !== archiveGeneration || !zipJobs.some((job) => job.id === jobId)) {
return;
@@ -93,7 +97,9 @@
if (generation === archiveGeneration && zipJobs.some((job) => job.id === jobId)) {
updateZipJob(jobId, {
status: 'error',
error: 'Prüfen Sie, ob die Datei ein gültiges beA-ZIP-Archiv ist.'
error: isAcceptedPdfFile(file)
? 'Prüfen Sie, ob die Datei ein gültiges PDF ist.'
: 'Prüfen Sie, ob die Datei ein gültiges beA-ZIP-Archiv ist.'
});
}
}