From d3289530a09dc1cc34c752fe9df2e397629b58be Mon Sep 17 00:00:00 2001 From: SovereignX Date: Thu, 15 Oct 2026 20:01:28 +0200 Subject: [PATCH 1/4] correction du visuel de la page admin (WIP) --- src/main/webapp/WEB-INF/admin.jsp | 4 ++-- src/main/webapp/assets/css/admin-style.css | 23 +++++++++++----------- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/src/main/webapp/WEB-INF/admin.jsp b/src/main/webapp/WEB-INF/admin.jsp index 9281823..c5250f8 100644 --- a/src/main/webapp/WEB-INF/admin.jsp +++ b/src/main/webapp/WEB-INF/admin.jsp @@ -80,7 +80,7 @@
" method="post"> - +
" method="post" @@ -142,7 +142,7 @@ " method="post"> - +
" method="post" onsubmit="return confirm('Supprimer ce compte ? Son e-mail ne pourra plus être réutilisé.');"> diff --git a/src/main/webapp/assets/css/admin-style.css b/src/main/webapp/assets/css/admin-style.css index 8419aa1..1d91b6a 100644 --- a/src/main/webapp/assets/css/admin-style.css +++ b/src/main/webapp/assets/css/admin-style.css @@ -41,9 +41,9 @@ nav > img { height: 65px; object-fit: contain; flex-shrink: 0; - height: 190px; + height: 110px; position: relative; - top: 51px; + top: 20px; transform: rotate(20deg); filter: drop-shadow(3px 4px 2px rgba(250, 138, 41, 0.25)) @@ -486,11 +486,12 @@ footer p { align-items: center; justify-content: center; font-family: 'Permanent Marker', cursive; - font-size: 15px; + font-size: 16px; padding: 6px 16px; - border-radius: 30px; + border-radius: 6px; border: 2px solid transparent; - color: black; + color: white; + font-weight: bold; text-decoration: none; cursor: pointer; transition: all 0.3s ease; @@ -504,26 +505,26 @@ footer p { .smallBlue { background-color: #167ac6; border-color: #62c5ff; - box-shadow: 0 0 6px #62c5ff, 0 0 14px #3498db; + box-shadow: 0 0 6px #62c5ff, 0 0 8px #3498db; } .smallPink { background-color: #d9297d; border-color: #ff9ed0; - box-shadow: 0 0 6px #ff9ed0, 0 0 14px #e84393; + box-shadow: 0 0 6px #ff9ed0, 0 0 8px #e84393; } .smallYellow { background-color: #ffd500; border-color: #fff176; - box-shadow: 0 0 6px #ffeb3b, 0 0 14px #ffd500; + box-shadow: 0 0 6px #ffeb3b, 0 0 8px #ffd500; } -.smallLime { +/*.smallLime { background-color: #DBFA19; border-color: #efff85; - box-shadow: 0 0 6px #efff85, 0 0 14px #DBFA19; -} + box-shadow: 0 0 6px #efff85, 0 0 8px #DBFA19; +}*/ /* Le statut d'un utilisateur : user, admin, desactive ou supprime */ .badge { -- GitLab From 1d1692af0cec1df832c6f8a19fa7fe76204907d4 Mon Sep 17 00:00:00 2001 From: SovereignX Date: Thu, 15 Oct 2026 20:02:11 +0200 Subject: [PATCH 2/4] mini correctif sur la redirection --- src/main/java/servlet/ReportedCommentsServlet.java | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/main/java/servlet/ReportedCommentsServlet.java b/src/main/java/servlet/ReportedCommentsServlet.java index b4a9989..df902f9 100644 --- a/src/main/java/servlet/ReportedCommentsServlet.java +++ b/src/main/java/servlet/ReportedCommentsServlet.java @@ -24,7 +24,7 @@ public class ReportedCommentsServlet extends HttpServlet { // Restriction s'en occupe déjà, mais vaut mieux deux fois qu'une HttpSession session = req.getSession(false); if (session == null || session.getAttribute("sessionUser") == null) { - resp.sendRedirect(req.getContextPath() + "login"); + resp.sendRedirect(req.getContextPath() + "/login"); return; } @@ -48,7 +48,7 @@ public class ReportedCommentsServlet extends HttpServlet { Comment comment = commentDao.find(id); if (comment == null) { - resp.sendRedirect(req.getContextPath() + "home"); // si le commentaire n'existe pas + resp.sendRedirect(req.getContextPath() + "/home"); // si le commentaire n'existe pas return; } @@ -57,10 +57,4 @@ public class ReportedCommentsServlet extends HttpServlet { resp.sendRedirect(req.getContextPath() + "/video?id=" + comment.getPost().getId()); } - - @Override - protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - - } - } -- GitLab From a607e13432104c09a3f91ecc8dc68d635e1da05d Mon Sep 17 00:00:00 2001 From: SovereignX Date: Thu, 15 Oct 2026 20:03:02 +0200 Subject: [PATCH 3/4] =?UTF-8?q?correctif=20afin=20d'afficher=20l'auteur=20?= =?UTF-8?q?dans=20la=20page=20admin,=20pour=20les=20commentaires=20signal?= =?UTF-8?q?=C3=A9s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/dao/CommentDao.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/dao/CommentDao.java b/src/main/java/dao/CommentDao.java index ce7a573..0e00a2b 100644 --- a/src/main/java/dao/CommentDao.java +++ b/src/main/java/dao/CommentDao.java @@ -291,6 +291,7 @@ public class CommentDao extends Dao { author.setUsername(rs.getString("username")); author.setStatut((rs.getString("status_user"))); + comment.setAuthor(author); comments.add(comment); } } -- GitLab From 2fc26b2588fcb6f87c63659c44de6778ff89f507 Mon Sep 17 00:00:00 2001 From: SovereignX Date: Fri, 16 Oct 2026 08:54:18 +0200 Subject: [PATCH 4/4] modification de l'effet curseur et des boutons admin --- src/main/webapp/assets/css/admin-style.css | 6 +++--- src/main/webapp/assets/css/style.css | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/webapp/assets/css/admin-style.css b/src/main/webapp/assets/css/admin-style.css index 1d91b6a..0ac919d 100644 --- a/src/main/webapp/assets/css/admin-style.css +++ b/src/main/webapp/assets/css/admin-style.css @@ -490,7 +490,7 @@ footer p { padding: 6px 16px; border-radius: 6px; border: 2px solid transparent; - color: white; + color: black; font-weight: bold; text-decoration: none; cursor: pointer; @@ -515,9 +515,9 @@ footer p { } .smallYellow { - background-color: #ffd500; + background-color: #C6D81D; border-color: #fff176; - box-shadow: 0 0 6px #ffeb3b, 0 0 8px #ffd500; + box-shadow: 0 0 6px #ffeb3b, 0 0 8px #C6D81D; } /*.smallLime { diff --git a/src/main/webapp/assets/css/style.css b/src/main/webapp/assets/css/style.css index 6ba68c0..2205a6b 100644 --- a/src/main/webapp/assets/css/style.css +++ b/src/main/webapp/assets/css/style.css @@ -345,7 +345,7 @@ body { } a, button, input[type="submit"], input[type="button"] { - cursor: url('../img/cursor.png'), pointer; + cursor: pointer; } /*------------------- JSP REGISTER / LOGIN ------------ */ -- GitLab