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

@@ -128,6 +128,8 @@ readonly class LegacyChapterRepository implements ChapterRepositoryInterface
->from(ChapterEntity::class, 'c')
->where('c.manga = :manga')
->andWhere('c.number < :number')
->andWhere('c.visible = true')
->andWhere('c.cbzPath IS NOT NULL')
->orderBy('c.number', 'DESC')
->setMaxResults(1)
->setParameters([
@@ -151,6 +153,8 @@ readonly class LegacyChapterRepository implements ChapterRepositoryInterface
->from(ChapterEntity::class, 'c')
->where('c.manga = :manga')
->andWhere('c.number > :number')
->andWhere('c.visible = true')
->andWhere('c.cbzPath IS NOT NULL')
->orderBy('c.number', 'ASC')
->setMaxResults(1)
->setParameters([