- Added Preferences tab
	- Piped Api Selection
	- Bug Fixes
This commit is contained in:
Shiny Nematoda 2022-05-15 09:51:06 +05:30
parent 19fc65e6c0
commit 0c1bb172b1
16 changed files with 384 additions and 216 deletions

View file

@ -12,34 +12,30 @@ import {
} from '../scripts/db.js';
const emit = defineEmits(['play-urls']),
list = ref([]),
list = ref([]),
show = ref(false),
text = ref(''),
Play = key => {
console.log(key);
Play = (key) => {
console.log(key);
useGetPlaylist(key, (res) => {
console.log(res);
emit('play-urls', res.urls);
});
},
List = () => {
useListPlaylists((res) => {
list.value = res;
});
},
Create = () => {
if (text.value) {
useCreatePlaylist(text.value, [], () => {
List();
show.value = false;
useGetPlaylist(key, res => {
console.log(res);
emit('play-urls', res.urls);
});
}
};
},
List = () => {
useListPlaylists(res => {
list.value = res;
});
},
Create = () => {
if (text.value) {
useCreatePlaylist(text.value, [], () => {
List();
show.value = false;
});
}
};
onMounted(() => {
List();
@ -53,7 +49,7 @@ onMounted(() => {
:display="show"
title="Create a new Playlist..."
@show="
(e) => {
e => {
show = e;
}
">