use standard Maps worker jobs API without key

This commit is contained in:
Marco0300
2026-09-05 16:15:03 +02:00
parent 6dd9531a66
commit dbf0ed0999
7 changed files with 128 additions and 34 deletions
+3 -2
View File
@@ -100,11 +100,12 @@ async function loadConfig() {
const config = await api("/api/config");
$("backendLabel").textContent = config.backend === "gmaps" ? "Maps worker" : "Browser fallback";
$("sourceLabel").textContent = config.ready ? "Maps worker ready" : "Setup required";
$("sourceSub").textContent = config.ready ? "Google Maps scraper connected" : "Add your API key to continue";
$("sourceSub").textContent = config.ready ? "Google Maps scraper connected" : (config.gmaps_auth_required ? "SaaS API key required" : "Start the bundled Maps worker");
$("sourceDot").classList.toggle("offline", !config.ready);
$("setupNotice").hidden = Boolean(config.ready);
if (!config.gmaps_url) $("setupText").textContent = "Start the bundled Maps worker with Docker, then reload this page.";
else if (!config.gmaps_api_key) $("setupText").textContent = "Create an API key in the Maps worker admin screen, add it as GMAPS_API_KEY, then restart the stack.";
else if (config.gmaps_auth_required && !config.gmaps_api_key) $("setupText").textContent = "SaaS mode is selected but no API key is configured. Use standard mode or add GMAPS_API_KEY.";
else $("setupText").textContent = "The standard worker needs no API key. If a run fails, check the gmaps container logs.";
}
async function refreshAll() {