feat: amélioration de la navigation du Reader + correction affichage des chapitres non visibles

This commit is contained in:
ext.jeremy.guillot@maxicoffee.domains
2025-06-06 15:46:44 +02:00
parent 72d7c233f7
commit 05dd7262eb
10 changed files with 627 additions and 22 deletions

View File

@@ -1,5 +1,5 @@
export class Chapter {
constructor({ id, mangaId, number, title, pages = [], read = false, lastReadPage = 0 }) {
constructor({ id, mangaId, number, title, pages = [], read = false, lastReadPage = 0, navigation = {} }) {
this.id = id;
this.mangaId = mangaId;
this.number = number;
@@ -7,6 +7,10 @@ export class Chapter {
this.pages = pages;
this.read = read;
this.lastReadPage = lastReadPage;
this.navigation = {
previousChapter: navigation.previousChapter || null,
nextChapter: navigation.nextChapter || null
};
}
static create(data) {