add the albumhash prop to the fallback track object

- plus other tiny changes
This commit is contained in:
geoffrey45
2022-07-05 14:22:00 +03:00
committed by Mungai Geoffrey
parent 6fbf179f34
commit 40fcbfd576
6 changed files with 18 additions and 59 deletions
+1 -1
View File
@@ -86,7 +86,7 @@ function showDropdown(e: any) {
.p-header {
display: grid;
grid-template-columns: 1fr;
height: 16rem;
height: 17rem;
position: relative;
border-radius: 0.75rem;
color: $white;
-44
View File
@@ -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,
};
+1
View File
@@ -40,6 +40,7 @@ function readCurrent(): number {
const defaultTrack = <Track>{
title: "Nothing played yet",
albumhash: " ",
artists: ["Alice"],
trackid: "",
image: "",