refactor interfaces and references

This commit is contained in:
geoffrey45
2022-11-30 20:27:44 +03:00
committed by Mungai Njoroge
parent 4a49d48011
commit 6d8a9f880b
44 changed files with 195 additions and 171 deletions
+4 -3
View File
@@ -68,12 +68,13 @@ export default defineStore("album", {
this.info = album.info;
},
async fetchArtistAlbums() {
const albumartist = this.info.albumartist;
const cardWidth = 8 * 16;
const albumartists = this.info.albumartists;
const cardWidth = 10 * 16;
const visible_cards = Math.floor(content_width.value / cardWidth);
const albumartisthashes = albumartists.map((artist) => artist.hash);
this.albumArtists = await getAlbumsFromArtist(
albumartist,
albumartisthashes.join(),
visible_cards,
this.info.albumhash
);