diff options
| -rw-r--r-- | src/lib/Media/Manga/chapters.ts | 2 | ||||
| -rw-r--r-- | src/lib/Media/Manga/time.ts | 1 | ||||
| -rw-r--r-- | src/lib/Tools/Wrapped.svelte | 2 | ||||
| -rw-r--r-- | src/routes/user/[user]/+page.svelte | 2 |
4 files changed, 3 insertions, 4 deletions
diff --git a/src/lib/Media/Manga/chapters.ts b/src/lib/Media/Manga/chapters.ts index 4e2971c9..a8ce1f91 100644 --- a/src/lib/Media/Manga/chapters.ts +++ b/src/lib/Media/Manga/chapters.ts @@ -103,5 +103,3 @@ export const chapterCount = async ( return Number(lastChapter); }; - -export const estimatedDayReading = (chapters: number) => chapters / 164; diff --git a/src/lib/Media/Manga/time.ts b/src/lib/Media/Manga/time.ts new file mode 100644 index 00000000..3c32b0f5 --- /dev/null +++ b/src/lib/Media/Manga/time.ts @@ -0,0 +1 @@ +export const estimatedDayReading = (chapters: number) => chapters / 164; diff --git a/src/lib/Tools/Wrapped.svelte b/src/lib/Tools/Wrapped.svelte index 41f904d9..ed8e700e 100644 --- a/src/lib/Tools/Wrapped.svelte +++ b/src/lib/Tools/Wrapped.svelte @@ -17,7 +17,7 @@ import { page } from '$app/stores'; import { clearAllParameters } from './tool.js'; import { env } from '$env/dynamic/public'; - import { estimatedDayReading } from '$lib/Media/Manga/chapters.js'; + import { estimatedDayReading } from '$lib/Media/Manga/time'; export let user: AniListAuthorisation; diff --git a/src/routes/user/[user]/+page.svelte b/src/routes/user/[user]/+page.svelte index e91259d0..71e6ba17 100644 --- a/src/routes/user/[user]/+page.svelte +++ b/src/routes/user/[user]/+page.svelte @@ -1,6 +1,6 @@ <script lang="ts"> import { user, type User } from '$lib/AniList/user'; - import { estimatedDayReading } from '$lib/Media/Manga/chapters.js'; + import { estimatedDayReading } from '$lib/Media/Manga/time'; import { onMount } from 'svelte'; export let data; |