added sharing to playlist menu, making vue based context menu WIP

This commit is contained in:
booploops 2022-01-13 01:42:40 -08:00
parent 5f24bf0259
commit a5a8a09d04
5 changed files with 192 additions and 0 deletions

View file

@ -291,6 +291,13 @@ const app = new Vue({
socialBadges: {
badgeMap: {},
version: ""
},
menuPanel: {
visible: false,
content: {
name: "",
items: {}
}
}
},
watch: {
@ -315,6 +322,11 @@ const app = new Vue({
},
},
methods: {
async showMenuPanel(data) {
app.menuPanel.visible = true;
app.menuPanel.content.name = data.name ?? "";
app.menuPanel.content.items = data.items ?? [];
},
async getSvgIcon(url) {
let response = await fetch(url);
let data = await response.text();
@ -357,6 +369,7 @@ const app = new Vue({
document.querySelector("body").classList.add("notransparency")
},
resetState() {
this.menuPanel.visible = false;
app.selectedMediaItems = [];
for (let key in app.modals) {
app.modals[key] = false;