forked from MapComplete/MapComplete
chore: automated housekeeping...
This commit is contained in:
parent
79b6927b56
commit
42ded4c1b1
328 changed files with 4062 additions and 1284 deletions
|
@ -63,7 +63,7 @@
|
|||
return "offline"
|
||||
}
|
||||
}),
|
||||
message: osmApi
|
||||
message: osmApi,
|
||||
})
|
||||
}
|
||||
|
||||
|
@ -91,7 +91,7 @@
|
|||
}
|
||||
const files: string[] = s["success"]["allFiles"]
|
||||
return "Contains " + (files.length ?? "no") + " files"
|
||||
})
|
||||
}),
|
||||
})
|
||||
}
|
||||
{
|
||||
|
@ -107,7 +107,7 @@
|
|||
return "degraded"
|
||||
}
|
||||
}),
|
||||
message: simpleMessage(testDownload(Constants.panoramax.url + "/api"))
|
||||
message: simpleMessage(testDownload(Constants.panoramax.url + "/api")),
|
||||
})
|
||||
}
|
||||
{
|
||||
|
@ -123,7 +123,7 @@
|
|||
return "degraded"
|
||||
}
|
||||
}),
|
||||
message: simpleMessage(testDownload(Constants.GeoIpServer + "/ip"))
|
||||
message: simpleMessage(testDownload(Constants.GeoIpServer + "/ip")),
|
||||
})
|
||||
}
|
||||
|
||||
|
@ -142,7 +142,7 @@
|
|||
}
|
||||
return "degraded"
|
||||
}),
|
||||
message: simpleMessage(status)
|
||||
message: simpleMessage(status),
|
||||
})
|
||||
}
|
||||
|
||||
|
@ -161,7 +161,7 @@
|
|||
}
|
||||
return "online"
|
||||
}),
|
||||
message: simpleMessage(status)
|
||||
message: simpleMessage(status),
|
||||
})
|
||||
}
|
||||
|
||||
|
@ -200,7 +200,7 @@
|
|||
|
||||
const json = JSON.stringify(s["success"], null, " ")
|
||||
return "Database is " + Math.floor(timediffDays) + " days out of sync\n\n" + json
|
||||
})
|
||||
}),
|
||||
})
|
||||
}
|
||||
|
||||
|
@ -213,7 +213,7 @@
|
|||
layer: "food",
|
||||
z: 14,
|
||||
x: 8848,
|
||||
y: 5828
|
||||
y: 5828,
|
||||
})
|
||||
)
|
||||
services.push({
|
||||
|
@ -224,7 +224,7 @@
|
|||
}
|
||||
return "online"
|
||||
}),
|
||||
message: new ImmutableStore("See SettingUpPSQL.md to fix")
|
||||
message: new ImmutableStore("See SettingUpPSQL.md to fix"),
|
||||
})
|
||||
}
|
||||
|
||||
|
@ -243,7 +243,7 @@
|
|||
}
|
||||
return "degraded"
|
||||
}),
|
||||
message: status.map((s) => JSON.stringify(s))
|
||||
message: status.map((s) => JSON.stringify(s)),
|
||||
})
|
||||
}
|
||||
|
||||
|
@ -262,7 +262,7 @@
|
|||
return "online"
|
||||
}
|
||||
return "degraded"
|
||||
})
|
||||
}),
|
||||
})
|
||||
}
|
||||
|
||||
|
@ -281,7 +281,7 @@
|
|||
}
|
||||
return "degraded"
|
||||
}),
|
||||
message: simpleMessage(status)
|
||||
message: simpleMessage(status),
|
||||
})
|
||||
}
|
||||
|
||||
|
@ -307,7 +307,7 @@
|
|||
|
||||
return "online"
|
||||
}),
|
||||
message: simpleMessage(status)
|
||||
message: simpleMessage(status),
|
||||
})
|
||||
}
|
||||
}
|
||||
|
@ -320,7 +320,7 @@
|
|||
return "online"
|
||||
}
|
||||
return "offline"
|
||||
})
|
||||
}),
|
||||
})
|
||||
|
||||
services.push({
|
||||
|
@ -331,35 +331,33 @@
|
|||
}
|
||||
// This code will break in the future. Time to blame past me!
|
||||
const response = JSON.parse(r["error"].substring("other error: , ".length))
|
||||
if (response.message === "\"images\" is required") {
|
||||
if (response.message === '"images" is required') {
|
||||
// Actual expected behaviour
|
||||
return "online"
|
||||
}
|
||||
console.log("R", response)
|
||||
return "offline"
|
||||
})
|
||||
}),
|
||||
})
|
||||
}
|
||||
{
|
||||
services.push({
|
||||
name: "Version Control Server (Forgéjo)",
|
||||
status: testDownload("https://source.mapcomplete.org", true).mapD(r => {
|
||||
status: testDownload("https://source.mapcomplete.org", true).mapD((r) => {
|
||||
if (r["success"]) {
|
||||
return "online"
|
||||
}
|
||||
return "offline"
|
||||
|
||||
})
|
||||
}),
|
||||
})
|
||||
services.push({
|
||||
name: "Translation service (Weblate)",
|
||||
status: testDownload("https://translate.mapcomplete.org", true).mapD(r => {
|
||||
status: testDownload("https://translate.mapcomplete.org", true).mapD((r) => {
|
||||
if (r["success"]) {
|
||||
return "online"
|
||||
}
|
||||
return "offline"
|
||||
|
||||
})
|
||||
}),
|
||||
})
|
||||
}
|
||||
|
||||
|
@ -433,7 +431,6 @@
|
|||
let now = Math.round(new Date().getTime() / 1000)
|
||||
let twoDaysAgo = now - 2 * 24 * 60 * 60
|
||||
let lastHour = now - 60 * 60
|
||||
|
||||
</script>
|
||||
|
||||
<h1>MapComplete status indicators</h1>
|
||||
|
@ -457,16 +454,21 @@
|
|||
|
||||
<h3>Panoramax & OSM.fr Blurring service</h3>
|
||||
<a href="https://status.thibaultmol.link/status/panoramax">Panoramax.MapComplete.org status page</a>
|
||||
<a href="https://munin.openstreetmap.fr/osm37.openstreetmap.fr/blur.vm.openstreetmap.fr/index.html#system"
|
||||
target="_blank" rel="noopener">
|
||||
<a
|
||||
href="https://munin.openstreetmap.fr/osm37.openstreetmap.fr/blur.vm.openstreetmap.fr/index.html#system"
|
||||
target="_blank"
|
||||
rel="noopener"
|
||||
>
|
||||
See more statistics for the blurring service
|
||||
</a>
|
||||
<img
|
||||
style="width: 80rem"
|
||||
src={`https://munin.openstreetmap.fr/munin-cgi/munin-cgi-graph/osm37.openstreetmap.fr/blur.vm.openstreetmap.fr/nvidia_gpu_power-pinpoint=${twoDaysAgo},${now}.png?&lower_limit=&upper_limit=&size_x=800&size_y=400`} />
|
||||
src={`https://munin.openstreetmap.fr/munin-cgi/munin-cgi-graph/osm37.openstreetmap.fr/blur.vm.openstreetmap.fr/nvidia_gpu_power-pinpoint=${twoDaysAgo},${now}.png?&lower_limit=&upper_limit=&size_x=800&size_y=400`}
|
||||
/>
|
||||
<img
|
||||
style="width: 80rem"
|
||||
src={`https://munin.openstreetmap.fr/munin-cgi/munin-cgi-graph/osm37.openstreetmap.fr/blur.vm.openstreetmap.fr/nvidia_gpu_power-pinpoint=${lastHour},${now}.png?&lower_limit=&upper_limit=&size_x=800&size_y=400`} />
|
||||
src={`https://munin.openstreetmap.fr/munin-cgi/munin-cgi-graph/osm37.openstreetmap.fr/blur.vm.openstreetmap.fr/nvidia_gpu_power-pinpoint=${lastHour},${now}.png?&lower_limit=&upper_limit=&size_x=800&size_y=400`}
|
||||
/>
|
||||
<button
|
||||
on:click={() => {
|
||||
fetch(Constants.ErrorReportServer, {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue