Skip to content

Commit

Permalink
changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
5rahim committed Jun 13, 2024
1 parent c0df138 commit 56e291e
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 10 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@

All notable changes to this project will be documented in this file.

## v1.5.5

- ⚡️ Manga reader fullscreen mode (hide the bar)
- You can now toggle the manga reader bar by clicking the middle of the page or pressing `b` on desktop
- Click the cog icon to toggle the option on mobile
- ⚡️ Changed manga reader defaults based on screen size
- Clicking `Reset defaults for (mode)` will now take into account the screen size
- 🦺 Fixed list not updating after editing entry on 'My lists' page
- 🦺 Fixed manga list not updating after deleting entry
- 🦺 Fixed score and recommendations not updating when navigating between series

## v1.5.4

- ⚡️ Added episode info to Torrent Streaming view #69
Expand Down
2 changes: 0 additions & 2 deletions internal/handlers/anime_entries.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,6 @@ func HandleGetAnimeEntry(c *RouteCtx) error {

//----------------------------------------------------------------------------------------------------------------------

//----------------------------------------------------------------------------------------------------------------------

// HandleAnimeEntryBulkAction
//
// @summary perform given action on all the local files for the given media id.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,19 @@ export function RelationsRecommendationsSection(props: RelationsRecommendationsS

const serverStatus = useServerStatus()

const sourceManga = serverStatus?.settings?.library?.enableManga
? entry?.media?.relations?.edges?.find(edge => (edge?.relationType === "SOURCE" || edge?.relationType === "ADAPTATION") && edge?.node?.format === "MANGA")?.node
: undefined
const sourceManga = React.useMemo(() => {
return serverStatus?.settings?.library?.enableManga
? entry?.media?.relations?.edges?.find(edge => (edge?.relationType === "SOURCE" || edge?.relationType === "ADAPTATION") && edge?.node?.format === "MANGA")?.node
: undefined
}, [entry?.media?.relations?.edges, serverStatus?.settings?.library?.enableManga])

const relations = (entry?.media?.relations?.edges?.map(edge => edge) || [])
const relations = React.useMemo(() => (entry?.media?.relations?.edges?.map(edge => edge) || [])
.filter(Boolean)
.filter(n => (n.node?.format === "TV" || n.node?.format === "OVA" || n.node?.format === "MOVIE" || n.node?.format === "SPECIAL") && (n.relationType === "PREQUEL" || n.relationType === "SEQUEL" || n.relationType === "PARENT" || n.relationType === "SIDE_STORY" || n.relationType === "ALTERNATIVE" || n.relationType === "ADAPTATION"))
.filter(n => (n.node?.format === "TV" || n.node?.format === "OVA" || n.node?.format === "MOVIE" || n.node?.format === "SPECIAL") && (n.relationType === "PREQUEL" || n.relationType === "SEQUEL" || n.relationType === "PARENT" || n.relationType === "SIDE_STORY" || n.relationType === "ALTERNATIVE" || n.relationType === "ADAPTATION")),
[entry?.media?.relations?.edges])

const recommendations = details?.recommendations?.edges?.map(edge => edge?.node?.mediaRecommendation)?.filter(Boolean) || []

console.log(recommendations)
const recommendations = React.useMemo(() => details?.recommendations?.edges?.map(edge => edge?.node?.mediaRecommendation)?.filter(Boolean) || [],
[details?.recommendations?.edges])

if (!entry || !details) return null

Expand Down

0 comments on commit 56e291e

Please sign in to comment.