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/anime/[id]/page.jsx | 5 ++++- src/app/kdrama/[id]/page.jsx | 2 ++ src/app/manga/[title]/[id]/[read]/page.jsx | 2 ++ src/app/manga/[title]/[id]/page.jsx | 2 ++ src/app/manga/[title]/page.jsx | 2 ++ 5 files changed, 12 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/app/anime/[id]/page.jsx b/src/app/anime/[id]/page.jsx index 14a5974..becd886 100644 --- a/src/app/anime/[id]/page.jsx +++ b/src/app/anime/[id]/page.jsx @@ -3,6 +3,8 @@ import Image from "next/image"; import Button from "./buttons"; import { preFetchAnimeLinks } from "../videoLinkfetcher"; +export const runtime = "edge"; + export default async function AnimeInfo({ params }) { let animeID = params.id; @@ -46,7 +48,8 @@ export default async function AnimeInfo({ params }) {
Release year: - {" "}{info && info.releaseDate}, {info && info.status} + {" "} + {info && info.releaseDate}, {info && info.status}
diff --git a/src/app/kdrama/[id]/page.jsx b/src/app/kdrama/[id]/page.jsx index 69a42c2..f6926c2 100644 --- a/src/app/kdrama/[id]/page.jsx +++ b/src/app/kdrama/[id]/page.jsx @@ -3,6 +3,8 @@ import Image from "next/image"; import EpisodesButtons from "./buttons"; import { PreFetchVideoLinks } from "../components/cacher"; +export const runtime = "edge"; + export default async function DramaInfo({ params }) { const id = decodeURIComponent(params.id); const info = await getDramaInfo(id); 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/anime/[id]/buttons.jsx | 12 ++++----- src/app/anime/[id]/info.module.css | 16 +++--------- .../anime/history/continueWatching/cw.module.css | 2 -- src/app/anime/recent/recent.module.css | 2 -- src/app/anime/search/search.module.css | 2 -- src/app/anime/top-airing/trending.module.css | 2 -- src/app/kdrama/[id]/buttons.jsx | 19 ++++++-------- src/app/kdrama/styles/info.module.css | 20 ++++++--------- src/app/kdrama/styles/popular.module.css | 6 ++--- src/app/kdrama/styles/search.module.css | 6 ++--- src/app/layout.jsx | 6 +++-- 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 +-- 16 files changed, 73 insertions(+), 92 deletions(-) (limited to 'src') diff --git a/src/app/anime/[id]/buttons.jsx b/src/app/anime/[id]/buttons.jsx index 4f0aca4..9c297d2 100644 --- a/src/app/anime/[id]/buttons.jsx +++ b/src/app/anime/[id]/buttons.jsx @@ -4,12 +4,12 @@ import styles from "./info.module.css"; import { useState } from "react"; import { fetch_video_link } from "../videoLinkfetcher"; import { MediaPlayer, MediaProvider } from "@vidstack/react"; -import "@vidstack/react/player/styles/base.css"; -import "@vidstack/react/player/styles/plyr/theme.css"; +import "@vidstack/react/player/styles/default/theme.css"; +import "@vidstack/react/player/styles/default/layouts/video.css"; import { - PlyrLayout, - plyrLayoutIcons, -} from "@vidstack/react/player/layouts/plyr"; + defaultLayoutIcons, + DefaultVideoLayout, +} from "@vidstack/react/player/layouts/default"; import { storeLocal } from "../history/storeData"; export default function Button({ data2: info }) { @@ -91,7 +91,7 @@ export default function Button({ data2: info }) { volume={0.8} >