This commit is contained in:
Flavio Fois
2026-02-04 19:57:31 +01:00
parent 0d6157b2ff
commit 0cda0a26fc
25 changed files with 1549 additions and 66 deletions

View File

@@ -0,0 +1,12 @@
import type { LayoutLoad } from './$types';
import { GetConfig } from "$lib/wailsjs/go/main/App";
export const load = (async () => {
try {
const config = await GetConfig();
return { data: config, error: null };
} catch (e) {
console.error("Failed to load config:", e);
return { data: null, error: 'Failed to load config' };
}
}) satisfies LayoutLoad;