From b40bf56c9795676c7725bf1e415a3168a8e8fdf6 Mon Sep 17 00:00:00 2001 From: h3r7 Date: Sat, 28 Feb 2026 08:53:48 +0100 Subject: [PATCH] =?UTF-8?q?v1.2=20-=20Dashboard=20with=20charts,=20Import/?= =?UTF-8?q?Export=20CSV,=2017=20d=C3=A9penses?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.py | 5 + config.json | 6 +- templates/dashboard.html | 358 +++++++++++++++++++++++++++++++++++++++ templates/index.html | 1 + 4 files changed, 368 insertions(+), 2 deletions(-) create mode 100644 templates/dashboard.html diff --git a/app.py b/app.py index 79224b0..86e9c6e 100644 --- a/app.py +++ b/app.py @@ -30,6 +30,11 @@ def index(): with open('/home/h3r7/depenses_trello/templates/index.html', 'r') as f: return f.read() +@app.route('/dashboard') +def dashboard(): + with open('/home/h3r7/depenses_trello/templates/dashboard.html', 'r') as f: + return f.read() + # API Config @app.route('/api/config') def get_config(): diff --git a/config.json b/config.json index a22a890..8e0df81 100644 --- a/config.json +++ b/config.json @@ -28,7 +28,7 @@ "id": 4, "prenom": "HERY", "date": "2026-02-24", - "IDL GAUFFlibelle": "LRIER", + "libelle": "LIDL GAUFFRIER", "montant": 24.98, "status": "Envoy\u00e9 \u2705" }, @@ -139,7 +139,9 @@ ], "format": "{prenom} - {date} - {libelle} - {montant}\u20ac", "prenoms": [ - "HERY" + "HERY", + "Papa", + "Maman" ], "trello": { "api_key": "0e86fa879fe9cc1bd5bff8a4b32bceff", diff --git a/templates/dashboard.html b/templates/dashboard.html new file mode 100644 index 0000000..53f009a --- /dev/null +++ b/templates/dashboard.html @@ -0,0 +1,358 @@ + + + + + + 💸 Dépenses - Dashboard + + + + + +

📊 Dashboard Dépenses

+ + + + +
+ + Février 2026 + +
+ + +
+
+
Total mois
+
0€
+
+
+
Moyenne/jour
+
0€
+
+
+
Nb dépenses
+
0
+
+
+
Budget restant
+
0€
+
+
+ + +
+

💰 Budget Mensuel (500€)

+
+
+
+
+
+ 0€ dépensés + 500€ restants +
+
+
+ + +
+
+

📈 Évolution quotidienne

+ +
+
+

👥 Par personne

+ +
+
+ + +
+

🏆 Top Dépenseurs

+
+
+ + +
+

💳 Dernières dépenses

+
+ + + + + + + + + + + +
DatePersonneLibelléMontantStatus
+
+
+ + +
+
+ +
+
+ + + + diff --git a/templates/index.html b/templates/index.html index ece38ea..062702f 100644 --- a/templates/index.html +++ b/templates/index.html @@ -48,6 +48,7 @@