run checks
This commit is contained in:
@@ -47,14 +47,16 @@
|
|||||||
|
|
||||||
let hoveredIndex = $state<number | null>(null);
|
let hoveredIndex = $state<number | null>(null);
|
||||||
let cardEls: HTMLAnchorElement[] = [];
|
let cardEls: HTMLAnchorElement[] = [];
|
||||||
let tiltStyles: string[] = $state(Array(cards.length).fill(''));
|
let tiltStyles: string[] = $derived(Array(cards.length).fill(''));
|
||||||
let specularStyles: string[] = $state(Array(cards.length).fill(''));
|
let specularStyles: string[] = $derived(Array(cards.length).fill(''));
|
||||||
|
|
||||||
const tweenDuration = reducedMotion ? 0 : 1200;
|
const tweenDuration = reducedMotion ? 0 : 1200;
|
||||||
const counters: Tweened<number>[] = Array.from({ length: cards.length }, () =>
|
const counters: Tweened<number>[] = $derived.by(() =>
|
||||||
tweened(0, { duration: tweenDuration, easing: cubicOut })
|
Array.from({ length: cards.length }, () =>
|
||||||
|
tweened(0, { duration: tweenDuration, easing: cubicOut })
|
||||||
|
)
|
||||||
);
|
);
|
||||||
let counterValues: number[] = $state(Array(cards.length).fill(0));
|
let counterValues: number[] = $derived(Array(cards.length).fill(0));
|
||||||
|
|
||||||
$effect(() => {
|
$effect(() => {
|
||||||
const unsubs = counters.map((c, i) =>
|
const unsubs = counters.map((c, i) =>
|
||||||
|
|||||||
@@ -44,7 +44,6 @@ import { launchLocalPlayback } from '$lib/player/launchLocalPlayback';
|
|||||||
import { launchNavidromePlayback } from '$lib/player/launchNavidromePlayback';
|
import { launchNavidromePlayback } from '$lib/player/launchNavidromePlayback';
|
||||||
import { launchPlexPlayback } from '$lib/player/launchPlexPlayback';
|
import { launchPlexPlayback } from '$lib/player/launchPlexPlayback';
|
||||||
import { downloadFile } from '$lib/utils/downloadHelper';
|
import { downloadFile } from '$lib/utils/downloadHelper';
|
||||||
import { API } from '$lib/constants';
|
|
||||||
import type { MenuItem } from '$lib/components/ContextMenu.svelte';
|
import type { MenuItem } from '$lib/components/ContextMenu.svelte';
|
||||||
import {
|
import {
|
||||||
fetchAlbumBasic,
|
fetchAlbumBasic,
|
||||||
|
|||||||
Reference in New Issue
Block a user