Add auth system, fix map defaults, controls overflow, fix latest-date ref

This commit is contained in:
zyphlar
2026-04-22 17:03:15 -07:00
parent 6880382011
commit 24c27767ec
8 changed files with 288 additions and 55 deletions
+1 -6
View File
@@ -1059,12 +1059,7 @@ async function saveAcceptedItems() {
}
});
// Get the date of the loaded data from the server
let dataDate = '';
try {
const dateResp = await fetch('/api/latest-date');
if (dateResp.ok) dataDate = (await dateResp.json()).date || '';
} catch (_) {}
const dataDate = new Date().toISOString().slice(0, 10).replace(/-/g, '');
const prefix = [loadedCounty, loadedDataType, dataDate].filter(Boolean).join('-');
function triggerDownload(features, label) {