fix: incorrect import path
This commit is contained in:
parent
d0c216fdaf
commit
fb36719aad
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "aquavox",
|
"name": "aquavox",
|
||||||
"version": "2.3.0",
|
"version": "2.3.1",
|
||||||
"private": false,
|
"private": false,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite dev",
|
"dev": "vite dev",
|
||||||
|
@ -3,10 +3,8 @@
|
|||||||
import createLyricsSearcher from '$lib/lyrics/lyricSearcher';
|
import createLyricsSearcher from '$lib/lyrics/lyricSearcher';
|
||||||
import progressBarRaw from '$lib/state/progressBarRaw';
|
import progressBarRaw from '$lib/state/progressBarRaw';
|
||||||
import type { LrcJsonData } from '$lib/lyrics/type';
|
import type { LrcJsonData } from '$lib/lyrics/type';
|
||||||
import progressBarSlideValue from '$lib/state/progressBarSlideValue';
|
|
||||||
import nextUpdate from '$lib/state/nextUpdate';
|
import nextUpdate from '$lib/state/nextUpdate';
|
||||||
import truncate from '$lib/truncate';
|
import truncate from '$lib/utils/truncate';
|
||||||
import { blur } from 'svelte/transition';
|
|
||||||
|
|
||||||
// Component input properties
|
// Component input properties
|
||||||
export let lyrics: string[];
|
export let lyrics: string[];
|
||||||
|
@ -4,15 +4,14 @@
|
|||||||
import Background from '$lib/components/background.svelte';
|
import Background from '$lib/components/background.svelte';
|
||||||
import Cover from '$lib/components/cover.svelte';
|
import Cover from '$lib/components/cover.svelte';
|
||||||
import InteractiveBox from '$lib/components/interactiveBox.svelte';
|
import InteractiveBox from '$lib/components/interactiveBox.svelte';
|
||||||
import Lyrics from '$lib/components/lyrics/lyrics.svelte';
|
import extractFileName from '$lib/utils/extractFileName';
|
||||||
import extractFileName from '$lib/extractFileName';
|
|
||||||
import localforage from 'localforage';
|
import localforage from 'localforage';
|
||||||
import { writable } from 'svelte/store';
|
import { writable } from 'svelte/store';
|
||||||
import lrcParser from '$lib/lyrics/lrc/parser';
|
import lrcParser from '$lib/lyrics/lrc/parser';
|
||||||
import type { LrcJsonData } from '$lib/lyrics/type';
|
import type { LrcJsonData } from '$lib/lyrics/type';
|
||||||
import userAdjustingProgress from '$lib/state/userAdjustingProgress';
|
import userAdjustingProgress from '$lib/state/userAdjustingProgress';
|
||||||
import type { IAudioMetadata } from 'music-metadata-browser';
|
import type { IAudioMetadata } from 'music-metadata-browser';
|
||||||
import { onDestroy, onMount } from 'svelte';
|
import { onMount } from 'svelte';
|
||||||
import progressBarRaw from '$lib/state/progressBarRaw';
|
import progressBarRaw from '$lib/state/progressBarRaw';
|
||||||
import { parseTTML, type LyricLine } from '$lib/lyrics/ttml';
|
import { parseTTML, type LyricLine } from '$lib/lyrics/ttml';
|
||||||
import NewLyrics from '$lib/components/lyrics/newLyrics.svelte';
|
import NewLyrics from '$lib/components/lyrics/newLyrics.svelte';
|
||||||
@ -28,9 +27,9 @@
|
|||||||
let paused: boolean = true;
|
let paused: boolean = true;
|
||||||
let launched = false;
|
let launched = false;
|
||||||
let prepared: string[] = [];
|
let prepared: string[] = [];
|
||||||
let lyricLines: LyricLine[];
|
let originalLyrics: LrcJsonData;
|
||||||
|
let lyricsText: string[] = [];
|
||||||
let hasLyrics: boolean;
|
let hasLyrics: boolean;
|
||||||
let lyricPlayer: LyricPlayer = new CoreLyricPlayer();
|
|
||||||
const coverPath = writable('');
|
const coverPath = writable('');
|
||||||
let mainInterval: ReturnType<typeof setInterval>;
|
let mainInterval: ReturnType<typeof setInterval>;
|
||||||
|
|
||||||
@ -151,7 +150,6 @@
|
|||||||
if (audioPlayer) {
|
if (audioPlayer) {
|
||||||
audioPlayer.currentTime = duration * progress;
|
audioPlayer.currentTime = duration * progress;
|
||||||
currentProgress = duration * progress;
|
currentProgress = duration * progress;
|
||||||
lyricPlayer.calcLayout(false, true);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -188,10 +186,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function onLyricLineClick(e: LyricLineMouseEvent) {
|
$: hasLyrics = !!originalLyrics;
|
||||||
lyricPlayer.resetScroll();
|
|
||||||
adjustProgress(lyricLines[e.lineIndex].startTime / 1000 / duration);
|
|
||||||
}
|
|
||||||
|
|
||||||
readDB();
|
readDB();
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
Reference in New Issue
Block a user