Move all settings to dedicated /dashboard/settings page
Publish Container / publish (push) Successful in 2m22s
Publish Container / publish (push) Successful in 2m22s
Extracts API keys, alert thresholds, station name/location, data export/import, and password change into a standalone settings page. Dashboard gains a Settings nav link; the accordion at the bottom is removed along with its now-orphaned JS and CSS. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
97dfae86ab
commit
47f60e72f7
3 files changed
+458
-376
No files matched your search
@@ -959,6 +959,11 @@ app.get('/dashboard', requireDashboardAuth, (_req, res) => {
|
||||
res.sendFile(path.join(__dirname, 'public', 'dashboard.html'));
|
||||
});
|
||||
|
||||
// Settings page
|
||||
app.get('/dashboard/settings', requireDashboardAuth, (_req, res) => {
|
||||
res.sendFile(path.join(__dirname, 'public', 'dashboard-settings.html'));
|
||||
});
|
||||
|
||||
// Station history API
|
||||
app.get('/api/station/history', requireDashboardAuth, (req, res) => {
|
||||
const rangeMap = { '1h': 3600000, '6h': 21600000, '24h': 86400000, '7d': 604800000, '30d': 2592000000, '90d': 7776000000, '1y': 31536000000, '2y': 63072000000, '3y': 94608000000 };
|
||||
|
||||
Reference in new issue
Block a user