diff options
| author | Fuwn <[email protected]> | 2024-02-07 23:57:13 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-02-07 23:57:13 -0800 |
| commit | a4fdd8c757c56af521257fcee3b991cd0b220dd2 (patch) | |
| tree | 7ce56f24b58b83a386ff6abb4d73b09c4f146d9b /src | |
| parent | fix(badges): categories when none exist (diff) | |
| download | due.moe-a4fdd8c757c56af521257fcee3b991cd0b220dd2.tar.xz due.moe-a4fdd8c757c56af521257fcee3b991cd0b220dd2.zip | |
refactor(data): move static data to module
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/Data/Static/SampleMedia/anime.json (renamed from src/lib/Data/SampleMedia/anime.json) | 0 | ||||
| -rw-r--r-- | src/lib/Data/Static/SampleMedia/manga.json (renamed from src/lib/Data/SampleMedia/manga.json) | 0 | ||||
| -rw-r--r-- | src/lib/Data/Static/authorised.json (renamed from src/lib/Data/authorised.json) | 0 | ||||
| -rw-r--r-- | src/lib/Data/Static/crunchyroll.json (renamed from src/lib/Data/crunchyroll.json) | 0 | ||||
| -rw-r--r-- | src/lib/Data/Static/subtitles.json (renamed from src/lib/Data/subtitles.json) | 0 | ||||
| -rw-r--r-- | src/lib/Landing.svelte | 4 | ||||
| -rw-r--r-- | src/lib/List/Manga/MangaListTemplate.svelte | 2 | ||||
| -rw-r--r-- | src/lib/Schedule/Crunchyroll.svelte | 2 | ||||
| -rw-r--r-- | src/routes/+layout.svelte | 2 | ||||
| -rw-r--r-- | src/routes/user/[user]/+page.svelte | 2 |
10 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/Data/SampleMedia/anime.json b/src/lib/Data/Static/SampleMedia/anime.json index e602a648..e602a648 100644 --- a/src/lib/Data/SampleMedia/anime.json +++ b/src/lib/Data/Static/SampleMedia/anime.json diff --git a/src/lib/Data/SampleMedia/manga.json b/src/lib/Data/Static/SampleMedia/manga.json index bfac91c0..bfac91c0 100644 --- a/src/lib/Data/SampleMedia/manga.json +++ b/src/lib/Data/Static/SampleMedia/manga.json diff --git a/src/lib/Data/authorised.json b/src/lib/Data/Static/authorised.json index 94f6762b..94f6762b 100644 --- a/src/lib/Data/authorised.json +++ b/src/lib/Data/Static/authorised.json diff --git a/src/lib/Data/crunchyroll.json b/src/lib/Data/Static/crunchyroll.json index 85abc682..85abc682 100644 --- a/src/lib/Data/crunchyroll.json +++ b/src/lib/Data/Static/crunchyroll.json diff --git a/src/lib/Data/subtitles.json b/src/lib/Data/Static/subtitles.json index 8bb27612..8bb27612 100644 --- a/src/lib/Data/subtitles.json +++ b/src/lib/Data/Static/subtitles.json diff --git a/src/lib/Landing.svelte b/src/lib/Landing.svelte index 52648748..7d063ac3 100644 --- a/src/lib/Landing.svelte +++ b/src/lib/Landing.svelte @@ -1,8 +1,8 @@ <script lang="ts"> import locale from '$stores/locale'; import ListTitle from './List/ListTitle.svelte'; - import sampleManga from '$lib/Data/SampleMedia/manga.json'; - import sampleAnime from '$lib/Data/SampleMedia/anime.json'; + import sampleManga from '$lib/Data/Static/SampleMedia/manga.json'; + import sampleAnime from '$lib/Data/Static/SampleMedia/anime.json'; import MediaTitleDisplay from './List/MediaTitleDisplay.svelte'; import { outboundLink } from './Media/links'; import settings from '$stores/settings'; diff --git a/src/lib/List/Manga/MangaListTemplate.svelte b/src/lib/List/Manga/MangaListTemplate.svelte index d1bc2633..48abdc12 100644 --- a/src/lib/List/Manga/MangaListTemplate.svelte +++ b/src/lib/List/Manga/MangaListTemplate.svelte @@ -11,7 +11,7 @@ import ListTitle from '../ListTitle.svelte'; import Error from '$lib/Error/RateLimited.svelte'; import CleanMangaList from './CleanMangaList.svelte'; - import authorisedJson from '$lib/Data/authorised.json'; + import authorisedJson from '$lib/Data/Static/authorised.json'; import { incrementMediaProgress } from '$lib/Media/Anime/cache'; import { getNotificationsContext } from 'svelte-notifications'; import { options } from '$lib/Notification/options'; diff --git a/src/lib/Schedule/Crunchyroll.svelte b/src/lib/Schedule/Crunchyroll.svelte index 9b6b0509..0cfd0811 100644 --- a/src/lib/Schedule/Crunchyroll.svelte +++ b/src/lib/Schedule/Crunchyroll.svelte @@ -1,5 +1,5 @@ <script lang="ts"> - import crunchyroll from '$lib/Data/crunchyroll.json'; + import crunchyroll from '$lib/Data/Static/crunchyroll.json'; import './container.css'; interface CrunchyrollMedia<T = number | 'soon' | 'continuing'> { diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 4665173f..e6b2177e 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -22,7 +22,7 @@ import subsPlease from '$stores/subsPlease'; import Dropdown from '$lib/Dropdown.svelte'; import { injectSpeedInsights } from '@vercel/speed-insights/sveltekit'; - import subtitles from '$lib/Data/subtitles.json'; + import subtitles from '$lib/Data/Static/subtitles.json'; injectSpeedInsights(); diff --git a/src/routes/user/[user]/+page.svelte b/src/routes/user/[user]/+page.svelte index c743cf4b..cd2d367b 100644 --- a/src/routes/user/[user]/+page.svelte +++ b/src/routes/user/[user]/+page.svelte @@ -7,7 +7,7 @@ import root from '$lib/Utility/root.js'; import locale from '$stores/locale.js'; import { onMount } from 'svelte'; - import authorisedUsers from '$lib/Data/authorised.json'; + import authorisedUsers from '$lib/Data/Static/authorised.json'; import tooltip from '$lib/Tooltip/tooltip.js'; import AnimeRateLimited from '$lib/Error/AnimeRateLimited.svelte'; |