Revamp the CBX reader layout for improved structure and usability (#2330)

Co-authored-by: acx10 <acx10@users.noreply.github.com>
This commit is contained in:
ACX
2026-01-18 18:09:27 -07:00
committed by GitHub
co-authored by acx10
parent 6338ed13fc
commit 1b83ebadce
27 changed files with 3406 additions and 744 deletions
@@ -3,6 +3,11 @@ import {Injectable, inject} from '@angular/core';
import {API_CONFIG} from '../../../core/config/api-config';
import {AuthService} from '../../../shared/service/auth.service';
export interface CbxPageInfo {
pageNumber: number;
displayName: string;
}
@Injectable({providedIn: 'root'})
export class CbxReaderService {
@@ -24,6 +29,10 @@ export class CbxReaderService {
return this.http.get<number[]>(this.appendToken(`${this.pagesUrl}/${bookId}/pages`));
}
getPageInfo(bookId: number) {
return this.http.get<CbxPageInfo[]>(this.appendToken(`${this.pagesUrl}/${bookId}/page-info`));
}
getPageImageUrl(bookId: number, page: number): string {
return this.appendToken(`${this.imageUrl}/${bookId}/cbx/pages/${page}`);
}