mirror of
https://github.com/NoCrypt/migu.git
synced 2026-05-13 05:20:57 +00:00
fix: non-torrent alternatives
This commit is contained in:
parent
fc6f88e59a
commit
7574b81923
1 changed files with 8 additions and 5 deletions
|
|
@ -12,7 +12,7 @@
|
||||||
import smoothScroll from '@/modules/scroll.js'
|
import smoothScroll from '@/modules/scroll.js'
|
||||||
import IPC from '@/modules/ipc.js'
|
import IPC from '@/modules/ipc.js'
|
||||||
import { alToken } from '@/modules/settings.js'
|
import { alToken } from '@/modules/settings.js'
|
||||||
import { Bookmark, Clapperboard, ExternalLink, Heart, Play, Share2, Timer, TrendingUp, Tv } from 'lucide-svelte'
|
import { Bookmark, Clapperboard, ExternalLink, Heart, LibraryBig, Play, Share2, Timer, TrendingUp, Tv } from 'lucide-svelte'
|
||||||
|
|
||||||
const view = getContext('view')
|
const view = getContext('view')
|
||||||
function close () {
|
function close () {
|
||||||
|
|
@ -134,16 +134,19 @@
|
||||||
{playButtonText}
|
{playButtonText}
|
||||||
</button>
|
</button>
|
||||||
<div class='mt-20 d-flex'>
|
<div class='mt-20 d-flex'>
|
||||||
<button class='btn bg-dark btn-lg btn-square d-flex align-items-center justify-content-center shadow-none border-0' use:click={toggleFavourite} disabled={!alToken}>
|
<button title="Favourite" class='btn bg-dark btn-lg btn-square d-flex align-items-center justify-content-center shadow-none border-0' use:click={toggleFavourite} disabled={!alToken}>
|
||||||
<Heart fill={media.isFavourite ? 'currentColor' : 'transparent'} size='1.7rem' />
|
<Heart fill={media.isFavourite ? 'currentColor' : 'transparent'} size='1.7rem' />
|
||||||
</button>
|
</button>
|
||||||
<button class='btn bg-dark btn-lg btn-square d-flex align-items-center justify-content-center shadow-none border-0 ml-10' use:click={toggleStatus} disabled={!alToken}>
|
<button title="Bookmark" class='btn bg-dark btn-lg btn-square d-flex align-items-center justify-content-center shadow-none border-0 ml-10' use:click={toggleStatus} disabled={!alToken}>
|
||||||
<Bookmark fill={media.mediaListEntry ? 'currentColor' : 'transparent'} size='1.7rem' />
|
<Bookmark fill={media.mediaListEntry ? 'currentColor' : 'transparent'} size='1.7rem' />
|
||||||
</button>
|
</button>
|
||||||
<button class='btn bg-dark btn-lg btn-square d-flex align-items-center justify-content-center shadow-none border-0 ml-10' use:click={() => copyToClipboard(`https://miguapp.pages.dev/anime/${media.id}`)}>
|
<button title="Share" class='btn bg-dark btn-lg btn-square d-flex align-items-center justify-content-center shadow-none border-0 ml-10' use:click={() => copyToClipboard(`https://miguapp.pages.dev/anime/${media.id}`)}>
|
||||||
<Share2 size='1.7rem' />
|
<Share2 size='1.7rem' />
|
||||||
</button>
|
</button>
|
||||||
<button class='btn bg-dark btn-lg btn-square d-flex align-items-center justify-content-center shadow-none border-0 ml-10' use:click={() => openInBrowser(`https://anilist.co/anime/${media.id}`)}>
|
<button title="Non-torrent alternatives" class='btn bg-dark btn-lg btn-square d-flex align-items-center justify-content-center shadow-none border-0 ml-10' use:click={() => openInBrowser(`https://kuroiru.co/anime/${media.idMal}#tab=stream`)}>
|
||||||
|
<LibraryBig size='1.7rem' />
|
||||||
|
</button>
|
||||||
|
<button title="Open AniList" class='btn bg-dark btn-lg btn-square d-flex align-items-center justify-content-center shadow-none border-0 ml-10' use:click={() => openInBrowser(`https://anilist.co/anime/${media.id}`)}>
|
||||||
<ExternalLink size='1.7rem' />
|
<ExternalLink size='1.7rem' />
|
||||||
</button>
|
</button>
|
||||||
<!-- <div class='input-group shadow-lg mb-5 font-size-16'>
|
<!-- <div class='input-group shadow-lg mb-5 font-size-16'>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue