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

Commit b0537ed

Browse files
committed
Update v4.1.3
1 parent 20b8a72 commit b0537ed

File tree

9 files changed

+35
-19
lines changed

9 files changed

+35
-19
lines changed

components/home/schedule.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@ export default function Schedule({ data, scheduleData, anime, update }) {
5050
</h1>
5151
<div className="rounded mb-5 shadow-md shadow-black">
5252
<div className="overflow-hidden w-full h-[96px] lg:h-[10rem] rounded relative">
53-
<div className="absolute flex flex-col justify-center pl-5 lg:pl-16 rounded z-20 bg-gradient-to-r from-30% from-tersier to-transparent w-full h-full">
53+
<div className="absolute flex flex-col lg:gap-1 justify-center pl-5 lg:pl-16 rounded z-20 bg-gradient-to-r from-30% from-tersier to-transparent w-full h-full">
5454
<h1 className="text-xs lg:text-lg">Coming Up Next!</h1>
55-
<div className="w-1/2 lg:w-2/5 hidden lg:block font-medium font-karla leading-[2.9rem] text-white line-clamp-1">
55+
<div className="w-1/2 lg:w-2/5 hidden lg:block font-karla font-medium">
5656
<Link
5757
href={`/en/anime/${data.id}`}
58-
className="hover:underline underline-offset-4 decoration-2 leading-3 lg:text-[1.5vw] "
58+
className="hover:underline underline-offset-4 decoration-2 leading-3 lg:text-[1.5vw]"
5959
>
6060
{data.title.romaji || data.title.english || data.title.native}
6161
</Link>

components/watch/player/artplayer.js

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { useEffect, useRef } from "react";
22
import Artplayer from "artplayer";
33
import Hls from "hls.js";
44
import { useWatchProvider } from "@/lib/context/watchPageProvider";
5-
import { seekBackward, seekForward } from "./component/overlay";
65
import artplayerPluginHlsQuality from "artplayer-plugin-hls-quality";
76

87
export default function NewPlayer({
@@ -270,8 +269,26 @@ export default function NewPlayer({
270269
setTheaterMode((prev) => !prev);
271270
},
272271
},
273-
seekBackward,
274-
seekForward,
272+
{
273+
index: 10,
274+
name: "fast-rewind",
275+
position: "left",
276+
html: '<svg xmlns="http://www.w3.org/2000/svg" width="20px" height="20px" viewBox="0 0 20 20"><path fill="currentColor" d="M17.959 4.571L10.756 9.52s-.279.201-.279.481s.279.479.279.479l7.203 4.951c.572.38 1.041.099 1.041-.626V5.196c0-.727-.469-1.008-1.041-.625zm-9.076 0L1.68 9.52s-.279.201-.279.481s.279.479.279.479l7.203 4.951c.572.381 1.041.1 1.041-.625v-9.61c0-.727-.469-1.008-1.041-.625z"></path></svg>',
277+
tooltip: "Backward 5s",
278+
click: function () {
279+
art.backward = 5;
280+
},
281+
},
282+
{
283+
index: 11,
284+
name: "fast-forward",
285+
position: "left",
286+
html: '<svg xmlns="http://www.w3.org/2000/svg" width="20px" height="20px" viewBox="0 0 20 20"><path fill="currentColor" d="M9.244 9.52L2.041 4.571C1.469 4.188 1 4.469 1 5.196v9.609c0 .725.469 1.006 1.041.625l7.203-4.951s.279-.199.279-.478c0-.28-.279-.481-.279-.481zm9.356.481c0 .279-.279.478-.279.478l-7.203 4.951c-.572.381-1.041.1-1.041-.625V5.196c0-.727.469-1.008 1.041-.625L18.32 9.52s.28.201.28.481z"></path></svg>',
287+
tooltip: "Forward 5s",
288+
click: function () {
289+
art.forward = 5;
290+
},
291+
},
275292
],
276293
});
277294

