Cleanup: break up the massive app.py into separate modules of manageable size.

This commit is contained in:
LeoVasanko committed 2026-09-03 13:36:29 +00:00
1 parent 2f533eaf09
commit 4413c7efdf
24 files changed
+2496 -1947

No files matched your search

+4 -3
View File
@@ -8,9 +8,10 @@ directory, e.g. `localhost/analytics.json`).
- `pagerite/analytics.py` — data model (`Analytics`, `Client`, `Visit`,
`CrawlerHit`, `AbuseHit`, `Favicon`) and the `Store` (in-memory data + session map,
atomic JSON persistence).
- `pagerite/app.py` — entry-referer stashing in `show_page` (`_track_entry`),
the `/_ws` activity WebSocket, and `WebSocket /_api/ws/analytics`
(admin-gated like every `/_api` endpoint).
- `pagerite/pages.py` — entry-referer stashing in `show_page` (`_track_entry`,
in `pagerite/tracking.py`), 404 recording.
- `pagerite/tracking.py` — the `/_ws` activity WebSocket, and
`WebSocket /_api/ws/analytics` (admin-gated like every `/_api` endpoint).
- `frontend/src/pagerite.js` — the client activity channel and the 📊 pen.
- `frontend/src/AnalyticsView.vue` — viewer component rendered inside the
normal site layout on the `/_a` analytics page.