From b1c3d9ef846017f0f8af06a9654b49d384b873a4 Mon Sep 17 00:00:00 2001 From: Hieuhuy Pham Date: Wed, 12 Mar 2025 14:16:08 -0400 Subject: [PATCH] Linkvertise try number 2 --- global.d.ts | 1 - src/app/early/page.tsx | 6 +++--- src/app/layout.tsx | 9 --------- src/lib/utils.tsx | 17 +++++++++++++++++ 4 files changed, 20 insertions(+), 13 deletions(-) diff --git a/global.d.ts b/global.d.ts index 28448d8..658d641 100644 --- a/global.d.ts +++ b/global.d.ts @@ -19,6 +19,5 @@ declare namespace NodeJS { enableServices: () => void; }; } - function linkvertise(id: number, options: { whitelist: string[]; blacklist: string[] }): void; } export {}; \ No newline at end of file diff --git a/src/app/early/page.tsx b/src/app/early/page.tsx index 33726dd..1a4d7f0 100644 --- a/src/app/early/page.tsx +++ b/src/app/early/page.tsx @@ -1,6 +1,6 @@ import { fetchEarlyRelease } from "@/lib/api"; import { Chapter } from "@/lib/types"; -import { encodeId } from "@/lib/utils"; +import { encodeId, linkvertise } from "@/lib/utils"; import { Ad } from "@/lib/types"; export type searchParams = Promise<{ bookId: string }>; @@ -67,7 +67,7 @@ export default async function BookPage({ searchParams }: { searchParams: searchP {early_chapter_from_params &&

@@ -87,7 +87,7 @@ export default async function BookPage({ searchParams }: { searchParams: searchP {early_chapters.map((chapter) => (
  • diff --git a/src/app/layout.tsx b/src/app/layout.tsx index c9da5e1..33faaa0 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -88,15 +88,6 @@ export default function RootLayout({ children }: { children: React.ReactNode }) }); }} /> -