mirror of
https://github.com/bookorbit/bookorbit.git
synced 2026-11-03 00:11:37 -06:00
feat: add epub streaming with server-side file serving
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
export interface EpubManifestItem {
|
||||
id: string
|
||||
href: string
|
||||
mediaType: string
|
||||
properties?: string[]
|
||||
size: number
|
||||
}
|
||||
|
||||
export interface EpubSpineItem {
|
||||
idref: string
|
||||
href: string
|
||||
mediaType: string
|
||||
linear: boolean
|
||||
}
|
||||
|
||||
export interface EpubTocItem {
|
||||
label: string
|
||||
href?: string
|
||||
children?: EpubTocItem[]
|
||||
}
|
||||
|
||||
export interface EpubBookInfo {
|
||||
containerPath: string
|
||||
rootPath: string
|
||||
spine: EpubSpineItem[]
|
||||
manifest: EpubManifestItem[]
|
||||
toc: EpubTocItem | null
|
||||
metadata: Record<string, unknown>
|
||||
coverPath: string | null
|
||||
}
|
||||
@@ -14,3 +14,4 @@ export * from "./opds";
|
||||
export * from "./kobo";
|
||||
export * from "./staging";
|
||||
export * from "./file-write";
|
||||
export * from "./epub";
|
||||
|
||||
Reference in New Issue
Block a user