Cleanup
This commit is contained in:
@@ -13,7 +13,6 @@
|
||||
let back: string | undefined = undefined;
|
||||
|
||||
afterNavigate(() => {
|
||||
console.log($page?.route.id);
|
||||
window.document.body.classList.remove('reader');
|
||||
|
||||
switch ($page?.route.id) {
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
return Math.min(Math.max(x, min), max);
|
||||
}
|
||||
|
||||
console.log(page);
|
||||
|
||||
$: textBoxes = page.blocks.map((block) => {
|
||||
const { img_height, img_width } = page;
|
||||
const { box, font_size, lines, vertical } = block;
|
||||
@@ -23,7 +21,6 @@
|
||||
const ymin = clamp(_ymin, 0, img_height);
|
||||
const xmax = clamp(_xmax, 0, img_width);
|
||||
const ymax = clamp(_ymax, 0, img_height);
|
||||
console.log('ymax', img_width);
|
||||
|
||||
const width = xmax - xmin;
|
||||
const height = ymax - ymin;
|
||||
@@ -40,7 +37,6 @@
|
||||
|
||||
return textBox;
|
||||
});
|
||||
console.log(textBoxes);
|
||||
|
||||
export let src;
|
||||
</script>
|
||||
|
||||
@@ -46,7 +46,7 @@ function getDetails(file: File) {
|
||||
|
||||
export async function processFiles(fileList: FileList) {
|
||||
const files = [...fileList]
|
||||
const zipTypes = ['zip', 'rar', 'cbz']
|
||||
const zipTypes = ['zip', 'cbz']
|
||||
const volumes: Record<string, Volume> = {};
|
||||
|
||||
for (const file of files) {
|
||||
|
||||
@@ -9,8 +9,6 @@
|
||||
if (!volume) {
|
||||
goto('/');
|
||||
} else {
|
||||
console.log('???');
|
||||
|
||||
window.document.body.classList.add('reader');
|
||||
}
|
||||
});
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
<!-- Note: webkitdirectory is not fully supported and does not work on mobile -->
|
||||
<FileUpload {onUpload} webkitdirectory>Upload directory</FileUpload>
|
||||
<FileUpload {onUpload} accept=".mokuro,.zip,.cbz,.rar" multiple>Upload files</FileUpload>
|
||||
<FileUpload {onUpload} accept=".mokuro,.zip,.cbz" multiple>Upload files</FileUpload>
|
||||
|
||||
{#await promise}
|
||||
<h2>Loading...</h2>
|
||||
|
||||
Reference in New Issue
Block a user