From a749565bf6f3a2cff8abefea983240b9641c94ac Mon Sep 17 00:00:00 2001
From: zephex-alt <166333351+zephex-alt@users.noreply.github.com>
Date: Thu, 2 May 2024 13:06:48 +0000
Subject: added edge runtime line
---
src/app/manga/[title]/[id]/[read]/page.jsx | 2 ++
src/app/manga/[title]/[id]/page.jsx | 2 ++
src/app/manga/[title]/page.jsx | 2 ++
3 files changed, 6 insertions(+)
(limited to 'src/app/manga')
diff --git a/src/app/manga/[title]/[id]/[read]/page.jsx b/src/app/manga/[title]/[id]/[read]/page.jsx
index a2b2555..dc031fd 100644
--- a/src/app/manga/[title]/[id]/[read]/page.jsx
+++ b/src/app/manga/[title]/[id]/[read]/page.jsx
@@ -1,6 +1,8 @@
import styles from "./read.module.css";
import Image from "next/image";
+export const runtime = "edge";
+
export default async function Read({ params }) {
const chapterId = params.read;
const results = await getPages(chapterId);
diff --git a/src/app/manga/[title]/[id]/page.jsx b/src/app/manga/[title]/[id]/page.jsx
index 5aa807d..76d7177 100644
--- a/src/app/manga/[title]/[id]/page.jsx
+++ b/src/app/manga/[title]/[id]/page.jsx
@@ -5,6 +5,8 @@ import { redirect } from "next/navigation";
import { FaStar } from "react-icons/fa";
import { PreFetchChaterLinks } from "../../cacher";
+export const runtime = "edge";
+
export default async function MangaInfo({ params }) {
const id = params.id;
const data = await getMangaInfo(id);
diff --git a/src/app/manga/[title]/page.jsx b/src/app/manga/[title]/page.jsx
index 05dbcbf..01350d7 100644
--- a/src/app/manga/[title]/page.jsx
+++ b/src/app/manga/[title]/page.jsx
@@ -3,6 +3,8 @@ import Image from "next/image";
import Link from "next/link";
import { PreFetchMangaInfo } from "../cacher";
+export const runtime = "edge";
+
export default async function MangaInfo({ params }) {
const title = params.title;
const data = await GetSearchedAnime(title);
--
cgit v1.2.3
From 446eb6d593b97b7d11bc779afe02fdd621d79893 Mon Sep 17 00:00:00 2001
From: zephex-alt <166333351+zephex-alt@users.noreply.github.com>
Date: Fri, 3 May 2024 04:02:21 +0000
Subject: font changes, video player changes and other minor changes
---
src/app/manga/[title]/[id]/info.module.css | 15 ++---------
src/app/manga/[title]/[id]/page.jsx | 10 +++++++-
src/app/manga/[title]/page.jsx | 13 +++++-----
src/app/manga/[title]/title.module.css | 30 ++++++++++++++--------
.../manga/history/continueWatching/cw.module.css | 4 +--
5 files changed, 39 insertions(+), 33 deletions(-)
(limited to 'src/app/manga')
diff --git a/src/app/manga/[title]/[id]/info.module.css b/src/app/manga/[title]/[id]/info.module.css
index 1df4583..0420401 100644
--- a/src/app/manga/[title]/[id]/info.module.css
+++ b/src/app/manga/[title]/[id]/info.module.css
@@ -18,9 +18,8 @@
}
.TitleContainer p {
- font-family: "Lexend Deca", serif;
font-size: 40px;
- font-weight: 1000;
+ font-weight: 700;
}
.TitleContainer img {
@@ -30,13 +29,11 @@
.MangaDescription {
color: white;
- font-family: "Atkinson Hyperlegible", serif;
max-width: 98%;
margin: -10px auto;
}
.Description h2 {
- font-family: "Lexend Deca", serif;
color: gray;
}
@@ -46,14 +43,12 @@
.MangaReleaseYear {
margin-top: 10px;
- font-family: "Poppins", serif;
}
.GenreContainer {
margin-top: 5px;
display: flex;
align-items: center;
- font-family: "Poppins", serif;
}
.GenreText {
@@ -81,8 +76,6 @@
.MangaRatings {
display: flex;
margin-top: 10px;
- font-family: "Poppins", serif;
- /* justify-content: center; */
}
.MangaRatings span {
@@ -98,7 +91,6 @@
.CharactersContainer h2 {
color: gray;
- font-family: "Lexend Deca", serif;
}
.Character {
@@ -130,7 +122,6 @@
text-align: center;
width: 110px;
color: white;
- font-family: "Atkinson Hyperlegible", serif;
}
.CharacterEntry img {
@@ -149,7 +140,6 @@
.ChapterTitle {
color: white;
- font-family: "Lexend Deca", serif;
font-size: 32px;
}
@@ -183,10 +173,10 @@
background-color: #3d3d3d;
cursor: pointer;
transition: background-color 100ms ease-in-out;
+ font-family: "Lexend Deca";
}
.ChapterContainer button p {
- font-family: "Atkinson Hyperlegible", serif;
margin: 2px;
}
@@ -203,7 +193,6 @@
}
.linksNotFound {
- font-family: "Atkinson Hyperlegible", serif;
color: white;
font-size: 18px;
display: flex;
diff --git a/src/app/manga/[title]/[id]/page.jsx b/src/app/manga/[title]/[id]/page.jsx
index 76d7177..9d60e0a 100644
--- a/src/app/manga/[title]/[id]/page.jsx
+++ b/src/app/manga/[title]/[id]/page.jsx
@@ -15,6 +15,14 @@ export default async function MangaInfo({ params }) {
redirect("/404");
}
+ let description;
+ if (!data.description) {
+ description =
+ "Sorry but description for this particular manga was not found.";
+ } else {
+ description = data.description.split("
")[0];
+ }
+
PreFetchChaterLinks(data.chapters);
return (
@@ -53,7 +61,7 @@ export default async function MangaInfo({ params }) {
{data.description.split("
+
{description}
@@ -51,13 +50,15 @@ export default async function MangaInfo({ params }) { : desc}
- {item.status} + Status: {item.status || "not sure"}
- Chapters: {item.totalChapters} + Chapters:{" "} + {item.totalChapters || "not sure"}
- Volumes: {item.volumes} + Volumes:{" "} + {item.volumes || "not sure"}