aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-09-14 14:39:22 -0700
committerFuwn <[email protected]>2023-09-14 14:39:22 -0700
commit00095848c8c82b4db9a52f0e85ac29b0f991e99b (patch)
treedc9fe8ce3f4234077f0bb1b266b632a7450af5e4 /src
parentrefactor(manga): rename from mangadex (diff)
downloaddue.moe-00095848c8c82b4db9a52f0e85ac29b0f991e99b.tar.xz
due.moe-00095848c8c82b4db9a52f0e85ac29b0f991e99b.zip
refactor: move media to folder
Diffstat (limited to 'src')
-rw-r--r--src/lib/List/Due/AnimeList.svelte2
-rw-r--r--src/lib/List/Due/MangaList.svelte2
-rw-r--r--src/lib/List/UpcomingAnimeList.svelte2
-rw-r--r--src/lib/List/WatchingAnimeList.svelte2
-rw-r--r--src/lib/Media/anime.ts (renamed from src/lib/anime.ts)8
-rw-r--r--src/lib/Media/manga.ts (renamed from src/lib/manga.ts)4
6 files changed, 10 insertions, 10 deletions
diff --git a/src/lib/List/Due/AnimeList.svelte b/src/lib/List/Due/AnimeList.svelte
index b6d6f9ef..e6e36b39 100644
--- a/src/lib/List/Due/AnimeList.svelte
+++ b/src/lib/List/Due/AnimeList.svelte
@@ -7,7 +7,7 @@
import anime from '../../../stores/anime';
import settings from '../../../stores/settings';
import lastPruneTimes from '../../../stores/lastPruneTimes';
- import { airingTime, cleanCache, totalEpisodes, updateMedia } from '$lib/anime';
+ import { airingTime, cleanCache, totalEpisodes, updateMedia } from '$lib/Media/anime';
export let user: AniListAuthorisation;
export let identity: UserIdentity;
diff --git a/src/lib/List/Due/MangaList.svelte b/src/lib/List/Due/MangaList.svelte
index bc152e27..ad553639 100644
--- a/src/lib/List/Due/MangaList.svelte
+++ b/src/lib/List/Due/MangaList.svelte
@@ -2,7 +2,7 @@
import { mediaListCollection, Type, type Media } from '$lib/AniList/media';
import type { UserIdentity, AniListAuthorisation } from '$lib/AniList/identity';
import { onDestroy, onMount } from 'svelte';
- import { chapterCount } from '$lib/manga';
+ import { chapterCount } from '$lib/Media/manga';
import manga from '../../../stores/manga';
import { chapterDatabase } from '$lib/chapterDatabase';
import settings from '../../../stores/settings';
diff --git a/src/lib/List/UpcomingAnimeList.svelte b/src/lib/List/UpcomingAnimeList.svelte
index bb52b573..41ffcee3 100644
--- a/src/lib/List/UpcomingAnimeList.svelte
+++ b/src/lib/List/UpcomingAnimeList.svelte
@@ -7,7 +7,7 @@
import anime from '../../stores/anime';
import lastPruneTimes from '../../stores/lastPruneTimes';
import settings from '../../stores/settings';
- import { airingTime, cleanCache } from '$lib/anime';
+ import { airingTime, cleanCache } from '$lib/Media/anime';
export let user: AniListAuthorisation;
export let identity: UserIdentity;
diff --git a/src/lib/List/WatchingAnimeList.svelte b/src/lib/List/WatchingAnimeList.svelte
index 2c298488..f86ede7d 100644
--- a/src/lib/List/WatchingAnimeList.svelte
+++ b/src/lib/List/WatchingAnimeList.svelte
@@ -7,7 +7,7 @@
import anime from '../../stores/anime';
import lastPruneTimes from '../../stores/lastPruneTimes';
import settings from '../../stores/settings';
- import { cleanCache, totalEpisodes, updateMedia } from '$lib/anime';
+ import { cleanCache, totalEpisodes, updateMedia } from '$lib/Media/anime';
export let user: AniListAuthorisation;
export let identity: UserIdentity;
diff --git a/src/lib/anime.ts b/src/lib/Media/anime.ts
index aafc2560..0eed9121 100644
--- a/src/lib/anime.ts
+++ b/src/lib/Media/anime.ts
@@ -1,8 +1,8 @@
import { get } from 'svelte/store';
-import anime from '../stores/anime';
-import { mediaListCollection, type Media, Type } from './AniList/media';
-import lastPruneTimes from '../stores/lastPruneTimes';
-import type { AniListAuthorisation, UserIdentity } from './AniList/identity';
+import anime from '../../stores/anime';
+import { mediaListCollection, type Media, Type } from '../AniList/media';
+import lastPruneTimes from '../../stores/lastPruneTimes';
+import type { AniListAuthorisation, UserIdentity } from '../AniList/identity';
export const cleanCache = (user: AniListAuthorisation, identity: UserIdentity) => {
return mediaListCollection(
diff --git a/src/lib/manga.ts b/src/lib/Media/manga.ts
index 5c73aced..7150bf60 100644
--- a/src/lib/manga.ts
+++ b/src/lib/Media/manga.ts
@@ -1,6 +1,6 @@
import { recentMediaActivities, type Media } from '$lib/AniList/media';
-import type { UserIdentity } from './AniList/identity';
-import { chapterDatabase } from './chapterDatabase';
+import type { UserIdentity } from '../AniList/identity';
+import { chapterDatabase } from '../chapterDatabase';
export const chapterCount = async (
identity: UserIdentity,