Fixing Frontend build
Some checks failed
Music Collection CI Workflow / test (./backend) (push) Successful in 22s
Music Collection CI Workflow / test (./frontend) (push) Successful in 19s
Music Collection CI Workflow / build-and-push-images (./backend/Dockerfile, git.anatid.net/tabris/msuic-collection-backend, ./backend) (push) Successful in 49s
Music Collection CI Workflow / build-and-push-images (./frontend/Dockerfile, git.anatid.net/tabris/music-collection-frontend, ./frontend) (push) Failing after 53s
Music Collection CI Workflow / deploy (push) Has been skipped
Some checks failed
Music Collection CI Workflow / test (./backend) (push) Successful in 22s
Music Collection CI Workflow / test (./frontend) (push) Successful in 19s
Music Collection CI Workflow / build-and-push-images (./backend/Dockerfile, git.anatid.net/tabris/msuic-collection-backend, ./backend) (push) Successful in 49s
Music Collection CI Workflow / build-and-push-images (./frontend/Dockerfile, git.anatid.net/tabris/music-collection-frontend, ./frontend) (push) Failing after 53s
Music Collection CI Workflow / deploy (push) Has been skipped
This commit is contained in:
parent
81d1a46cce
commit
0a06e489e2
@ -1,9 +1,11 @@
|
||||
import { Album } from '@/common/album.entity';
|
||||
|
||||
export default async function Page() {
|
||||
const data = await fetch('https://api.anatid.net/album')
|
||||
const albums = await data.json()
|
||||
return (
|
||||
<ul>
|
||||
{albums.map((album: any) => (
|
||||
{albums.map((album: Album) => (
|
||||
<li key={album.id}>{album.title} by {album.artist} ({album.genre})</li>
|
||||
))}
|
||||
</ul>
|
||||
|
7
frontend/src/common/album.entity.tsx
Normal file
7
frontend/src/common/album.entity.tsx
Normal file
@ -0,0 +1,7 @@
|
||||
export interface Album {
|
||||
id: number;
|
||||
title: string;
|
||||
artist: string;
|
||||
genre: string;
|
||||
songs: string[];
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user