From 297707b677acad1172803397377e7ebc2713aeb4 Mon Sep 17 00:00:00 2001 From: stinejs Date: Thu, 1 Oct 2026 14:10:21 +0200 Subject: [PATCH] mockup data showing the type of data we are planning on using (Closes #5) --- src/mock/albums.json | 45 ++++++++++++++++++++++++++++++++++++++++++++ src/types/albums.ts | 18 ++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 src/mock/albums.json create mode 100644 src/types/albums.ts diff --git a/src/mock/albums.json b/src/mock/albums.json new file mode 100644 index 0000000..c5e1ee6 --- /dev/null +++ b/src/mock/albums.json @@ -0,0 +1,45 @@ +[ + { + "id": "album-1", + "title": "In Rainbows", + "artist": "Radiohead", + "releaseYear": 2007, + "genre": "Rock", + "coverUrl": "link", + "audioUrl": "link", + "isFavorite": false, + "tracks": [ + { "title": "15 Step", "duration": "3:57" }, + { "title": "Bodysnatcher", "duration": "4:01" }, + { "title": "Nude", "duration": "4:15" } + ] + }, + { + "id": "album-2", + "title": "Number Ones", + "artist": "Michael Jackson", + "releaseYear": 2002, + "genre": "Pop", + "coverUrl": "link", + "audioUrl": "link", + "isFavorite": false, + "tracks": [ + { "title": "Billie Jean", "duration": "4:53" }, + { "title": "Beat It", "duration": "4:19" } + ] + }, + { + "id": "album-3", + "title": "9 To 5 And Odd Jobs", + "artist": "Dolly Parton", + "releaseYear": 1980, + "genre": "Country", + "coverUrl": "link", + "audioUrl": "link", + "isFavorite": false, + "tracks": [ + { "title": "9 to 5", "duration": "2:46" }, + { "title": "Hush-A-Bye Hard Times", "duration": "3:50" } + ] + } +] \ No newline at end of file diff --git a/src/types/albums.ts b/src/types/albums.ts new file mode 100644 index 0000000..81c49ce --- /dev/null +++ b/src/types/albums.ts @@ -0,0 +1,18 @@ +// src/types/album.ts + +export interface Track { + title: string; + duration: string; +} + +export interface Album { + id: string; + title: string; + artist: string; + releaseYear: number; + genre: string; + coverUrl: string; + audioUrl: string; + isFavorite: boolean; + tracks: Track[]; +} \ No newline at end of file