kimi.md v1.31: PDF-Lightbox Dokumentation
This commit is contained in:
@@ -189,6 +189,23 @@ tar -czf mp-dist.tar.gz -C dist .
|
||||
|
||||
## 8. Verlauf / offene Punkte
|
||||
|
||||
**Erledigt 04.10. (v1.31):** PDF-Lightbox für erzeugte/gespeicherte PDFs mit
|
||||
Druck-, E-Mail- und Download-Option. Server: dokumentMitDatei-Helper
|
||||
(Rechte/Dateiprüfung, basename gegen Pfad-Traversal) für download + NEU
|
||||
GET /api/documents/:id/preview (inline, Content-Type application/pdf) und
|
||||
POST /api/documents/:id/email (admin; Empfänger „an" oder automatisch Mieter
|
||||
der Wohnung, immer CC Verwaltung, HTML-Karte + PDF als base64-Anhang via
|
||||
mail.sendeMail). mail-server/api/server.py: Anhang-Support (attachment_b64/
|
||||
attachment_filename/attachment_mime, Limit ~20 MB, Outbox-tauglich) – Datei
|
||||
liegt BIND-MOUNTED in /opt/mp-mail/api/server.py, Deploy = pscp + docker
|
||||
restart mp-mail-api (KEIN Image-Rebuild). Achtung: wget im Container auf
|
||||
„localhost" → IPv6 refused, immer 127.0.0.1 verwenden; Port 8080 ist NICHT
|
||||
auf dem Host veröffentlicht. Frontend: src/components/PdfLightbox.tsx
|
||||
(iframe-Preview, iframe.contentWindow.print(), E-Mail-Formular), Store
|
||||
sendeDokumentEmail; eingebunden in Kosten.tsx AbrechnungDialog (Vorschau-
|
||||
Button, ergebnis speichert jetzt DocumentItem statt nur id) und Documents.tsx
|
||||
(Vorschau-Button je Zeile mit hasFile).
|
||||
|
||||
**Erledigt 04.10. (v1.30):** Wohnungsformular einspaltig (Analogie Haus-Formular
|
||||
v1.26): Abschnitte Zuordnung (Haus, Wohnungsnummer) / Ausstattung (Etage,
|
||||
Wohnfläche, Heizungsart) / Miete (Kalt-/Warmmiete) / Mieter (Name, Status),
|
||||
|
||||
Reference in New Issue
Block a user