Added stats page

This commit is contained in:
2026-09-20 13:40:27 +02:00
parent 6f64475050
commit daa4bbd028
9 changed files with 547 additions and 15 deletions

View File

@@ -1,12 +1,12 @@
/**
* Three screens, so no router dependency — just enough hash handling that the
* A few screens, so no router dependency — just enough hash handling that the
* Android back button behaves inside an installed PWA.
*
* `route === null` means "wherever the day state says", which is the default the
* worker should land on.
*/
const ROUTES = ['resume', 'today', 'settings'];
const ROUTES = ['resume', 'today', 'settings', 'stats'];
function fromHash() {
const h = location.hash.replace(/^#\/?/, '');