remove pagination

This commit is contained in:
geoffrey45
2021-12-26 16:42:20 +03:00
parent 26ab354a1d
commit c5670e0f5f
19 changed files with 117 additions and 129 deletions
+3 -8
View File
@@ -2,18 +2,13 @@ import { ref } from "@vue/reactivity";
let folders_uri = "http://127.0.0.1:9876";
const getData = async (path, last_id) => {
const getData = async (path) => {
let url;
const songs = ref(null);
const folders = ref(null);
const encoded_path = encodeURIComponent(path.replaceAll("/", "|"));
if (last_id) {
url = `${folders_uri}/f/${encoded_path}::${last_id}`;
} else {
url = url = `${folders_uri}/f/${encoded_path}::None`;
}
const encoded_path = encodeURIComponent(path.replaceAll("/", "|"));
url = url = `${folders_uri}/f/${encoded_path}`;
const res = await fetch(url);
+2 -2
View File
@@ -21,7 +21,7 @@ const playAudio = (path) => {
};
audio.ontimeupdate = () => {
pos.value = (audio.currentTime / audio.duration) * 100;
pos.value = (audio.currentTime / audio.duration) * 1000;
};
audio.addEventListener("ended", () => {
@@ -41,7 +41,7 @@ function playPrev() {
function seek(pos) {
console.log(pos);
audio.currentTime = (pos / 100) * audio.duration;
audio.currentTime = (pos / 1000) * audio.duration;
}
function playPause() {