diff --git a/common/App.svelte b/common/App.svelte index 4052dab..7169cc3 100644 --- a/common/App.svelte +++ b/common/App.svelte @@ -3,6 +3,7 @@ import { writable } from 'simple-store-svelte' import { anilistClient } from '@/modules/anilist.js' import IPC from '@/modules/ipc.js' + import { rss } from './views/TorrentSearch/TorrentModal.svelte' export const page = writable('home') export const view = writable(null) @@ -37,6 +38,8 @@ if (!state) return ignoreNext = true view.set(null) + rss.set(null) + if (document.fullscreenElement) document.exitFullscreen() if (state.type === 'page') { page.set(state.value) } else { diff --git a/common/components/Navbar.svelte b/common/components/Navbar.svelte index fbea68a..ba0789f 100644 --- a/common/components/Navbar.svelte +++ b/common/components/Navbar.svelte @@ -4,6 +4,8 @@ import { click } from '@/modules/click.js' import IPC from '@/modules/ipc.js' import NavbarLink from './NavbarLink.svelte' + import { MagnifyingGlass } from 'svelte-radix' + import { Users, Clock, ListMusic, Settings, Heart } from 'lucide-svelte' const view = getContext('view') export let page function close () { @@ -15,13 +17,47 @@ + + diff --git a/common/components/NavbarLink.svelte b/common/components/NavbarLink.svelte index 7ec71c8..0327ecc 100644 --- a/common/components/NavbarLink.svelte +++ b/common/components/NavbarLink.svelte @@ -3,7 +3,6 @@ let _click = () => {} export { _click as click } - export let image = '' export let page export let _page = '' export let css = '' @@ -13,53 +12,20 @@ diff --git a/common/components/Search.svelte b/common/components/Search.svelte index 0dfd169..0855817 100644 --- a/common/components/Search.svelte +++ b/common/components/Search.svelte @@ -14,6 +14,8 @@ import { click } from '@/modules/click.js' import { page } from '@/App.svelte' import { toast } from 'svelte-sonner' + import { MagnifyingGlass, Image } from 'svelte-radix' + import { Type, Drama, Leaf, MonitorPlay, Tv, ArrowDownWideNarrow, Trash2, Tags, Grid3X3, Grid2X2 } from 'lucide-svelte' export let search let searchTextInput @@ -58,12 +60,12 @@
-
title
+ Title
- search +
-
theater_comedy
+ Genre
@@ -107,7 +109,7 @@
-
spa
+ Season
@@ -129,7 +131,7 @@
-
monitor
+ Format
@@ -145,7 +147,7 @@
-
live_tv
+ Status
@@ -160,7 +162,7 @@
-
sort
+ Sort
@@ -177,37 +179,34 @@
-
-
{#if sanitisedSearch?.length} - sell + {#each sanitisedSearch as badge} {('' + badge).replace(/_/g, ' ').toLowerCase()} {/each} {/if} - changeCardMode('small')}>grid_on - changeCardMode('full')}>grid_view + changeCardMode('small')}> + changeCardMode('full')}>
diff --git a/common/components/banner/FullBanner.svelte b/common/components/banner/FullBanner.svelte index abba439..541d718 100644 --- a/common/components/banner/FullBanner.svelte +++ b/common/components/banner/FullBanner.svelte @@ -3,6 +3,7 @@ import { anilistClient } from '@/modules/anilist.js' import { click } from '@/modules/click.js' import { alToken } from '@/modules/settings.js' + import { Bookmark, Heart } from 'lucide-svelte' export let mediaList let current = mediaList[0] @@ -93,11 +94,11 @@ use:click={() => playMedia(current)}> Watch Now - -
diff --git a/common/components/cards/EpisodeCard.svelte b/common/components/cards/EpisodeCard.svelte index 8541693..730df3a 100644 --- a/common/components/cards/EpisodeCard.svelte +++ b/common/components/cards/EpisodeCard.svelte @@ -6,6 +6,7 @@ import { getContext } from 'svelte' import { liveAnimeEpisodeProgress } from '@/modules/animeprogress.js' import { anilistClient } from '@/modules/anilist.js' + import { Play } from 'lucide-svelte' export let data let preview = false @@ -32,12 +33,7 @@
cover - {#if data.failed} -
- sync_problem -
- {/if} -
play_arrow
+
{#if media?.duration} {media.duration}m @@ -86,9 +82,6 @@ z-index: 30; /* fixes transform scaling on click causing z-index issues */ } - .material-symbols-outlined { - font-size: 3rem; - } .title { display: -webkit-box; -webkit-line-clamp: 1; diff --git a/common/components/cards/EpisodePreviewCard.svelte b/common/components/cards/EpisodePreviewCard.svelte index 0d6642c..c5c23c6 100644 --- a/common/components/cards/EpisodePreviewCard.svelte +++ b/common/components/cards/EpisodePreviewCard.svelte @@ -2,6 +2,7 @@ import { statusColorMap, formatMap } from '@/modules/anime.js' import { since } from '@/modules/util' import { liveAnimeEpisodeProgress } from '@/modules/animeprogress.js' + import { CalendarDays, Play, Tv } from 'lucide-svelte' export let data /** @type {import('@/modules/al.d.ts').Media | null} */ const media = data.media @@ -26,12 +27,7 @@ on:loadeddata={() => { hide = false }} autoplay /> {/if} - {#if data.failed} -
- sync_problem -
- {/if} -
play_arrow
+
{#if media?.duration} {media.duration}m @@ -78,13 +74,13 @@
{#if media}
-
- calendar_month - {media.seasonYear || 'N/A'} +
+ + {media.seasonYear || 'N/A'}
- {formatMap[media.format]} - monitor + {formatMap[media.format]} +
{/if} @@ -92,9 +88,6 @@
diff --git a/common/views/ViewAnime/Details.svelte b/common/views/ViewAnime/Details.svelte index c5bbcf2..135d21a 100644 --- a/common/views/ViewAnime/Details.svelte +++ b/common/views/ViewAnime/Details.svelte @@ -1,13 +1,15 @@ + -{#each episodeOrder ? episodeList : [...episodeList].reverse() as { episode, image, summary, rating, title, length, airdate }} +{#each episodeOrder ? episodeList : [...episodeList].reverse() as { episode, image, summary, rating, title, length, airdate, filler }} {@const completed = !watched && userProgress >= episode} {@const target = userProgress + 1 === episode} {@const progress = !watched && ($animeProgress?.[episode] ?? 0)}
-
play(episode)}> +
play(episode)}> {#if image}
thumbnail
{/if} + {#if filler} +
+ Filler +
+ {/if}
diff --git a/common/views/ViewAnime/Following.svelte b/common/views/ViewAnime/Following.svelte index 71ea349..248818a 100644 --- a/common/views/ViewAnime/Following.svelte +++ b/common/views/ViewAnime/Following.svelte @@ -2,6 +2,7 @@ import { anilistClient } from '@/modules/anilist.js' import { click } from '@/modules/click.js' import IPC from '@/modules/ipc.js' + import { ExternalLink } from 'lucide-svelte' /** @type {import('@/modules/al.d.ts').Media} */ export let media @@ -22,7 +23,9 @@ avatar {friend.user.name} {friend.status.toLowerCase()} - IPC.emit('open', 'https://anilist.co/user/' + friend.user.name)}> open_in_new + IPC.emit('open', 'https://anilist.co/user/' + friend.user.name)}> + +
{/each}
diff --git a/common/views/ViewAnime/ViewAnime copy.svelte b/common/views/ViewAnime/ViewAnime copy.svelte deleted file mode 100644 index 2b22161..0000000 --- a/common/views/ViewAnime/ViewAnime copy.svelte +++ /dev/null @@ -1,199 +0,0 @@ - - -