feat(ui): /new/from-photo Page mit File-Picker, Lade- und Fehler-States

This commit is contained in:
hsiegeln
2026-04-21 10:47:33 +02:00
parent bc42f35f8c
commit 47e91de0a1
3 changed files with 260 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
import type { PageServerLoad } from './$types';
import { error } from '@sveltejs/kit';
import { env } from '$env/dynamic/private';
export const load: PageServerLoad = async () => {
if (!env.GEMINI_API_KEY) {
error(503, {
message: 'Foto-Import ist nicht konfiguriert (GEMINI_API_KEY fehlt).'
});
}
return {};
};