v1.3 - client and admin scaffolding

This commit is contained in:
2026-04-25 22:51:36 +12:00
parent bc211ffcc8
commit 8cf9bfb441
54 changed files with 8882 additions and 1248 deletions
+20
View File
@@ -0,0 +1,20 @@
import { hasStoredClientSession } from '$lib/session';
import { api } from '$lib/api';
export async function load() {
if (!hasStoredClientSession()) {
return {
rawMaterials: []
};
}
try {
return {
rawMaterials: await api.rawMaterials()
};
} catch {
return {
rawMaterials: []
};
}
}