mobile app phase 1

This commit is contained in:
2026-05-10 21:19:39 +02:00
parent 442a00dbbe
commit d08afc1dcb
1679 changed files with 392410 additions and 3005 deletions
+16
View File
@@ -0,0 +1,16 @@
// Status utilities for TimeToLeave
import type { ServerStatus } from "./types";
export class StatusUtils {
static async checkServerStatus(url: string): Promise<ServerStatus> {
try {
const res = await fetch(url, {
method: "HEAD",
signal: AbortSignal.timeout(5000),
});
return res.ok;
} catch {
return false;
}
}
}