From c5b52f4c1c8ef47fbd501f47dc748e108faeae19 Mon Sep 17 00:00:00 2001 From: Erik Thiele Date: Thu, 2 Jul 2026 17:12:10 +0200 Subject: [PATCH] README und AGENTS.md aktualisiert --- AGENTS.md | 16 ++++++++++------ README.md | 19 ++++++++++++++++--- 2 files changed, 26 insertions(+), 9 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 265c1db..8c290cf 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -2,13 +2,15 @@ ## Project structure -- `app.py` — Flask web app (ersetzt das fruehere Tkinter-GUI) -- `3dDruckKalkulator.py` — alte Tkinter-Version (nicht mehr verwenden) +- `app.py` — Flask web app - `templates/index.html` — Hauptseite mit Formular und Live-Ergebnissen - `templates/invoice.html` — Rechnungsseite mit PDF-Download +- `templates/settings.html` — Einstellungsseite (Druckerabschreibung, Arbeitskosten, Marge, MwSt., Firmendaten, Logo) - `static/style.css` — Light-/Dark-Mode-Theming - `static/script.js` — Live-Berechnung + Auto-Save beim Tippen -- `druckkalkulation_config.yaml` — auto-created/auto-saved state +- `druckkalkulation_config.yaml` — auto-created/auto-saved state (in .gitignore) +- `proxmox-setup.sh` — Proxmox LXC-Ersteinrichtung +- `proxmox-update.sh` — Proxmox LXC-Update - `.venv/` — virtual environment with all deps ## Setup @@ -38,7 +40,9 @@ Kein Test, Lint, Typecheck oder CI vorhanden. README.md und AGENTS.md enthalten | GET | `/invoice` | Rechnungsseite | | POST | `/invoice/pdf` | PDF-Download | | POST | `/export` | TXT-Download | -| GET | `/settings` | Einstellungsseite (Druckerabschreibung, Arbeitskosten, Marge) | +| GET | `/settings` | Einstellungsseite (Druckerabschreibung, Arbeitskosten, Marge, MwSt.) | +| POST | `/upload_logo` | Logo hochladen (PNG/JPEG/WebP) | +| POST | `/delete_logo` | Logo loschen | ## Config @@ -48,5 +52,5 @@ Kein Test, Lint, Typecheck oder CI vorhanden. README.md und AGENTS.md enthalten - `fpdf` kommt via `fpdf2`-Paket, Import ist `from fpdf import FPDF` (alte API). - **Saeamtliche UI-Texte sind Deutsch** — Labels, Fehlermeldungen, Rechnungsinhalte. -- Nur `.venv/` und `druckkalkulation_config.yaml` ignorieren (kein `.gitignore` vorhanden). -- `3dDruckKalkulator.py` ist die alte Tkinter-Version und wird nicht mehr verwendet. +- Nur `.venv/`, `druckkalkulation_config.yaml` und `static/logo.*` werden ignoriert. +- `3dDruckKalkulator.py` ist die alte Tkinter-Version und wird nicht mehr verwendet (nicht im Tracking). diff --git a/README.md b/README.md index e674daa..b4c446d 100644 --- a/README.md +++ b/README.md @@ -94,13 +94,26 @@ static/style.css # Minimales Custom-CSS static/script.js # Live-Berechnung + Auto-Save proxmox-setup.sh # Ersteinrichtung LXC-Container proxmox-update.sh # Update LXC-Container -druckkalkulation_config.yaml # Automatisch erstellte Konfiguration -3dDruckKalkulator.py # Alte Tkinter-Version (unused) +druckkalkulation_config.yaml # Automatisch erstellte Konfiguration (ignoriert) ``` +## Routen + +| Methode | Pfad | Beschreibung | +|---------|------|-------------| +| GET | `/` | Hauptseite mit Formular | +| POST | `/calculate` | JSON-Berechnung (AJAX) | +| POST | `/save_config` | Speichert Werte in YAML | +| GET | `/invoice` | Rechnungsseite | +| POST | `/invoice/pdf` | PDF-Download | +| POST | `/export` | TXT-Download | +| GET | `/settings` | Einstellungsseite | +| POST | `/upload_logo` | Logo hochladen | +| POST | `/delete_logo` | Logo loschen | + ## Hinweise - `fpdf2` wird als `fpdf` importiert (alte API, `from fpdf import FPDF`) - Alle UI-Texte sind Deutsch - Die YAML-Config wird automatisch erstellt und bei jedem Tastendruck gespeichert -- Die alte `3dDruckKalkulator.py` (Tkinter) wird nicht mehr verwendet +- `druckkalkulation_config.yaml` und `static/logo.*` sind in `.gitignore` ausgeschlossen