From 1eee181e219dfd993d396ac3169e7aad3dd285eb Mon Sep 17 00:00:00 2001 From: Factiven Date: Sun, 16 Jul 2023 22:35:39 +0700 Subject: Update v3.6.4 - Added Manga page with a working tracker for AniList user - Added schedule component to home page - Added disqus comment section so you can fight on each other (not recommended) - Added /id and /en route for english and indonesian subs (id route still work in progress) --- components/manga/leftBar.js | 111 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 111 insertions(+) create mode 100644 components/manga/leftBar.js (limited to 'components/manga/leftBar.js') diff --git a/components/manga/leftBar.js b/components/manga/leftBar.js new file mode 100644 index 0000000..272b07a --- /dev/null +++ b/components/manga/leftBar.js @@ -0,0 +1,111 @@ +import { ArrowLeftIcon } from "@heroicons/react/24/solid"; +import Image from "next/image"; +import Link from "next/link"; +import { useRouter } from "next/router"; + +export function LeftBar({ data, page, info, currentId, setSeekPage }) { + const router = useRouter(); + function goBack() { + router.push(`/en/manga/${info.id}`); + } + // console.log(info); + return ( +
+
+ + +
+
+

Provider

+
+

+ {data.providerId} +

+
+
+ {/* Chapters */} +
+

Chapters

+
+
+ {data?.chapters?.map((x) => { + return ( +
+ +

+ {x.number}.{" "} + {x.title} +

+ +
+ ); + })} +
+
+
+ {/* pages */} +
+

Pages

+
+
+ {Array.isArray(page) ? ( +
+ {page?.map((x) => { + return ( +
+
setSeekPage(x.index)} + > + chapter image +

Page {x.index + 1}

+
+
+ ); + })} +
+ ) : ( +
+

{page.error || "No Pages."}

+
+ )} +
+
+
+
+
+
+ ); +} -- cgit v1.2.3