feat: indie status page MVP -- FastAPI + SQLite

- 8 DB models (services, incidents, monitors, subscribers, etc.)
- Full CRUD API for services, incidents, monitors
- Public status page with live data
- Incident detail page with timeline
- API key authentication
- Uptime monitoring scheduler
- 13 tests passing
- TECHNICAL_DESIGN.md with full spec
This commit is contained in:
IndieStatusBot 2026-04-25 05:00:00 +00:00
commit 902133edd3
4655 changed files with 1342691 additions and 0 deletions

22
app/static/js/status.js Normal file
View file

@ -0,0 +1,22 @@
/* Minimal JS for auto-refreshing the status page every 60 seconds */
(function () {
const REFRESH_INTERVAL = 60000;
function autoRefresh() {
setTimeout(function () {
fetch(window.location.href, { headers: { "X-Requested-With": "XMLHttpRequest" } })
.then(function () {
window.location.reload();
})
.catch(function () {
// Silently fail — the page will try again next interval
});
}, REFRESH_INTERVAL);
}
if (document.readyState === "loading") {
document.addEventListener("DOMContentLoaded", autoRefresh);
} else {
autoRefresh();
}
})();