feat: save progress on web server foundation and add new tickets

This commit is contained in:
syntaxbullet
2026-01-07 13:02:36 +01:00
parent 894cad91a8
commit 6f4426e49d
9 changed files with 191 additions and 59 deletions

View File

@@ -1,6 +1,10 @@
import { BaseLayout } from "../views/layout";
import { formatUptime } from "../utils/format";
export function homeRoute(): Response {
const uptime = formatUptime(process.uptime());
const startTimestamp = Date.now() - (process.uptime() * 1000);
const content = `
<div class="card">
<h2>Welcome</h2>
@@ -9,6 +13,7 @@ export function homeRoute(): Response {
<div class="card">
<h3>Status</h3>
<p>System operational.</p>
<p><strong>Uptime:</strong> <span id="uptime-display" data-start-timestamp="${Math.floor(startTimestamp)}">${uptime}</span></p>
</div>
`;