mirror of
https://github.com/Radiquum/AniX.git
synced 2025-04-28 00:49:40 +05:00
feat: add rating and screenshots to the release page
This commit is contained in:
parent
63375d3c32
commit
3f7b7a55a8
2 changed files with 138 additions and 35 deletions
|
@ -86,8 +86,12 @@ export const ReleasePlayer = (props: { id: number }) => {
|
|||
|
||||
useEffect(() => {
|
||||
async function _fetchInfo() {
|
||||
_fetch(`${ENDPOINTS.statistic.addHistory}/${props.id}/${selectedVoiceover.id}/${selectedSource.id}?token=${token}`);
|
||||
_fetch(`${ENDPOINTS.statistic.markWatched}/${props.id}/${selectedVoiceover.id}/${selectedSource.id}?token=${token}`);
|
||||
_fetch(
|
||||
`${ENDPOINTS.statistic.addHistory}/${props.id}/${selectedVoiceover.id}/${selectedSource.id}?token=${token}`
|
||||
);
|
||||
_fetch(
|
||||
`${ENDPOINTS.statistic.markWatched}/${props.id}/${selectedVoiceover.id}/${selectedSource.id}?token=${token}`
|
||||
);
|
||||
}
|
||||
if (selectedEpisode && !isFirstLoad && token) {
|
||||
_fetchInfo();
|
||||
|
@ -103,7 +107,7 @@ export const ReleasePlayer = (props: { id: number }) => {
|
|||
return (
|
||||
<Card>
|
||||
{!voiceoverInfo || !sourcesInfo || !episodeInfo ? (
|
||||
<div className="flex items-center justify-center aspect-video">
|
||||
<div className="flex items-center justify-center w-full h-[757px]">
|
||||
<Spinner />
|
||||
</div>
|
||||
) : (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue