- Timestamp:
- 02/12/26 22:27:24 (5 months ago)
- Branches:
- main
- Children:
- 85512ff
- Parents:
- d85e8e3
- Location:
- frontend/src
- Files:
-
- 9 edited
-
components/MiniPlayer.tsx (modified) (3 diffs)
-
components/Sidebar.tsx (modified) (2 diffs)
-
components/SongItem.tsx (modified) (2 diffs)
-
components/search/AlbumResult.tsx (modified) (3 diffs)
-
components/userProfile/ArtistView.tsx (modified) (2 diffs)
-
components/userProfile/ListenerView.tsx (modified) (5 diffs)
-
pages/LandingPage.tsx (modified) (2 diffs)
-
pages/MusicalCollection.tsx (modified) (2 diffs)
-
pages/SongDetail.tsx (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
frontend/src/components/MiniPlayer.tsx
rd85e8e3 rf5bc95e 1 import { baseURL } from "../api/axiosInstance"; 1 2 import { usePlayer } from "../context/playerContext"; 2 3 … … 20 21 <div className="flex items-center gap-4"> 21 22 <img 22 src={currentSong.cover || "/favicon.png"} 23 src={ 24 currentSong.cover 25 ? `${baseURL}/${currentSong.cover}` 26 : "/favicon.png" 27 } 23 28 alt={currentSong.title} 24 29 className="w-12 h-12 rounded-lg object-cover shadow-lg" … … 110 115 <div className="flex items-center gap-3 min-w-0 flex-1"> 111 116 <img 112 src={currentSong.cover || "/favicon.png"} 117 src={ 118 currentSong.cover 119 ? `${baseURL}/${currentSong.cover}` 120 : "/favicon.png" 121 } 113 122 alt={currentSong.title} 114 123 className="w-10 h-10 rounded object-cover shrink-0" -
frontend/src/components/Sidebar.tsx
rd85e8e3 rf5bc95e 1 1 import { useEffect, useState } from "react"; 2 2 import { useNavigate } from "react-router-dom"; 3 import axiosInstance from "../api/axiosInstance";3 import axiosInstance, { baseURL } from "../api/axiosInstance"; 4 4 import { useAuth } from "../context/authContext"; 5 5 import { usePlayer } from "../context/playerContext"; … … 82 82 > 83 83 <img 84 src={song.cover ||"/favicon.png"}84 src={song.cover ? `${baseURL}/${song.cover}` : "/favicon.png"} 85 85 alt={song.title} 86 86 className="w-10 h-10 rounded object-cover" -
frontend/src/components/SongItem.tsx
rd85e8e3 rf5bc95e 1 1 import { useEffect, useRef, useState } from "react"; 2 2 import { useNavigate } from "react-router-dom"; 3 import { baseURL } from "../api/axiosInstance"; 3 4 import { usePlayer } from "../context/playerContext"; 4 5 import { toEmbedUrl } from "../utils/utils"; … … 94 95 {/* Cover */} 95 96 <img 96 src={song.cover ||"/favicon.png"}97 src={song.cover ? `${baseURL}/${song.cover}` : "/favicon.png"} 97 98 alt={song.title} 98 99 className="w-12 h-12 rounded object-cover shrink-0" -
frontend/src/components/search/AlbumResult.tsx
rd85e8e3 rf5bc95e 1 1 import { useNavigate } from "react-router-dom"; 2 import { baseURL } from "../../api/axiosInstance"; 2 3 import type { Album } from "../../utils/types"; 3 4 … … 15 16 > 16 17 <img 17 src={album.cover ||"/favicon.png"}18 src={album.cover ? `${baseURL}/${album.cover}` : "/favicon.png"} 18 19 alt={album.title} 19 20 className="w-12 h-12 rounded object-cover" … … 25 26 <p className="text-white font-medium truncate">{album.title}</p> 26 27 <p className="text-sm text-gray-400 truncate"> 27 Album • {album.releasedBy} • {album.songs?.length ?? 0} songs28 Album • {album.releasedBy} 28 29 </p> 29 30 </div> -
frontend/src/components/userProfile/ArtistView.tsx
rd85e8e3 rf5bc95e 3 3 import { useNavigate } from "react-router-dom"; 4 4 import { toast } from "react-toastify"; 5 import axiosInstance from "../../api/axiosInstance";5 import axiosInstance, { baseURL } from "../../api/axiosInstance"; 6 6 import type { ArtistContribution } from "../../utils/types"; 7 7 import SongItem from "../SongItem"; … … 65 65 <div className="relative aspect-square rounded-lg mb-3 overflow-hidden shadow-md group-hover:shadow-xl transition-all duration-300 bg-[#181818]"> 66 66 <img 67 src={album.cover || "/favicon.png"} 67 src={ 68 album.cover ? `${baseURL}/${album.cover}` : "/favicon.png" 69 } 68 70 alt={album.title} 69 71 className="w-full h-full object-cover" -
frontend/src/components/userProfile/ListenerView.tsx
rd85e8e3 rf5bc95e 3 3 import { useNavigate } from "react-router-dom"; 4 4 import { toast } from "react-toastify"; 5 import axiosInstance from "../../api/axiosInstance";5 import axiosInstance, { baseURL } from "../../api/axiosInstance"; 6 6 import type { MusicalEntity, Playlist } from "../../utils/types"; 7 7 import SongItem from "../SongItem"; … … 94 94 <div className="relative aspect-square rounded-lg overflow-hidden bg-[#181818] mb-3 shadow-md group-hover:shadow-xl transition-all"> 95 95 <img 96 src={playlist.cover || "/favicon.png"} 96 src={ 97 playlist.cover 98 ? `${baseURL}/${playlist.cover}` 99 : "/favicon.png" 100 } 97 101 alt={playlist.name} 98 102 className="w-full h-full object-cover" … … 147 151 <div className="relative aspect-square rounded-lg overflow-hidden bg-[#181818] mb-3 shadow-md group-hover:shadow-xl transition-all"> 148 152 <img 149 src={playlist.cover || "/favicon.png"} 153 src={ 154 playlist.cover 155 ? `${baseURL}/${playlist.cover}` 156 : "/favicon.png" 157 } 150 158 alt={playlist.name} 151 159 className="w-full h-full object-cover" … … 194 202 id: song.id, 195 203 title: song.title, 196 cover: song.cover, 204 cover: song.cover 205 ? `${baseURL}/${song.cover}` 206 : "/favicon.png", 197 207 genre: song.genre, 198 208 link: (song as any).link, … … 227 237 <div className="relative aspect-square rounded-lg overflow-hidden bg-[#181818] mb-3 shadow-md group-hover:shadow-xl transition-all"> 228 238 <img 229 src={album.cover || "/favicon.png"} 239 src={ 240 album.cover ? `${baseURL}/${album.cover}` : "/favicon.png" 241 } 230 242 alt={album.title} 231 243 className="w-full h-full object-cover" -
frontend/src/pages/LandingPage.tsx
rd85e8e3 rf5bc95e 1 1 import { useEffect, useRef, useState } from "react"; 2 2 import { useNavigate } from "react-router-dom"; 3 import axiosInstance from "../api/axiosInstance";3 import axiosInstance, { baseURL } from "../api/axiosInstance"; 4 4 import AlbumResult from "../components/search/AlbumResult"; 5 5 import SongResult from "../components/search/SongResult"; … … 337 337 <div className="relative w-full pt-[100%] overflow-hidden bg-[#181818]"> 338 338 <img 339 src={song.cover || "/favicon.png"} 339 src={ 340 song.cover 341 ? `${baseURL}/${song.cover}` 342 : "/favicon.png" 343 } 340 344 alt={song.title} 341 345 className="absolute top-0 left-0 w-full h-full object-cover" -
frontend/src/pages/MusicalCollection.tsx
rd85e8e3 rf5bc95e 1 1 import { useEffect, useState } from "react"; 2 2 import { Link, useParams } from "react-router-dom"; 3 import axiosInstance from "../api/axiosInstance";3 import axiosInstance, { baseURL } from "../api/axiosInstance"; 4 4 import SongItem from "../components/SongItem"; 5 5 import { handleError } from "../utils/error"; … … 161 161 <div className="relative w-full pt-[100%] rounded-xl overflow-hidden shadow-2xl bg-[#181818]"> 162 162 <img 163 src={collection.cover || "/favicon.png"} 163 src={ 164 collection.cover 165 ? `${baseURL}/${collection.cover}` 166 : "/favicon.png" 167 } 164 168 alt={collection.title} 165 169 className="absolute inset-0 w-full h-full object-cover" -
frontend/src/pages/SongDetail.tsx
rd85e8e3 rf5bc95e 2 2 import { Link, useParams } from "react-router-dom"; 3 3 import { toast } from "react-toastify"; 4 import axiosInstance from "../api/axiosInstance";4 import axiosInstance, { baseURL } from "../api/axiosInstance"; 5 5 import { useAuth } from "../context/authContext"; 6 6 import { usePlayer } from "../context/playerContext"; … … 216 216 <div className="relative w-full pt-[100%] rounded-xl overflow-hidden shadow-2xl bg-[#181818]"> 217 217 <img 218 src={song.cover ||"/favicon.png"}218 src={song.cover ? `${baseURL}/${song.cover}` : "/favicon.png"} 219 219 alt={song.title} 220 220 className="absolute inset-0 w-full h-full object-cover"
Note:
See TracChangeset
for help on using the changeset viewer.
