Browse Source

STAGING

pull/8/head
astria 4 months ago
parent
commit
bce5936b70
  1. 183
      backend/logs/access.log
  2. 4
      frontend/src/pages/AddVideo.jsx
  3. 6
      frontend/src/pages/ManageChannel.jsx
  4. 12
      frontend/src/pages/ManageVideo.jsx

183
backend/logs/access.log

@ -9496,3 +9496,186 @@
[2025-08-25 16:38:49.379] [undefined] GET(/:id/channel): successfully retrieved channel of user 1 with status 200
[2025-08-25 16:38:49.382] [undefined] GET(/:id/history): successfully retrieved history of user 1 with status 200
[2025-08-25 16:38:49.422] [undefined] GET(/user/:id): Playlists retrieved for user with id 1 with status 200
[2025-08-25 16:39:23.469] [undefined] GET(/:id): try to get channel with id 1
[2025-08-25 16:39:23.483] [undefined] GET(/:id/stats): try to get stats
[2025-08-25 16:39:23.487] [undefined] GET(/:id): Successfully get channel with id 1 with status 200
[2025-08-25 16:39:23.495] [undefined] GET(/:id/stats): Successfully get stats with status 200
[2025-08-25 16:39:25.617] [undefined] GET(/see-later): 'See Later' playlist retrieved for user with id 1 with status 200
[2025-08-25 16:39:28.220] [undefined] GET(/:id/channel): try to retrieve channel of user 1
[2025-08-25 16:39:28.225] [undefined] GET(/:id/channel): successfully retrieved channel of user 1 with status 200
[2025-08-25 16:39:28.240] [undefined] GET(/:id/history): try to retrieve history of user 1
[2025-08-25 16:39:28.244] [undefined] GET(/:id/history): successfully retrieved history of user 1 with status 200
[2025-08-25 16:39:28.252] [undefined] GET(/user/:id): Playlists retrieved for user with id 1 with status 200
[2025-08-25 16:39:32.978] [undefined] GET(/:id): try to get channel with id 1
[2025-08-25 16:39:32.992] [undefined] GET(/:id/stats): try to get stats
[2025-08-25 16:39:32.996] [undefined] GET(/:id): Successfully get channel with id 1 with status 200
[2025-08-25 16:39:33.004] [undefined] GET(/:id/stats): Successfully get stats with status 200
[2025-08-25 16:39:45.904] [undefined] GET(/:id): try to get channel with id 1
[2025-08-25 16:39:45.917] [undefined] GET(/:id/stats): try to get stats
[2025-08-25 16:39:45.921] [undefined] GET(/:id): Successfully get channel with id 1 with status 200
[2025-08-25 16:39:45.929] [undefined] GET(/:id/stats): Successfully get stats with status 200
[2025-08-25 16:40:06.768] [undefined] GET(/:id): try to get channel with id 1
[2025-08-25 16:40:06.779] [undefined] GET(/:id/stats): try to get stats
[2025-08-25 16:40:06.784] [undefined] GET(/:id): Successfully get channel with id 1 with status 200
[2025-08-25 16:40:06.791] [undefined] GET(/:id/stats): Successfully get stats with status 200
[2025-08-25 16:40:13.557] [undefined] GET(/:id): try to get channel with id 1
[2025-08-25 16:40:13.567] [undefined] GET(/:id/stats): try to get stats
[2025-08-25 16:40:13.575] [undefined] GET(/:id): Successfully get channel with id 1 with status 200
[2025-08-25 16:40:13.584] [undefined] GET(/:id/stats): Successfully get stats with status 200
[2025-08-25 16:40:29.060] [undefined] GET(/:id/channel): try to retrieve channel of user 4
[2025-08-25 16:40:29.064] [undefined] GET(/:id/channel): successfully retrieved channel of user 4 with status 200
[2025-08-25 16:40:29.072] [undefined] GET(/:id/history): try to retrieve history of user 4
[2025-08-25 16:40:29.077] [undefined] GET(/:id/history): successfully retrieved history of user 4 with status 200
[2025-08-25 16:40:29.085] [undefined] GET(/user/:id): Playlists retrieved for user with id 4 with status 200
[2025-08-25 16:40:32.688] [undefined] GET(/:id): try to get channel with id 2
[2025-08-25 16:40:32.702] [undefined] GET(/:id/stats): try to get stats
[2025-08-25 16:40:32.708] [undefined] GET(/:id): Successfully get channel with id 2 with status 200
[2025-08-25 16:40:32.715] [undefined] GET(/:id/stats): Successfully get stats with status 200
[2025-08-25 16:41:27.451] [undefined] POST(/login): try to login with username 'astria'
[2025-08-25 16:41:27.507] [undefined] POST(/login): failed to login with status 401
[2025-08-25 16:41:37.435] [undefined] POST(/login): try to login with username 'astria'
[2025-08-25 16:41:37.492] [undefined] POST(/login): Successfully logged in with status 200
[2025-08-25 16:41:37.585] [undefined] GET(/see-later): 'See Later' playlist retrieved for user with id 1 with status 200
[2025-08-25 16:41:43.718] [undefined] GET(/:id/history): try to retrieve history of user 1
[2025-08-25 16:41:43.725] [undefined] GET(/:id/channel): try to retrieve channel of user 1
[2025-08-25 16:41:43.731] [undefined] GET(/:id/history): successfully retrieved history of user 1 with status 200
[2025-08-25 16:41:43.734] [undefined] GET(/:id/channel): successfully retrieved channel of user 1 with status 200
[2025-08-25 16:41:43.746] [undefined] GET(/user/:id): Playlists retrieved for user with id 1 with status 200
[2025-08-25 16:41:45.005] [undefined] GET(/:id): try to get channel with id 1
[2025-08-25 16:41:45.014] [undefined] GET(/:id/stats): try to get stats
[2025-08-25 16:41:45.019] [undefined] GET(/:id): Successfully get channel with id 1 with status 200
[2025-08-25 16:41:45.028] [undefined] GET(/:id/stats): Successfully get stats with status 200
[2025-08-25 16:41:46.835] [undefined] GET(/:id/channel): try to retrieve channel of user 1
[2025-08-25 16:41:46.839] [undefined] GET(/:id/channel): successfully retrieved channel of user 1 with status 200
[2025-08-25 16:42:36.602] [undefined] POST(/): try to upload video with status undefined
[2025-08-25 16:42:36.607] [undefined] POST(/): successfully uploaded video with status 200
[2025-08-25 16:42:36.679] [undefined] POST(/thumbnail): try to add thumbnail to video 3
[2025-08-25 16:42:36.682] [undefined] POST(/thumbnail): successfully uploaded thumbnail with status 200
[2025-08-25 16:42:36.712] [undefined] PUT(/:id/tags): try to add tags to video 3
[2025-08-25 16:42:36.722] [undefined] PUT(/:id/tags): successfully added tags to video 3 with status 200
[2025-08-25 16:42:41.695] [undefined] GET(/see-later): 'See Later' playlist retrieved for user with id 1 with status 200
[2025-08-25 16:42:43.533] [undefined] GET(/:id): try to get channel with id 1
[2025-08-25 16:42:43.544] [undefined] GET(/:id/stats): try to get stats
[2025-08-25 16:42:43.550] [undefined] GET(/:id): Successfully get channel with id 1 with status 200
[2025-08-25 16:42:43.561] [undefined] GET(/:id/stats): Successfully get stats with status 200
[2025-08-25 16:43:04.795] [undefined] GET(/:id): try to get channel with id 1
[2025-08-25 16:43:04.809] [undefined] GET(/:id/stats): try to get stats
[2025-08-25 16:43:04.814] [undefined] GET(/:id): Successfully get channel with id 1 with status 200
[2025-08-25 16:43:04.823] [undefined] GET(/:id/stats): Successfully get stats with status 200
[2025-08-25 16:43:10.183] [undefined] GET(/:id): try to get channel with id 1
[2025-08-25 16:43:10.194] [undefined] GET(/:id/stats): try to get stats
[2025-08-25 16:43:10.197] [undefined] GET(/:id): Successfully get channel with id 1 with status 200
[2025-08-25 16:43:10.207] [undefined] GET(/:id/stats): Successfully get stats with status 200
[2025-08-25 16:43:22.033] [undefined] GET(/:id): try to get channel with id 1
[2025-08-25 16:43:22.045] [undefined] GET(/:id/stats): try to get stats
[2025-08-25 16:43:22.050] [undefined] GET(/:id): Successfully get channel with id 1 with status 200
[2025-08-25 16:43:22.058] [undefined] GET(/:id/stats): Successfully get stats with status 200
[2025-08-25 16:44:17.503] [undefined] GET(/:id/channel): try to retrieve channel of user 1
[2025-08-25 16:44:17.509] [undefined] GET(/:id/channel): successfully retrieved channel of user 1 with status 200
[2025-08-25 16:45:35.382] [undefined] GET(/:id/channel): try to retrieve channel of user 1
[2025-08-25 16:45:35.389] [undefined] GET(/:id/channel): successfully retrieved channel of user 1 with status 200
[2025-08-25 16:45:54.242] [undefined] GET(/:id/channel): try to retrieve channel of user 1
[2025-08-25 16:45:54.246] [undefined] GET(/:id/channel): successfully retrieved channel of user 1 with status 200
[2025-08-25 16:47:17.367] [undefined] POST(/): try to upload video with status undefined
[2025-08-25 16:47:17.381] [undefined] POST(/): successfully uploaded video with status 200
[2025-08-25 16:47:17.512] [undefined] POST(/thumbnail): try to add thumbnail to video 4
[2025-08-25 16:47:17.528] [undefined] POST(/thumbnail): successfully uploaded thumbnail with status 200
[2025-08-25 16:47:17.570] [undefined] PUT(/:id/tags): try to add tags to video 4
[2025-08-25 16:47:17.583] [undefined] PUT(/:id/tags): successfully added tags to video 4 with status 200
[2025-08-25 16:47:21.242] [undefined] GET(/see-later): 'See Later' playlist retrieved for user with id 1 with status 200
[2025-08-25 16:47:32.449] [undefined] GET(/:id/channel): try to retrieve channel of user 1
[2025-08-25 16:47:32.453] [undefined] GET(/:id/channel): successfully retrieved channel of user 1 with status 200
[2025-08-25 16:47:32.467] [undefined] GET(/:id/history): try to retrieve history of user 1
[2025-08-25 16:47:32.477] [undefined] GET(/:id/history): successfully retrieved history of user 1 with status 200
[2025-08-25 16:47:32.487] [undefined] GET(/user/:id): Playlists retrieved for user with id 1 with status 200
[2025-08-25 16:47:34.033] [undefined] GET(/:id): try to get channel with id 1
[2025-08-25 16:47:34.040] [undefined] GET(/:id/stats): try to get stats
[2025-08-25 16:47:34.050] [undefined] GET(/:id): Successfully get channel with id 1 with status 200
[2025-08-25 16:47:34.056] [undefined] GET(/:id/stats): Successfully get stats with status 200
[2025-08-25 16:47:40.111] [undefined] GET(/:id/likes/day): try to get likes per day
[2025-08-25 16:47:40.130] [undefined] GET(/:id): try to get video 4
[2025-08-25 16:47:40.135] [undefined] GET(/:id/likes/day): successfully retrieved likes per day with status 200
[2025-08-25 16:47:40.144] [undefined] GET(/:id): successfully get video 4 with status 200
[2025-08-25 16:48:26.272] [undefined] GET(/:id): try to get video 4
[2025-08-25 16:48:26.290] [undefined] GET(/:id): successfully get video 4 with status 200
[2025-08-25 16:48:26.314] [undefined] GET(/:id/likes/day): try to get likes per day
[2025-08-25 16:48:26.322] [undefined] GET(/:id/likes/day): successfully retrieved likes per day with status 200
[2025-08-25 16:48:40.434] [undefined] GET(/:id/likes/day): try to get likes per day
[2025-08-25 16:48:40.450] [undefined] GET(/:id): try to get video 4
[2025-08-25 16:48:40.454] [undefined] GET(/:id/likes/day): successfully retrieved likes per day with status 200
[2025-08-25 16:48:40.466] [undefined] GET(/:id): successfully get video 4 with status 200
[2025-08-25 16:49:01.678] [undefined] GET(/:id): try to get video 4
[2025-08-25 16:49:01.691] [undefined] GET(/:id): successfully get video 4 with status 200
[2025-08-25 16:49:01.715] [undefined] GET(/:id/likes/day): try to get likes per day
[2025-08-25 16:49:01.726] [undefined] GET(/:id/likes/day): successfully retrieved likes per day with status 200
[2025-08-25 16:49:06.991] [undefined] GET(/see-later): 'See Later' playlist retrieved for user with id 1 with status 200
[2025-08-25 16:49:10.198] [undefined] GET(/:id): try to get video 4
[2025-08-25 16:49:10.201] [undefined] GET(/user/:id): Playlists retrieved for user with id 1 with status 200
[2025-08-25 16:49:10.217] [undefined] GET(/:id): successfully get video 4 with status 200
[2025-08-25 16:49:10.241] [undefined] GET(/:id/similar): try to get similar videos for video 4
[2025-08-25 16:49:10.251] [undefined] GET(/:id/similar): successfully get similar videos for video 4 with status 200
[2025-08-25 16:49:10.275] [undefined] GET(/:id/views): try to add views for video 4
[2025-08-25 16:49:10.286] [undefined] GET(/:id/views): successfully added views for video 4 with status 200
[2025-08-25 16:49:11.248] [undefined] GET(/:id/like): try to toggle like on video 4
[2025-08-25 16:49:11.267] [undefined] GET(/:id/like): no likes found adding likes for video 4 with status 200
[2025-08-25 16:49:12.722] [undefined] GET(/see-later): 'See Later' playlist retrieved for user with id 1 with status 200
[2025-08-25 16:49:17.282] [undefined] GET(/:id/channel): try to retrieve channel of user 1
[2025-08-25 16:49:17.286] [undefined] GET(/:id/channel): successfully retrieved channel of user 1 with status 200
[2025-08-25 16:49:17.299] [undefined] GET(/:id/history): try to retrieve history of user 1
[2025-08-25 16:49:17.303] [undefined] GET(/:id/history): successfully retrieved history of user 1 with status 200
[2025-08-25 16:49:17.310] [undefined] GET(/user/:id): Playlists retrieved for user with id 1 with status 200
[2025-08-25 16:49:19.130] [undefined] GET(/:id): try to get channel with id 1
[2025-08-25 16:49:19.138] [undefined] GET(/:id/stats): try to get stats
[2025-08-25 16:49:19.145] [undefined] GET(/:id): Successfully get channel with id 1 with status 200
[2025-08-25 16:49:19.151] [undefined] GET(/:id/stats): Successfully get stats with status 200
[2025-08-25 16:49:21.908] [undefined] GET(/:id/likes/day): try to get likes per day
[2025-08-25 16:49:21.921] [undefined] GET(/:id): try to get video 4
[2025-08-25 16:49:21.925] [undefined] GET(/:id/likes/day): successfully retrieved likes per day with status 200
[2025-08-25 16:49:21.933] [undefined] GET(/:id): successfully get video 4 with status 200
[2025-08-25 16:49:35.567] [undefined] GET(/:id/likes/day): try to get likes per day
[2025-08-25 16:49:35.580] [undefined] GET(/:id): try to get video 4
[2025-08-25 16:49:35.583] [undefined] GET(/:id/likes/day): successfully retrieved likes per day with status 200
[2025-08-25 16:49:35.591] [undefined] GET(/:id): successfully get video 4 with status 200
[2025-08-25 16:49:40.942] [undefined] GET(/:id/likes/day): try to get likes per day
[2025-08-25 16:49:40.960] [undefined] GET(/:id/likes/day): successfully retrieved likes per day with status 200
[2025-08-25 16:49:40.968] [undefined] GET(/:id): try to get video 4
[2025-08-25 16:49:40.985] [undefined] GET(/:id): successfully get video 4 with status 200
[2025-08-25 16:49:54.302] [undefined] GET(/:id/likes/day): try to get likes per day
[2025-08-25 16:49:54.315] [undefined] GET(/:id): try to get video 4
[2025-08-25 16:49:54.318] [undefined] GET(/:id/likes/day): successfully retrieved likes per day with status 200
[2025-08-25 16:49:54.328] [undefined] GET(/:id): successfully get video 4 with status 200
[2025-08-25 16:50:03.719] [undefined] GET(/:id/likes/day): try to get likes per day
[2025-08-25 16:50:03.726] [undefined] GET(/:id): try to get video 4
[2025-08-25 16:50:03.732] [undefined] GET(/:id/likes/day): successfully retrieved likes per day with status 200
[2025-08-25 16:50:03.740] [undefined] GET(/:id): successfully get video 4 with status 200
[2025-08-25 16:50:27.029] [undefined] GET(/:id/likes/day): try to get likes per day
[2025-08-25 16:50:27.042] [undefined] GET(/:id): try to get video 4
[2025-08-25 16:50:27.044] [undefined] GET(/:id/likes/day): successfully retrieved likes per day with status 200
[2025-08-25 16:50:27.053] [undefined] GET(/:id): successfully get video 4 with status 200
[2025-08-25 16:50:45.764] [undefined] GET(/:id): try to get channel with id 1
[2025-08-25 16:50:45.777] [undefined] GET(/:id/stats): try to get stats
[2025-08-25 16:50:45.782] [undefined] GET(/:id): Successfully get channel with id 1 with status 200
[2025-08-25 16:50:45.789] [undefined] GET(/:id/stats): Successfully get stats with status 200
[2025-08-25 16:50:46.889] [undefined] GET(/:id/channel): try to retrieve channel of user 1
[2025-08-25 16:50:46.893] [undefined] GET(/:id/channel): successfully retrieved channel of user 1 with status 200
[2025-08-25 16:50:49.653] [undefined] GET(/search): try to search user by username A
[2025-08-25 16:50:49.661] [undefined] GET(/search): successfully found user with username A with status 200
[2025-08-25 16:50:49.667] [undefined] GET(/search): try to search user by username As
[2025-08-25 16:50:49.674] [undefined] GET(/search): successfully found user with username As with status 200
[2025-08-25 16:50:49.822] [undefined] GET(/search): try to search user by username Ast
[2025-08-25 16:50:49.828] [undefined] GET(/search): successfully found user with username Ast with status 200
[2025-08-25 16:50:50.056] [undefined] GET(/search): try to search user by username Astr
[2025-08-25 16:50:50.061] [undefined] GET(/search): successfully found user with username Astr with status 200
[2025-08-25 16:50:50.249] [undefined] GET(/search): try to search user by username Astri
[2025-08-25 16:50:50.252] [undefined] GET(/search): successfully found user with username Astri with status 200
[2025-08-25 16:50:56.824] [undefined] GET(/:id): try to get channel with id 1
[2025-08-25 16:50:56.837] [undefined] GET(/:id/stats): try to get stats
[2025-08-25 16:50:56.842] [undefined] GET(/:id): Successfully get channel with id 1 with status 200
[2025-08-25 16:50:56.849] [undefined] GET(/:id/stats): Successfully get stats with status 200
[2025-08-25 16:50:57.946] [undefined] GET(/:id/likes/day): try to get likes per day
[2025-08-25 16:50:57.959] [undefined] GET(/:id): try to get video 4
[2025-08-25 16:50:57.963] [undefined] GET(/:id/likes/day): successfully retrieved likes per day with status 200
[2025-08-25 16:50:57.971] [undefined] GET(/:id): successfully get video 4 with status 200
[2025-08-25 16:58:58.430] [undefined] POST(/): failed due to invalid values with status 400
[2025-08-25 16:59:05.144] [undefined] POST(/): failed due to invalid values with status 400
[2025-08-25 17:09:10.630] [undefined] GET(/see-later): 'See Later' playlist retrieved for user with id 1 with status 200

