Fixing nextjs linting shenanigans, fixed datetime, remove random Ad.patreon remove logs

This commit is contained in:
2025-01-12 05:33:43 -05:00
parent 49c5f87610
commit 522bf5ab56
7 changed files with 12 additions and 15 deletions

View File

@@ -32,7 +32,6 @@ export async function fetchFromAPI<T>(
throw new Error(errorData.message || `API fetch error (status: ${response.status})`);
}
const responseJson = await response.json();
console.log(responseJson)
return responseJson;
} catch (error) {
console.error("Fetch error:", error);

View File

@@ -5,7 +5,7 @@ export interface Chapter {
number: number;
title: string;
editor?: Editor;
release_date: string;
release_datetime: string;
content: string;
book?: Book;
}
@@ -58,7 +58,7 @@ export interface Book {
raw_author: string;
cover: Media[] | null;
description: string;
release_date: string;
release_datetime: string;
chapters: Chapter[];
glossary: Glossary;
}

View File

@@ -3,5 +3,8 @@ export function formatDateToMonthDayYear(date: Date): string {
month: "long",
day: "numeric",
year: "numeric",
hour: "numeric",
minute: "numeric",
timeZoneName: "short",
});
}