From cb3f2825389b4b864f618cc13f41cb79f3153243 Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Thu, 9 Apr 2026 21:17:06 -0400 Subject: [PATCH] fix(reader): correct import paths after directory restructuring Update import statements to reflect new module locations: - panel-editor.ts: fix Alpine and api imports - copy-handler.ts: fix ReaderContext and toast imports These corrections address path issues caused by the reader architecture refactor where modules were moved into format-specific subdirectories. --- web/src/reader/formats/comic/panel-editor.ts | 4 ++-- .../formats/reflowable/ebook/copy-handler.ts | 18 +++++++++++------- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/web/src/reader/formats/comic/panel-editor.ts b/web/src/reader/formats/comic/panel-editor.ts index d6509e7..b431cfd 100644 --- a/web/src/reader/formats/comic/panel-editor.ts +++ b/web/src/reader/formats/comic/panel-editor.ts @@ -1,7 +1,7 @@ // Manual panel editor for admins/power users -import { Alpine } from "../../alpine"; -import { apiPut } from "../../api"; +import { Alpine } from "../../../alpine"; +import { apiPut } from "../../../api"; import { Panel } from "./panel-detector"; import { detectPanels } from "./panel-detection.service"; diff --git a/web/src/reader/formats/reflowable/ebook/copy-handler.ts b/web/src/reader/formats/reflowable/ebook/copy-handler.ts index c9e20a1..dd389bd 100644 --- a/web/src/reader/formats/reflowable/ebook/copy-handler.ts +++ b/web/src/reader/formats/reflowable/ebook/copy-handler.ts @@ -1,16 +1,19 @@ // Handle text copying with citation // Feature Registration Pattern implementation -import type { ReaderContext } from "../core/reader-context"; -import { showToast } from "../../toast"; +import type { ReaderContext } from "../../../core/reader-context"; +import { showToast } from "../../../../toast"; export function init(context: ReaderContext): void { let mediaItem: MediaItemSummary | null = null; - context.events.on("reader:loaded", (detail: { mediaItem: MediaItemSummary }) => { - mediaItem = detail.mediaItem; - enableContextMenuCopy(mediaItem); - }); + context.events.on( + "reader:loaded", + (detail: { mediaItem: MediaItemSummary }) => { + mediaItem = detail.mediaItem; + enableContextMenuCopy(mediaItem); + }, + ); context.events.on("copy:selection", async () => { if (mediaItem) { @@ -64,4 +67,5 @@ function enableContextMenuCopy(mediaItem: MediaItemSummary): void { await copySelection(mediaItem); } }); -} \ No newline at end of file +} +