4
frontend/src/pages/AddVideo.jsx

@ -147,7 +147,7 @@ export default function AddVideo() {
<div className="min-w-screen min-h-screen bg-linear-to-br from-left-gradient to-right-gradient">
<Navbar isSearchPage={false} alerts={alerts} onCloseAlert={onCloseAlert} />
<main className="px-36 pt-[118px]">
<main className="px-5 lg:px-36 pt-[118px]">
<h1 className="font-montserrat text-2xl font-black text-white">
Ajouter une vidéo
</h1>
@ -316,7 +316,7 @@ export default function AddVideo() {
</form>
{/* Right side: Preview of the video being added */}
<div className="flex-1 flex justify-center">
<div className="flex-1 hidden lg:flex justify-center">
<div className="glassmorphism p-4 rounded-lg">
<img
src={videoThumbnail ? URL.createObjectURL(videoThumbnail) : "https://placehold.co/1280x720"} alt={videoTitle}

6
frontend/src/pages/ManageChannel.jsx

@ -68,10 +68,10 @@ export default function ManageChannel() {
<div className="min-w-screen min-h-screen bg-linear-to-br from-left-gradient to-right-gradient">
<Navbar isSearchPage={false} alerts={alerts} onCloseAlert={onCloseAlert} />
<main className="pt-[118px] px-36 flex pb-10">
<main className="pt-[48px] lg:pt-[118px] px-5 lg:px-36 lg:flex pb-10">
{/* LEFT SIDE */}
<form className="glassmorphism w-1/3 py-10 px-4 h-max">
<form className="glassmorphism lg:w-1/3 py-10 px-4 h-max">
<img src={user.picture} className="w-1/3 aspect-square object-cover rounded-full mx-auto" alt=""/>
<label htmlFor="name" className={`text-2xl text-white mb-1 block font-montserrat ${editMode ? "block" : "hidden"} `}>
Nom de chaine
@ -131,7 +131,7 @@ export default function ManageChannel() {
</form>
{/* RIGHT SIDE */}
<div className="w-2/3 pl-10" >
<div className="lg:w-2/3 lg:pl-10 mt-4 lg:mt-0" >
{/* VIEW / SUBSCRIBERS STATS */}
<div className="flex gap-4" >

12
frontend/src/pages/ManageVideo.jsx

@ -203,25 +203,25 @@ export default function ManageVideo() {
<Navbar isSearchPage={false} alerts={alerts} onCloseAlert={onCloseAlert} />
<main className="px-36 pb-36">
<main className="px-5 lg:px-36 pb-36">
{ /* GRAPHS */ }
<div>
<div className="flex pt-[118px] gap-4" >
<div className="pt-[48px] lg:flex lg:pt-[118px] gap-4" >
<LinearGraph
dataToGraph={viewsPerDay}
legend="Vues"
className="glassmorphism flex-1 h-[300px] p-4"
className="glassmorphism flex-1 lg:h-[300px] p-4"
/>
<LinearGraph
dataToGraph={likesPerDay}
legend="Likes"
className="glassmorphism flex-1 h-[300px] p-4"
className="glassmorphism flex-1 mt-4 lg:mt-0 lg:h-[300px] p-4"
borderColor="#FF073A"
/>
</div>
<div className="flex gap-4 mt-4 ">
<div className="lg:flex gap-4 mt-4 ">
{ /* LEFT SIDE */ }
<div className="flex-1" >
@ -389,7 +389,7 @@ export default function ManageVideo() {
{ /* RIGHT SIDE */ }
<div className="flex-1">
<div className="flex-1 mt-4 lg:mt-0">
<div className="flex gap-4">
{ /* TOTAL VIEWS */ }

Loading…
Cancel
Save