mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-05 13:03:02 +00:00
build artist page
+ connect artist page to backend ~ bugs introduced as there are hashing changes in the backend [will fix later]
This commit is contained in:
committed by
Mungai Njoroge
parent
fff2c53801
commit
075765088f
@@ -7,10 +7,10 @@ import { FuseTrackOptions } from "@/composables/enums";
|
||||
import { content_width } from "@/stores/content-width";
|
||||
|
||||
import {
|
||||
getAlbumsFromArtist,
|
||||
getAlbumTracks,
|
||||
getAlbumsFromArtist,
|
||||
getAlbumTracks
|
||||
} from "../../composables/fetch/album";
|
||||
import { AlbumInfo, Artist, FuseResult, Track } from "../../interfaces";
|
||||
import { Album, Artist, FuseResult, Track } from "../../interfaces";
|
||||
import { useNotifStore } from "../notification";
|
||||
|
||||
interface Disc {
|
||||
@@ -27,7 +27,7 @@ function sortByTrackNumber(tracks: Track[]) {
|
||||
});
|
||||
}
|
||||
|
||||
function albumHasNoDiscs(album: AlbumInfo) {
|
||||
function albumHasNoDiscs(album: Album) {
|
||||
if (album.is_single) return true;
|
||||
|
||||
return false;
|
||||
@@ -50,10 +50,10 @@ function createDiscs(tracks: Track[]) {
|
||||
export default defineStore("album", {
|
||||
state: () => ({
|
||||
query: "",
|
||||
info: <AlbumInfo>{},
|
||||
info: <Album>{},
|
||||
rawTracks: <Track[]>[],
|
||||
artists: <Artist[]>[],
|
||||
albumArtists: <{ artist: string; albums: AlbumInfo[] }[]>[],
|
||||
albumArtists: <{ artist: string; albums: Album[] }[]>[],
|
||||
bio: null,
|
||||
}),
|
||||
actions: {
|
||||
|
||||
Reference in New Issue
Block a user