Skip to content
This repository has been archived by the owner on Jul 14, 2024. It is now read-only.

Commit

Permalink
Update v4.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
DevanAbinaya committed Sep 16, 2023
1 parent ab9b67f commit dfb45f4
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 20 deletions.
10 changes: 2 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "moopa",
"version": "4.0.2",
"version": "4.0.3",
"private": true,
"founder": "Factiven",
"scripts": {
Expand All @@ -26,7 +26,6 @@
"graphql": "^15.8.0",
"hls.js": "^1.3.2",
"ioredis": "^5.3.2",
"memory-cache": "^0.2.0",
"next": "^13.1.6",
"next-auth": "^4.22.0",
"next-pwa": "^5.6.0",
Expand Down
4 changes: 2 additions & 2 deletions pages/api/v2/episode/[id].js
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ async function fetchAnify(id) {
export default async function handler(req, res) {
const { id, releasing = "false", dub = false } = req.query;

// if releasing is true then cache for 10 minutes, if it false cache for 1 week;
const cacheTime = releasing === "true" ? 60 * 10 : 60 * 60 * 24 * 7;
// if releasing is true then cache for 10 minutes, if it false cache for 1 month;
const cacheTime = releasing === "true" ? 60 * 10 : 60 * 60 * 24 * 30;

let cached;

Expand Down
2 changes: 1 addition & 1 deletion pages/en/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ export default function Home({ detail, populars, upComing }) {
transition={{ duration: 0.5, staggerChildren: 0.2 }} // Add staggerChildren prop
>
{/* SECTION 3 */}
{recentAdded.length > 0 && (
{recentAdded?.length > 0 && (
<motion.section // Add motion.div to each child component
key="recentAdded"
initial={{ y: 20, opacity: 0 }}
Expand Down
10 changes: 3 additions & 7 deletions release.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,9 @@

This document contains a summary of all significant changes made to this release.

## 🎉 Update v4.0.2

### Fixed

- Issue #74 : Resolved mobile rotation locked on portrait mode
- No more descending episode lists causing continue button to play episodes backward
## 🎉 Update v4.0.3

### Changed

- Update `README.md` file for cors inside env
- Increase cache time for `FINISHED` Anime's episodes
- `New Episodes` component has been temporarily removed due to errors. It will be fixed and added back in a future release.

0 comments on commit dfb45f4

Please sign in to comment.