From 4532b372014b3b8105663a014cfe6607f5ffc251 Mon Sep 17 00:00:00 2001 From: Youwes09 Date: Wed, 18 Mar 2026 23:16:18 -0500 Subject: [PATCH] chore: patched/rewrote reader --- src/components/reader/Reader.svelte | 738 +++++++++++++++++++++++++++- 1 file changed, 737 insertions(+), 1 deletion(-) diff --git a/src/components/reader/Reader.svelte b/src/components/reader/Reader.svelte index 14b6a6c..61344f8 100644 --- a/src/components/reader/Reader.svelte +++ b/src/components/reader/Reader.svelte @@ -1 +1,737 @@ -
Reader.svelte
+ + +
{ if (e.clientY < 60 || window.innerHeight - e.clientY < 60) showUi(); }}> + + +
+ + + + {$activeManga?.title} + / + {displayChapter?.name} + + {$pageNumber} / {visibleChunkLastPage || "…"} + +
+ +
+ + {#if zoomOpen} +
+ updateSettings({ maxPageWidth: Number(e.currentTarget.value) })} /> + +
+ {/if} +
+ + + {#if style !== "single"} + + {/if} + {#if style === "longstrip"} + + {/if} + {#if !autoNext} + + {/if} + +
+ + +
{ if (e.ctrlKey) e.preventDefault(); }} + on:keydown={(e) => { if (e.key === " " && style === "longstrip") { e.preventDefault(); containerEl?.scrollBy({ top: containerEl.clientHeight * 0.85, behavior: "smooth" }); } }} + > + {#if loading} +
+ {/if} + {#if error} +

{error}

+ {/if} + + {#if style === "longstrip"} + {#each stripToRender as chunk} + {#each chunk.urls as url, i} + {chunk.chapterName} – Page {i + 1} + {/each} + {/each} +
+ {:else if pageReady} + {#if style === "double" && pageGroups.length} +
+ {#each currentGroup as pg} + Page {pg} + {/each} +
+ {:else} + Page {$pageNumber} + {/if} + {/if} +
+ + +
+ + +
+ + + {#if dlOpen && $activeChapter} + {@const queueable = adjacent.remaining.filter((c) => !c.isDownloaded)} +
dlOpen = false}> +
+

Download

+ +
+ +
+ + {nextN} + +
+
+ +
+
+ {/if} +
+ +