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.
This commit is contained in:
2026-04-09 21:17:06 -04:00
parent 9fff782003
commit cb3f282538
2 changed files with 13 additions and 9 deletions
+2 -2
View File
@@ -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";
@@ -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);
}
});
}
}