From a73c713b9cfb7ed304e29ecc477890471a0859c2 Mon Sep 17 00:00:00 2001 From: Alexis Bruneteau Date: Fri, 7 Nov 2025 02:48:26 +0100 Subject: [PATCH] demo: Simplify active votes to 1 election for demo purposes --- .../app/dashboard/votes/active/[id]/page.tsx | 50 ++----------------- .../app/dashboard/votes/active/page.tsx | 41 +-------------- 2 files changed, 4 insertions(+), 87 deletions(-) diff --git a/e-voting-system/frontend/app/dashboard/votes/active/[id]/page.tsx b/e-voting-system/frontend/app/dashboard/votes/active/[id]/page.tsx index 6ef1b63..e71a701 100644 --- a/e-voting-system/frontend/app/dashboard/votes/active/[id]/page.tsx +++ b/e-voting-system/frontend/app/dashboard/votes/active/[id]/page.tsx @@ -27,56 +27,12 @@ export default function VoteDetailPage() { progress: 65, endDate: "2025-11-06T20:00:00", candidates: [ - { id: 1, name: "Alice Dupont", description: "Candidate A" }, - { id: 2, name: "Bob Martin", description: "Candidate B" }, - { id: 3, name: "Claire Laurent", description: "Candidate C" }, + { id: 1, name: "Alice Dupont", description: "Candidate progressive" }, + { id: 2, name: "Bob Martin", description: "Candidate centriste" }, + { id: 3, name: "Claire Laurent", description: "Candidate conservatrice" }, ], votes: 4521, }, - "2": { - id: 2, - name: "Référendum : Réforme Constitutionnelle", - description: "Consultez la population sur la nouvelle constitution", - category: "Nationale", - status: "En cours", - progress: 45, - endDate: "2025-11-08T18:00:00", - candidates: [ - { id: 1, name: "Oui", description: "Pour la réforme" }, - { id: 2, name: "Non", description: "Contre la réforme" }, - ], - votes: 2341, - }, - "3": { - id: 3, - name: "Election Municipale - Île-de-France", - description: "Élection locale régionale pour les positions municipales", - category: "Locale", - status: "En cours", - progress: 78, - endDate: "2025-11-10T17:00:00", - candidates: [ - { id: 1, name: "Liste A", description: "Équipe A" }, - { id: 2, name: "Liste B", description: "Équipe B" }, - { id: 3, name: "Liste C", description: "Équipe C" }, - ], - votes: 1234, - }, - "4": { - id: 4, - name: "Conseil Départemental", - description: "Élection des conseillers départementaux", - category: "Régionale", - status: "En cours", - progress: 52, - endDate: "2025-11-12T19:00:00", - candidates: [ - { id: 1, name: "Conseiller A", description: "Candidat 1" }, - { id: 2, name: "Conseiller B", description: "Candidat 2" }, - { id: 3, name: "Conseiller C", description: "Candidat 3" }, - ], - votes: 987, - }, } useEffect(() => { diff --git a/e-voting-system/frontend/app/dashboard/votes/active/page.tsx b/e-voting-system/frontend/app/dashboard/votes/active/page.tsx index 26d6ef3..69aaacc 100644 --- a/e-voting-system/frontend/app/dashboard/votes/active/page.tsx +++ b/e-voting-system/frontend/app/dashboard/votes/active/page.tsx @@ -18,39 +18,6 @@ export default function ActiveVotesPage() { candidates: 12, votes: 4521, }, - { - id: 2, - title: "Référendum : Réforme Constitutionnelle", - description: "Consultez la population sur la nouvelle constitution", - category: "Nationale", - status: "En cours", - progress: 45, - endDate: "8 Nov 2025 à 18:00", - candidates: 2, - votes: 2341, - }, - { - id: 3, - title: "Election Municipale - Île-de-France", - description: "Élection locale régionale pour les positions municipales", - category: "Locale", - status: "En cours", - progress: 78, - endDate: "10 Nov 2025 à 17:00", - candidates: 8, - votes: 1234, - }, - { - id: 4, - title: "Conseil Départemental", - description: "Élection des conseillers départementaux", - category: "Régionale", - status: "En cours", - progress: 52, - endDate: "12 Nov 2025 à 19:00", - candidates: 6, - votes: 987, - }, ] return ( @@ -69,13 +36,7 @@ export default function ActiveVotesPage() { Tous ({activeVotes.length}) - -