Commit a498060
committed
feat: add settings page for night mode, timezone and language
- New /config page (gear icon on the dashboard) with a set-config API that stores preferences in cookies: night mode by fixed hours or by sunrise and sunset, custom night start/end, high contrast, timezone, and language.
- Night mode scheduling now uses the configured timezone instead of the device clock, and sun mode follows sunrise/sunset at the configured location; the dashboard caches the sun times so the setup and config pages can resolve sun mode too. Closes #79.
- Pages pre-render the resolved theme server-side, removing the dark flash on every reload.
- Location and settings cookies persist for a year, so a browser restart on the kiosk no longer loses the setup.1 parent 47a80be commit a498060
16 files changed
Lines changed: 9642 additions & 13683 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
64 | 75 | | |
65 | 76 | | |
66 | | - | |
| 77 | + | |
67 | 78 | | |
68 | 79 | | |
69 | 80 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
This file was deleted.
0 commit comments