mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 04:23:01 +00:00
add the albumhash prop to the fallback track object
- plus other tiny changes
This commit is contained in:
committed by
Mungai Geoffrey
parent
6fbf179f34
commit
40fcbfd576
@@ -2,56 +2,12 @@ import { Track, AlbumInfo, Artist } from "./../interfaces";
|
||||
import { ref } from "@vue/reactivity";
|
||||
import { reactive } from "vue";
|
||||
|
||||
const search_query = ref("");
|
||||
|
||||
const queue = ref(
|
||||
Array<Track>({
|
||||
title: "Nothing played yet",
|
||||
artists: ["... blah blah blah"],
|
||||
image: "http://127.0.0.1:8900/images/thumbnails/4.webp",
|
||||
trackid: "",
|
||||
})
|
||||
);
|
||||
|
||||
const folder_song_list = ref([]);
|
||||
const folder_list = ref([]);
|
||||
|
||||
const current = ref(<Track>{
|
||||
title: "Nothing played yet",
|
||||
artists: ["... blah blah blah"],
|
||||
image: "http://127.0.0.1:8900/images/thumbnails/4.webp",
|
||||
trackid: "",
|
||||
});
|
||||
|
||||
const prev = ref(<Track>{
|
||||
title: "Nothing played yet",
|
||||
artists: ["... blah blah blah"],
|
||||
image: "http://127.0.0.1:8900/images/thumbnails/4.webp",
|
||||
trackid: "",
|
||||
});
|
||||
|
||||
const album = reactive({
|
||||
tracklist: Array<Track>(),
|
||||
info: <AlbumInfo>{},
|
||||
artists: Array<Artist>(),
|
||||
bio: "",
|
||||
});
|
||||
|
||||
const loading = ref(false);
|
||||
const is_playing = ref(false);
|
||||
const settings = reactive({
|
||||
uri: "http://127.0.0.1:9876",
|
||||
});
|
||||
|
||||
export default {
|
||||
search_query,
|
||||
queue,
|
||||
folder_song_list,
|
||||
folder_list,
|
||||
current,
|
||||
prev,
|
||||
loading,
|
||||
is_playing,
|
||||
album,
|
||||
settings,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user