From b0537ed477433a19511c1ab2c0ea1758b6a36de0 Mon Sep 17 00:00:00 2001 From: Factiven Date: Wed, 27 Sep 2023 21:58:45 +0700 Subject: [PATCH] Update v4.1.3 --- components/home/schedule.js | 6 +++--- components/watch/player/artplayer.js | 23 +++++++++++++++++++--- components/watch/player/playerComponent.js | 1 - components/watch/secondary/episodeLists.js | 6 +++--- package-lock.json | 4 ++-- package.json | 2 +- pages/en/anime/watch/[...info].js | 2 +- pages/en/index.js | 4 ++-- release.md | 6 +++--- 9 files changed, 35 insertions(+), 19 deletions(-) diff --git a/components/home/schedule.js b/components/home/schedule.js index d618412e..a0ab6914 100644 --- a/components/home/schedule.js +++ b/components/home/schedule.js @@ -50,12 +50,12 @@ export default function Schedule({ data, scheduleData, anime, update }) {
-
+

Coming Up Next!

-
+
{data.title.romaji || data.title.english || data.title.native} diff --git a/components/watch/player/artplayer.js b/components/watch/player/artplayer.js index 2ab4ded6..55ee4239 100644 --- a/components/watch/player/artplayer.js +++ b/components/watch/player/artplayer.js @@ -2,7 +2,6 @@ import { useEffect, useRef } from "react"; import Artplayer from "artplayer"; import Hls from "hls.js"; import { useWatchProvider } from "@/lib/context/watchPageProvider"; -import { seekBackward, seekForward } from "./component/overlay"; import artplayerPluginHlsQuality from "artplayer-plugin-hls-quality"; export default function NewPlayer({ @@ -270,8 +269,26 @@ export default function NewPlayer({ setTheaterMode((prev) => !prev); }, }, - seekBackward, - seekForward, + { + index: 10, + name: "fast-rewind", + position: "left", + html: '', + tooltip: "Backward 5s", + click: function () { + art.backward = 5; + }, + }, + { + index: 11, + name: "fast-forward", + position: "left", + html: '', + tooltip: "Forward 5s", + click: function () { + art.forward = 5; + }, + }, ], }); diff --git a/components/watch/player/playerComponent.js b/components/watch/player/playerComponent.js index a524b794..c00a14c7 100644 --- a/components/watch/player/playerComponent.js +++ b/components/watch/player/playerComponent.js @@ -453,7 +453,6 @@ export default function PlayerComponent({ screenshot: true, hotkey: true, pip: true, - fastForward: true, airplay: true, lock: true, }; diff --git a/components/watch/secondary/episodeLists.js b/components/watch/secondary/episodeLists.js index 5fa21ad2..41f1a765 100644 --- a/components/watch/secondary/episodeLists.js +++ b/components/watch/secondary/episodeLists.js @@ -14,7 +14,7 @@ export default function EpisodeLists({ const progress = info.mediaListEntry?.progress; return ( -
+

Up Next

{episode && episode.length > 0 ? ( @@ -44,7 +44,7 @@ export default function EpisodeLists({ : "cursor-pointer hover:scale-[1.02] ring-0 hover:ring-1 hover:shadow-lg ring-white" }`} > -
+
{/*
*/} - + Episode {item?.number} {item.id == watchId && ( diff --git a/package-lock.json b/package-lock.json index 0632d17e..75c1e693 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "moopa", - "version": "4.1.2", + "version": "4.1.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "moopa", - "version": "4.1.2", + "version": "4.1.3", "dependencies": { "@apollo/client": "^3.7.3", "@headlessui/react": "^1.7.15", diff --git a/package.json b/package.json index 116d84a9..e7b7408a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "moopa", - "version": "4.1.2", + "version": "4.1.3", "private": true, "founder": "Factiven", "scripts": { diff --git a/pages/en/anime/watch/[...info].js b/pages/en/anime/watch/[...info].js index b74a3f2b..0b470a89 100644 --- a/pages/en/anime/watch/[...info].js +++ b/pages/en/anime/watch/[...info].js @@ -442,7 +442,7 @@ export default function Watch({
diff --git a/pages/en/index.js b/pages/en/index.js index d4f55847..9be3c2c1 100644 --- a/pages/en/index.js +++ b/pages/en/index.js @@ -404,7 +404,7 @@ export default function Home({ detail, populars, upComing }) {