mirror of
https://github.com/NoCrypt/migu.git
synced 2026-04-21 00:22:08 +00:00
fix: minor cosmetics
This commit is contained in:
parent
28707f6663
commit
1244ee7ba9
4 changed files with 22 additions and 17 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "Miru",
|
"name": "Miru",
|
||||||
"version": "3.1.15",
|
"version": "3.1.16",
|
||||||
"author": "ThaUnknown_ <ThaUnknown@users.noreply.github.com>",
|
"author": "ThaUnknown_ <ThaUnknown@users.noreply.github.com>",
|
||||||
"description": "Stream anime torrents, real-time with no waiting for downloads.",
|
"description": "Stream anime torrents, real-time with no waiting for downloads.",
|
||||||
"main": "src/index.js",
|
"main": "src/index.js",
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
<script>
|
<script>
|
||||||
import { countdown } from '@/modules/util.js'
|
import { countdown } from '@/modules/util.js'
|
||||||
import { getContext } from 'svelte'
|
import { getContext } from 'svelte'
|
||||||
export let cards = new Promise(() => {})
|
export let cards = new Promise(() => {})
|
||||||
const view = getContext('view')
|
const view = getContext('view')
|
||||||
function viewMedia (media) {
|
function viewMedia (media) {
|
||||||
$view = media
|
$view = media
|
||||||
}
|
}
|
||||||
export let length = 5
|
export let length = 5
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{#await cards}
|
{#await cards}
|
||||||
|
|
@ -70,9 +70,11 @@ export let length = 5
|
||||||
{#if card.media.status}
|
{#if card.media.status}
|
||||||
<span>{card.media.status?.toLowerCase().replace(/_/g, ' ')}</span>
|
<span>{card.media.status?.toLowerCase().replace(/_/g, ' ')}</span>
|
||||||
{/if}
|
{/if}
|
||||||
<span>
|
{#if card.media.season || card.media.seasonYear}
|
||||||
{[card.media.season?.toLowerCase(), card.media.seasonYear].filter(s => s).join(' ')}
|
<span>
|
||||||
</span>
|
{[card.media.season?.toLowerCase(), card.media.seasonYear].filter(s => s).join(' ')}
|
||||||
|
</span>
|
||||||
|
{/if}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div class='overflow-y-auto px-15 pb-5 bg-very-dark card-desc pre-wrap'>
|
<div class='overflow-y-auto px-15 pb-5 bg-very-dark card-desc pre-wrap'>
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,8 @@
|
||||||
COMPLETED: 'REPEATING',
|
COMPLETED: 'REPEATING',
|
||||||
PAUSED: 'CURRENT',
|
PAUSED: 'CURRENT',
|
||||||
REPEATING: 'CURRENT',
|
REPEATING: 'CURRENT',
|
||||||
DROPPED: 'PLANNING'
|
DROPPED: 'PLANNING',
|
||||||
|
PLANNING: 'remove'
|
||||||
}
|
}
|
||||||
async function toggleStatus () {
|
async function toggleStatus () {
|
||||||
if (media.mediaListEntry?.status !== 'PLANNING') {
|
if (media.mediaListEntry?.status !== 'PLANNING') {
|
||||||
|
|
|
||||||
|
|
@ -48,10 +48,12 @@
|
||||||
Rating: {media.averageScore + '%'}
|
Rating: {media.averageScore + '%'}
|
||||||
</span>
|
</span>
|
||||||
{/if}
|
{/if}
|
||||||
<span class='material-icons mx-10 font-size-24'> monitor </span>
|
{#if media.format}
|
||||||
<span class='mr-20 text-capitalize'>
|
<span class='material-icons mx-10 font-size-24'> monitor </span>
|
||||||
Format: {media.format === 'TV' ? media.format : media.format?.replace(/_/g, ' ').toLowerCase()}
|
<span class='mr-20 text-capitalize'>
|
||||||
</span>
|
Format: {media.format === 'TV' ? media.format : media.format?.replace(/_/g, ' ').toLowerCase()}
|
||||||
|
</span>
|
||||||
|
{/if}
|
||||||
{#if media.episodes !== 1 && getMediaMaxEp(media)}
|
{#if media.episodes !== 1 && getMediaMaxEp(media)}
|
||||||
<span class='material-icons mx-10 font-size-24'> theaters </span>
|
<span class='material-icons mx-10 font-size-24'> theaters </span>
|
||||||
<span class='mr-20'>
|
<span class='mr-20'>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue