feat(ui): modern theme, dark/light toggle, polished templates

This commit is contained in:
2025-09-03 11:06:14 +03:00
commit 71c87979c0
16 changed files with 753 additions and 0 deletions

24
README.md Normal file
View File

@@ -0,0 +1,24 @@
Zammad Reports (Flask)
Quickstart
- Create and activate venv (optional).
- Install deps: pip install -r requirements.txt
- Configure env variables (recommended):
- ZAMMAD_URL=https://task.4mont.ru
- ZAMMAD_TOKEN=your_token_here
- Run: python app.py
Environment
- FLASK_SECRET_KEY: optional, for sessions/flash.
- ZAMMAD_URL: base URL of Zammad (e.g. https://task.4mont.ru).
- ZAMMAD_TOKEN: personal access token with API rights.
Features
- Totals: total, open vs closed.
- Grouping: by agent (owner), by group, by state, by priority.
- Trend: tickets per day in range.
- HTML charts (bar/line) with Chart.js + Bootstrap UI.
- JSON API: `/api/report.json` aggregates everything for the period.