Handle database

This commit is contained in:
ZXY101
2023-08-09 10:27:58 +02:00
parent 4e645467bb
commit 416b832f63
17 changed files with 14576 additions and 258 deletions

View File

@@ -1,3 +1,4 @@
import { db } from "$lib/catalog/db";
import { requestPersistentStorage } from "$lib/util/upload";
import { BlobReader, ZipReader } from "@zip.js/zip.js";
@@ -83,6 +84,6 @@ export async function processFiles(fileList: FileList) {
if (vols.length > 0) {
await requestPersistentStorage();
await processVolumes(vols)
return vols;
await db.catalog.put({ manga: vols })
}
}