components/watch/player/playerComponent.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,6 @@ export default function PlayerComponent({
453453
screenshot: true,
454454
hotkey: true,
455455
pip: true,
456-
fastForward: true,
457456
airplay: true,
458457
lock: true,
459458
};

components/watch/secondary/episodeLists.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default function EpisodeLists({
1414
const progress = info.mediaListEntry?.progress;
1515

1616
return (
17-
<div className="w-screen lg:max-w-sm xl:max-w-xl">
17+
<div className="w-screen lg:max-w-sm xl:max-w-lg">
1818
<h1 className="text-xl font-karla pl-5 pb-5 font-semibold">Up Next</h1>
1919
<div className="flex flex-col gap-5 lg:pl-5 py-2 scrollbar-thin px-2 scrollbar-thumb-[#313131] scrollbar-thumb-rounded-full">
2020
{episode && episode.length > 0 ? (
@@ -44,7 +44,7 @@ export default function EpisodeLists({
4444
: "cursor-pointer hover:scale-[1.02] ring-0 hover:ring-1 hover:shadow-lg ring-white"
4545
}`}
4646
>
47-
<div className="w-[43%] lg:w-[40%] h-[110px] relative rounded-lg z-40 shrink-0 overflow-hidden shadow-[4px_0px_5px_0px_rgba(0,0,0,0.3)]">
47+
<div className="w-[43%] lg:w-[42%] h-[110px] relative rounded-lg z-40 shrink-0 overflow-hidden shadow-[4px_0px_5px_0px_rgba(0,0,0,0.3)]">
4848
<div className="relative">
4949
{/* <div className="absolute inset-0 w-full h-full z-40" /> */}
5050
<Image
@@ -75,7 +75,7 @@ export default function EpisodeLists({
7575
: "0%",
7676
}}
7777
/>
78-
<span className="absolute bottom-2 left-2 font-karla font-bold text-sm">
78+
<span className="absolute bottom-2 left-2 font-karla font-bold text-sm text-white">
7979
Episode {item?.number}
8080
</span>
8181
{item.id == watchId && (

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "moopa",
3-
"version": "4.1.2",
3+
"version": "4.1.3",
44
"private": true,
55
"founder": "Factiven",
66
"scripts": {

pages/en/anime/watch/[...info].js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ export default function Watch({
442442
<div
443443
id="default"
444444
className={`${
445-
theaterMode ? "lg:max-w-[80%]" : "lg:max-w-[95%]"
445+
theaterMode ? "lg:max-w-[95%] xl:max-w-[80%]" : "lg:max-w-[95%]"
446446
} w-full flex flex-col lg:flex-row mx-auto`}
447447
>
448448
<div id="primary" className="w-full">

pages/en/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ export default function Home({ detail, populars, upComing }) {
404404

405405
<div className="lg:mt-16 mt-5 flex flex-col gap-5 items-center">
406406
<motion.div
407-
className="w-screen flex-none lg:w-[87%]"
407+
className="w-screen flex-none lg:w-[95%] xl:w-[87%]"
408408
initial={{ opacity: 0 }}
409409
animate={{ opacity: 1 }}
410410
transition={{ duration: 0.5, staggerChildren: 0.2 }} // Add staggerChildren prop
@@ -516,7 +516,7 @@ export default function Home({ detail, populars, upComing }) {
516516
</motion.div>
517517

518518
<motion.div
519-
className="w-screen flex-none lg:w-[87%]"
519+
className="w-screen flex-none lg:w-[95%] xl:w-[87%]"
520520
initial={{ opacity: 0 }}
521521
animate={{ opacity: 1 }}
522522
transition={{ duration: 0.5, staggerChildren: 0.2 }} // Add staggerChildren prop

release.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

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

5-
## 🎉 Update v4.1.2
5+
## 🎉 Update v4.1.3
66

77
### Fixed
88

9-
- Improvement on episode thumbnail when showing progress
10-
- Resolved mediaSession not showing on mobile devices
9+
- Resolved issue with seek button not working
10+
- Improved homepage and watchpage responsiveness

0 commit comments

Comments
 (0)