Files
otunes/lib/data.ts
T

169 lines
7.6 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 type Song = {
id: string
title: string
artist: Artist
album: Pick<Album, "id" | "title" | "cover">
durationSeconds: number
explicit?: boolean
}
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()
)
export const songs: Song[] = [
{
id: "aaron-burr-sir",
title: "Aaron Burr, Sir",
artist: { id: "lin-manuel-miranda", name: "Lin-Manuel Miranda, Original Broadway Cast of Hamilton, Leslie Odom, Jr. & Original Broadway Cast of Hamilton", photo: null },
album: { id: "hamilton-obcr", title: "Hamilton (Original Broadway Cast Recording)", cover: null },
durationSeconds: 156,
},
{
id: "actually-romantic",
title: "Actually Romantic",
artist: { id: "taylor-swift", name: "Taylor Swift", photo: null },
album: { id: "the-life-of-a-showgirl", title: "The Life of a Showgirl", cover: null },
durationSeconds: 163,
explicit: true,
},
{
id: "adagio-in-g-major",
title: "Adagio in G Major",
artist: { id: "voces8-paul-van-nevel", name: "VOCES8, Paul Van Nevel & L'Arpeggiata", photo: null },
album: { id: "enchanted-isle", title: "Enchanted Isle", cover: null },
durationSeconds: 219,
},
{
id: "after-all",
title: "After All",
artist: { id: "ed-sheeran", name: "Ed Sheeran", photo: null },
album: { id: "play", title: "Play", cover: null },
durationSeconds: 210,
},
{
id: "afire-love",
title: "Afire Love",
artist: { id: "ed-sheeran", name: "Ed Sheeran", photo: null },
album: { id: "x", title: "x", cover: null },
durationSeconds: 314,
},
{
id: "again-lil-tecca",
title: "Again",
artist: { id: "lil-tecca", name: "Lil Tecca", photo: null },
album: { id: "we-love-you-tecca-2-deluxe", title: "We Love You Tecca 2 (Deluxe)", cover: null },
durationSeconds: 170,
},
{
id: "again-fetty-wap",
title: "Again (feat. XXXTENTACION)",
artist: { id: "fetty-wap", name: "Fetty Wap", photo: null },
album: { id: "again-feat-xxxtentacion", title: "Again (feat. XXXTENTACION) - Single", cover: null },
durationSeconds: 302,
},
{
id: "a-hard-days-night",
title: "A Hard Day's Night",
artist: { id: "the-beatles", name: "The Beatles", photo: null },
album: { id: "a-hard-days-night", title: "A Hard Day's Night", cover: null },
durationSeconds: 149,
},
{
id: "aint-no-sunshine",
title: "Ain't No Sunshine",
artist: { id: "bill-withers", name: "Bill Withers", photo: null },
album: { id: "just-as-i-am", title: "Just As I Am", cover: null },
durationSeconds: 124,
},
{
id: "airplanes-pt-ii",
title: "Airplanes, Pt. II (feat. Hayley Williams of Paramore)",
artist: { id: "b-o-b", name: "Hayley Williams, B.o.B & Eminem", photo: null },
album: { id: "bob-presents-adventures", title: "B.o.B Presents: The Adventures of Bobby Ray", cover: null },
durationSeconds: 319,
explicit: true,
},
{
id: "aja",
title: "Aja",
artist: { id: "ajr", name: "AJR", photo: null },
album: { id: "live-from-the-hollywood-bowl", title: "Live from the Hollywood Bowl", cover: null },
durationSeconds: 172,
},
{
id: "all-you-need-is-love",
title: "All You Need Is Love",
artist: { id: "the-beatles", name: "The Beatles", photo: null },
album: { id: "beatles-1", title: "1", cover: null },
durationSeconds: 228,
},
{
id: "ends-of-the-earth",
title: "Ends of the Earth",
artist: { id: "the-longest-johns", name: "The Longest Johns", photo: null },
album: { id: "ends-of-the-earth", title: "Ends of the Earth", cover: null },
durationSeconds: 245,
},
{
id: "the-parting-glass",
title: "The Parting Glass",
artist: { id: "the-ramparts", name: "The Ramparts", photo: null },
album: { id: "the-parting-glass-single", title: "The Parting Glass - Single", cover: null },
durationSeconds: 198,
},
{
id: "song-of-durin",
title: "Song of Durin",
artist: { id: "clamavi-de-profundis", name: "Clamavi De Profundis", photo: null },
album: { id: "song-of-durin-complete-edition", title: "Song of Durin (Complete Edition)", cover: null },
durationSeconds: 412,
},
{
id: "babysitter",
title: "Babysitter (feat. Ari Lennox)",
artist: { id: "j-cole", name: "J. Cole", photo: null },
album: { id: "the-fall-off", title: "The Fall-Off", cover: null },
durationSeconds: 267,
explicit: true,
},
]