Minimal online import implementation

This commit is contained in:
ZXY101
2023-10-02 21:08:43 +02:00
parent 23c446d7be
commit edd65a3cbf
4 changed files with 68 additions and 14 deletions

View File

@@ -4,6 +4,8 @@ import { showSnackbar } from '$lib/util/snackbar';
import { requestPersistentStorage } from '$lib/util/upload';
import { BlobReader, ZipReader, BlobWriter, getMimeType } from '@zip.js/zip.js';
export * from './web-import'
const zipTypes = ['zip', 'cbz', 'ZIP', 'CBZ'];
const imageTypes = ['image/jpeg', 'image/png', 'image/webp'];