- Timestamp:
- 02/07/26 18:36:59 (5 months ago)
- Branches:
- main
- Children:
- 9c1dcc7
- Parents:
- dc30259
- Location:
- frontend/src
- Files:
-
- 1 added
- 2 edited
-
App.tsx (modified) (2 diffs)
-
pages/SongDetail.tsx (added)
-
utils/types.ts (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
frontend/src/App.tsx
rdc30259 r8a47b30 17 17 import Nav from "./pages/Nav"; 18 18 import Register from "./pages/Register"; 19 import SongDetail from "./pages/SongDetail"; 19 20 import UserDetail from "./pages/UserDetail"; 20 21 … … 99 100 }, 100 101 { 102 path: "/songs/:id", 103 element: <SongDetail />, 104 }, 105 { 101 106 path: "/collection/:type/:id", 102 107 element: <MusicalCollection />, -
frontend/src/utils/types.ts
rdc30259 r8a47b30 64 64 } 65 65 66 export interface SongContribution { 67 artistName: string; 68 role: string; 69 } 70 71 export interface SongReview { 72 id: { 73 listenerId: number; 74 musicalEntityId: number; 75 }; 76 author: string; 77 grade: number; 78 comment: string; 79 } 80 81 export interface SongDetail extends MusicalEntity { 82 type: "SONG"; 83 album?: string | null; 84 link?: string | null; 85 contributions: SongContribution[]; 86 reviews: SongReview[]; 87 } 88 66 89 export interface BasicSong { 67 90 id: number;
Note:
See TracChangeset
for help on using the changeset viewer.
