42 lines
3.3 KiB
TypeScript
42 lines
3.3 KiB
TypeScript
export type Artist = {
|
|
id: string
|
|
name: string
|
|
photo: string | null
|
|
}
|
|
|
|
export type Album = {
|
|
id: string
|
|
title: string
|
|
artist: Artist
|
|
cover: string | null
|
|
}
|
|
|
|
export const albums: Album[] = [
|
|
{ id: "live-from-the-hollywood-bowl", title: "Live from the Hollywood Bowl", artist: { id: "ajr", name: "AJR", photo: null }, cover: null },
|
|
{ id: "ends-of-the-earth", title: "Ends of the Earth", artist: { id: "the-longest-johns", name: "The Longest Johns", photo: null }, cover: null },
|
|
{ id: "the-parting-glass-single", title: "The Parting Glass - Single", artist: { id: "the-ramparts", name: "The Ramparts", photo: null }, cover: null },
|
|
{ id: "fairytale-of-new-york-single", title: "Fairytale of New York - Single", artist: { id: "the-ramparts", name: "The Ramparts", photo: null }, cover: null },
|
|
{ id: "the-rocky-road-to-dublin-single", title: "The Rocky Road to Dublin - Single", artist: { id: "the-ramparts", name: "The Ramparts", photo: null }, cover: null },
|
|
{ id: "1778-ep", title: "1778 - EP", artist: { id: "the-wellermen", name: "The Wellermen", photo: null }, cover: null },
|
|
{ id: "the-high-kings", title: "The High Kings", artist: { id: "the-high-kings", name: "The High Kings", photo: null }, cover: null },
|
|
{ id: "the-fall-off", title: "The Fall-Off", artist: { id: "j-cole", name: "J. Cole", photo: null }, cover: null },
|
|
{ id: "enchanted-isle", title: "Enchanted Isle", artist: { id: "voces8", name: "VOCES8", photo: null }, cover: null },
|
|
{ id: "unknown-album", title: "Unknown Album", artist: { id: "unknown-artist", name: "Unknown Artist", photo: null }, cover: null },
|
|
{ id: "song-of-durin-complete-edition", title: "Song of Durin (Complete Edition)", artist: { id: "clamavi-de-profundis", name: "Clamavi De Profundis", photo: null }, cover: null },
|
|
{ id: "sid-meiers-civilization-v-soundtrack", title: "Sid Meier's Civilization V (Soundtrack)", artist: { id: "geoff-knorr-michael-curran", name: "Geoff Knorr & Michael Curran", photo: null }, cover: null },
|
|
{ id: "the-last-goodbye-single", title: "The Last Goodbye - Single", artist: { id: "seth-staton-watkins", name: "Seth Staton Watkins", photo: null }, cover: null },
|
|
{ id: "do-you-hear-the-people-sing-single", title: "Do You Hear the People Sing? - Single", artist: { id: "seth-staton-watkins-aaron-dolan", name: "Seth Staton Watkins & Aaron Dolan", photo: null }, cover: null },
|
|
{ id: "fiddlers-green-single", title: "Fiddler's Green - Single", artist: { id: "seth-staton-watkins", name: "Seth Staton Watkins", photo: null }, cover: null },
|
|
{ id: "the-orange-and-the-green-single", title: "The Orange and the Green - Single", artist: { id: "seth-staton-watkins", name: "Seth Staton Watkins", photo: null }, cover: null },
|
|
{ id: "horse-soldier-horse-soldier-single", title: "Horse Soldier, Horse Soldier - Single", artist: { id: "seth-staton-watkins", name: "Seth Staton Watkins", photo: null }, cover: null },
|
|
{ id: "my-mother-told-me-feat-3lake-single", title: "My Mother Told Me (feat. 3lake) - Single", artist: { id: "seth-staton-watkins", name: "Seth Staton Watkins", photo: null }, cover: null },
|
|
]
|
|
|
|
export const recentlyPlayed: Album[] = albums.slice(0, 9)
|
|
|
|
export const recentlyAdded: Album[] = albums.slice(10)
|
|
|
|
export const artists: Artist[] = Array.from(
|
|
new Map(albums.map((album) => [album.artist.id, album.artist])).values()
|
|
)
|