remove folder banner

This commit is contained in:
geoffrey45
2022-09-12 21:37:44 +03:00
parent f5b6791d4b
commit 69b8b17e84
8 changed files with 24 additions and 99 deletions
+1
View File
@@ -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
View File
@@ -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() {
-16
View File
@@ -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;
}
}