client: move table items to a independent component

This commit is contained in:
geoffrey45
2022-01-11 01:36:04 +03:00
parent 17cbe14217
commit 521c195570
8 changed files with 138 additions and 99 deletions
+3 -1
View File
@@ -20,6 +20,8 @@ const playAudio = (path) => {
})
.then(() => {
audio.play();
perks.focusCurrent()
state.is_playing.value = true;
audio.ontimeupdate = () => {
@@ -41,7 +43,6 @@ function playPrev() {
}
function seek(pos) {
console.log(pos);
audio.currentTime = (pos / 1000) * audio.duration;
}
@@ -68,4 +69,5 @@ audio.addEventListener("pause", () => {
audio.addEventListener("ended", () => {
playNext();
});
export default { playAudio, playNext, playPrev, playPause, seek, pos, playing };