From a2ce0d81e87c42d447feb3ee401b20a91c1d9938 Mon Sep 17 00:00:00 2001 From: Maxime Dumont Date: Mon, 29 Jan 2024 09:43:44 +0100 Subject: [PATCH 1/2] rien --- backend/src/models/CategorieParFilmManager.js | 1 - 1 file changed, 1 deletion(-) diff --git a/backend/src/models/CategorieParFilmManager.js b/backend/src/models/CategorieParFilmManager.js index b6b56e7..0d0b7bb 100644 --- a/backend/src/models/CategorieParFilmManager.js +++ b/backend/src/models/CategorieParFilmManager.js @@ -96,7 +96,6 @@ class CategorieParFilmManager extends AbstractManager { return result; } // The D of CRUD - Delete operation - } // Ready to export the manager From 7f1ab3138c88f51be6050a09f0f02daa4c2b346e Mon Sep 17 00:00:00 2001 From: Maxime Dumont Date: Mon, 29 Jan 2024 16:17:56 +0100 Subject: [PATCH 2/2] homogeneisation en anglais --- backend/src/controllers/avatarControllers.js | 2 +- backend/src/controllers/filmControllers.js | 8 +++--- frontend/src/components/CommentsSection.jsx | 10 ++++---- frontend/src/components/ModalInscription.jsx | 4 +-- frontend/src/components/MovieDescription.jsx | 2 +- .../src/components/MovieLoginRequired.jsx | 2 +- frontend/src/components/NavBarDesktop.jsx | 6 ++--- frontend/src/pages/AddSection.jsx | 2 +- frontend/src/pages/AddVideos.jsx | 25 ++++++++++--------- frontend/src/pages/AjoutAdmin.jsx | 8 +++--- frontend/src/pages/Categories.jsx | 2 +- frontend/src/pages/Connection.jsx | 16 ++++++------ frontend/src/pages/EditSection.jsx | 4 +-- frontend/src/pages/EditVideo.jsx | 12 ++++----- frontend/src/pages/Inscription.jsx | 20 +++++++-------- frontend/src/pages/Movie.jsx | 2 +- frontend/src/pages/ParametreAdmin.jsx | 12 ++++----- frontend/src/pages/Search.jsx | 2 +- frontend/src/pages/UserProfil.jsx | 8 +++--- frontend/src/pages/UserProfileEditor.jsx | 12 ++++----- 20 files changed, 78 insertions(+), 81 deletions(-) diff --git a/backend/src/controllers/avatarControllers.js b/backend/src/controllers/avatarControllers.js index e8fdc61..5bea096 100644 --- a/backend/src/controllers/avatarControllers.js +++ b/backend/src/controllers/avatarControllers.js @@ -11,7 +11,7 @@ const browse = async (request, response, next) => { if (avatars) { response.status(200).json(avatars); } else { - response.status(404).json({ error: "Aucun avatar trouvé" }); + response.status(404).json({ error: "No avatar found" }); } } catch (error) { // Pass any errors to the error-handling middleware diff --git a/backend/src/controllers/filmControllers.js b/backend/src/controllers/filmControllers.js index a326ed0..4b4fd66 100644 --- a/backend/src/controllers/filmControllers.js +++ b/backend/src/controllers/filmControllers.js @@ -45,7 +45,7 @@ const add = async (req, res, next) => { req.body.miniature_filename = miniature; req.body.cover_filename = cover; } else { - res.status(403).send({ message: "Fichier manquant" }); + res.status(403).send({ message: "Missing file" }); } const film = req.body; @@ -81,12 +81,10 @@ const add = async (req, res, next) => { if (response) { res.status(200).json({ insertId }); } else { - res - .status(500) - .send({ message: "Erreur lors de l'insertion de la categorie" }); + res.status(500).send({ message: "Error inserting category" }); } } else { - res.status(500).send({ message: "Erreur lors de l'insertion du film" }); + res.status(500).send({ message: "Error inserting film" }); } } catch (err) { next(err); diff --git a/frontend/src/components/CommentsSection.jsx b/frontend/src/components/CommentsSection.jsx index 2ba857c..8af0f1e 100644 --- a/frontend/src/components/CommentsSection.jsx +++ b/frontend/src/components/CommentsSection.jsx @@ -126,11 +126,11 @@ function CommentsSection({ filmId }) { return (
-

Commentaires

+

Comments

{comments.length === 0 ? ( -

Soyez le premier à commenter ce film !

+

Be the first to comment on this movie !

) : ( comments.map((comment) => { const formattedDate = comment.date.slice(0, 19).replace("T", " "); @@ -243,11 +243,11 @@ function CommentsSection({ filmId }) { return (
-

Commentaires

+

Comments

{comments.length === 0 ? ( -

Connectez-vous pour laisser un commentaires.

+

Log in to leave a comment.

) : ( comments.map((comment) => { const formattedDate = comment.date.slice(0, 19).replace("T", " "); @@ -290,7 +290,7 @@ function CommentsSection({ filmId }) {