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:
@@ -1,7 +1,7 @@
|
|||||||
// Manual panel editor for admins/power users
|
// Manual panel editor for admins/power users
|
||||||
|
|
||||||
import { Alpine } from "../../alpine";
|
import { Alpine } from "../../../alpine";
|
||||||
import { apiPut } from "../../api";
|
import { apiPut } from "../../../api";
|
||||||
import { Panel } from "./panel-detector";
|
import { Panel } from "./panel-detector";
|
||||||
import { detectPanels } from "./panel-detection.service";
|
import { detectPanels } from "./panel-detection.service";
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,19 @@
|
|||||||
// Handle text copying with citation
|
// Handle text copying with citation
|
||||||
// Feature Registration Pattern implementation
|
// Feature Registration Pattern implementation
|
||||||
|
|
||||||
import type { ReaderContext } from "../core/reader-context";
|
import type { ReaderContext } from "../../../core/reader-context";
|
||||||
import { showToast } from "../../toast";
|
import { showToast } from "../../../../toast";
|
||||||
|
|
||||||
export function init(context: ReaderContext): void {
|
export function init(context: ReaderContext): void {
|
||||||
let mediaItem: MediaItemSummary | null = null;
|
let mediaItem: MediaItemSummary | null = null;
|
||||||
|
|
||||||
context.events.on("reader:loaded", (detail: { mediaItem: MediaItemSummary }) => {
|
context.events.on(
|
||||||
mediaItem = detail.mediaItem;
|
"reader:loaded",
|
||||||
enableContextMenuCopy(mediaItem);
|
(detail: { mediaItem: MediaItemSummary }) => {
|
||||||
});
|
mediaItem = detail.mediaItem;
|
||||||
|
enableContextMenuCopy(mediaItem);
|
||||||
|
},
|
||||||
|
);
|
||||||
|
|
||||||
context.events.on("copy:selection", async () => {
|
context.events.on("copy:selection", async () => {
|
||||||
if (mediaItem) {
|
if (mediaItem) {
|
||||||
@@ -65,3 +68,4 @@ function enableContextMenuCopy(mediaItem: MediaItemSummary): void {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user