frontend: add svelte frontend

This commit is contained in:
2025-07-20 23:51:54 -06:00
parent a01ec82833
commit 7a2b0fd4d6
40 changed files with 17358 additions and 349 deletions
+19
View File
@@ -0,0 +1,19 @@
export interface App {
title: string;
id: number;
hdr_supported: boolean;
}
export interface AppsResponse {
apps: Record<string, App[]>;
}
export async function fetchApps() {
console.log('Getting apps');
const response = await fetch('/api/apps');
console.log(response);
const data = (await response.json()) as AppsResponse;
console.log(data);
return data;
}