feat: ajout de la gestion des chapitres dans le store Manga avec des actions pour charger et mettre à jour la disponibilité des chapitres, intégration d'un écouteur Mercure pour les mises à jour en temps réel, et amélioration des composants d'interface utilisateur pour gérer les états de chargement et d'erreur.

This commit is contained in:
ext.jeremy.guillot@maxicoffee.domains
2025-04-04 16:06:32 +02:00
parent e51712a800
commit 5928cfd5f0
11 changed files with 539 additions and 39 deletions

View File

@@ -38,7 +38,7 @@ class MangadexClient implements MangadexClientInterface
]);
$data = $response->toArray();
if (!isset($data['access_token'], $data['refresh_token'])) {
throw new MangadexAuthenticationException('Invalid authentication response from Mangadex');
}
@@ -70,7 +70,7 @@ class MangadexClient implements MangadexClientInterface
]);
$data = $response->toArray();
if (!isset($data['access_token'])) {
throw new MangadexAuthenticationException('Invalid refresh token response from Mangadex');
}
@@ -107,7 +107,7 @@ class MangadexClient implements MangadexClientInterface
{
return $this->get('/manga/' . $mangaId . '/feed', [
'limit' => $limit,
'translatedLanguage' => ['en', 'fr'],
// 'translatedLanguage' => ['en'],
'order' => ['chapter' => $order],
'offset' => $offset,
]);
@@ -160,4 +160,4 @@ class MangadexClient implements MangadexClientInterface
);
}
}
}
}