mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 20:43:04 +00:00
remove folder banner
This commit is contained in:
@@ -19,6 +19,7 @@ export default defineStore("FolderDirs&Tracks", {
|
||||
const { tracks, folders } = await fetchThem(path);
|
||||
|
||||
[this.path, this.allDirs, this.allTracks] = [path, folders, tracks];
|
||||
|
||||
},
|
||||
resetQuery() {
|
||||
this.query = "";
|
||||
|
||||
+10
-3
@@ -76,20 +76,27 @@ export default defineStore("Queue", {
|
||||
|
||||
if (this.currentindex !== this.tracklist.length - 1) {
|
||||
setTimeout(() => {
|
||||
if (!this.playing) return;
|
||||
this.playNext();
|
||||
}, 1000);
|
||||
}, 5000);
|
||||
}
|
||||
});
|
||||
},
|
||||
playPause() {
|
||||
if (audio.src === "") {
|
||||
this.play(this.currentindex);
|
||||
} else if (audio.paused) {
|
||||
}
|
||||
|
||||
if (audio.paused) {
|
||||
audio.play();
|
||||
this.playing = true;
|
||||
} else {
|
||||
audio.pause();
|
||||
}
|
||||
|
||||
if (this.playing) {
|
||||
this.playing = false;
|
||||
} else {
|
||||
this.playing = true;
|
||||
}
|
||||
},
|
||||
playNext() {
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
export function handlePlayPause(
|
||||
currentIndex: number,
|
||||
audio: HTMLAudioElement,
|
||||
state: boolean,
|
||||
play: (index: number) => void
|
||||
) {
|
||||
if (audio.src === "") {
|
||||
play(currentIndex);
|
||||
} else if (audio.paused) {
|
||||
audio.play();
|
||||
state = true;
|
||||
} else {
|
||||
audio.pause();
|
||||
state = false;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user