From 1f84b5bc09c8c6acf432137b2985726b26c698a3 Mon Sep 17 00:00:00 2001 From: maxime Date: Thu, 26 Mar 2026 14:47:53 +0100 Subject: [PATCH] =?UTF-8?q?mise=20=C3=A0=20jour=20par=20Greg?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- flask/templates/admin.html | 273 ++++++++++-------------------- flask/templates/dashboard.html | 296 +++++++++++++++++---------------- flask/templates/index.html | 246 +++++++++++---------------- flask/templates/log.html | 215 +++++++++--------------- 4 files changed, 418 insertions(+), 612 deletions(-) diff --git a/flask/templates/admin.html b/flask/templates/admin.html index 6e91f6b..2d061c6 100644 --- a/flask/templates/admin.html +++ b/flask/templates/admin.html @@ -3,33 +3,14 @@ - Admin — Loustiques - + Loustiques Home - Admin @@ -316,7 +237,7 @@
@@ -347,23 +266,23 @@
Créer un utilisateur
- +
- -
- +
- +
@@ -377,17 +296,7 @@
Comptes existants
-
-
-
MA
- - admin - -
-
+
@@ -408,7 +317,7 @@ function checkStrength(val) { if (/[A-Z]/.test(val)) score++; if (/[0-9]/.test(val)) score++; if (/[^A-Za-z0-9]/.test(val)) score++; - const colors = ['#ff5f57', '#ff9f0a', '#ffd60a', '#30d158']; + const colors = ['#f87171', '#fb923c', '#facc15', '#4ade80']; fill.style.width = (score * 25) + '%'; fill.style.background = colors[score - 1] || 'transparent'; } @@ -443,6 +352,7 @@ function createUser() { }) .catch(() => showToast('Erreur réseau', 'error')); } + function loadUsers() { fetch('/admin/get_users') .then(r => r.json()) @@ -454,7 +364,8 @@ function loadUsers() { }); } -loadUsers(); +loadUsers(); + function addUserRow(username, role) { const initials = username.slice(0, 2).toUpperCase(); const today = new Date().toLocaleDateString('fr-FR'); @@ -494,4 +405,4 @@ function deleteUser(btn, username) { - \ No newline at end of file + diff --git a/flask/templates/dashboard.html b/flask/templates/dashboard.html index 4b07254..3fac2e3 100644 --- a/flask/templates/dashboard.html +++ b/flask/templates/dashboard.html @@ -3,208 +3,214 @@ - Loustique Home — Dashboard - + Loustiques Home — Dashboard -
-
- +
Système actif
@@ -214,32 +220,32 @@
Tableau de bord
-

Bienvenue chez vous.

+

Bienvenue chez vous

Statut
-
En ligne
+
En ligne
Serveur opérationnel
Heure locale
-
--:--
+
--:--
--
Raspberry Pi
-
Actif
+
Actif
Flask 3.1
Session
-
Authentifiée
+
Authentifiée
Accès autorisé
@@ -262,7 +268,7 @@ État de la connexion -
- + \ No newline at end of file diff --git a/flask/templates/index.html b/flask/templates/index.html index 5e28981..4d679b7 100644 --- a/flask/templates/index.html +++ b/flask/templates/index.html @@ -3,177 +3,140 @@ - Connexion - + Loustiques Home - Connexion -
-
-
-
Authentification
-

Loustique Home

-

Connectez-vous pour accéder à votre espace.

+
+

Loustiques Home

+

Connectez-vous pour accéder à votre espace.

-
+
-
+
- +
-
- - - - -
+
- +
+ diff --git a/flask/templates/log.html b/flask/templates/log.html index 85d1f87..a71203e 100644 --- a/flask/templates/log.html +++ b/flask/templates/log.html @@ -3,33 +3,14 @@ - Logs — Loustiques - + Loustiques Home - Logs @@ -291,7 +228,7 @@