cleaner login and registration

This commit is contained in:
2023-07-18 12:05:30 +02:00
parent ffa4496c16
commit 70e640aa9a
12 changed files with 153 additions and 30 deletions

View File

@ -9,7 +9,7 @@
import IngredientsPage from '$lib/components/IngredientsPage.svelte';
import TitleImgParallax from '$lib/components/TitleImgParallax.svelte';
import { afterNavigate } from '$app/navigation';
import {season} from '$lib/js/season_store';
import {season} from '$lib/js/season_store';
export let data: PageData;

View File

@ -0,0 +1 @@
{"terminal": "nvimterm"}

View File

@ -0,0 +1,5 @@
export async function load({locals}) {
return {
user: locals.user
};
};

View File

@ -1,8 +1,10 @@
import type { PageLoad } from "./$types";
export async function load({ fetch, params}) {
export async function load({ fetch, params, locals}) {
let current_month = new Date().getMonth() + 1
const res = await fetch(`/api/items/${params.name}`);
const recipe = await res.json();
return {recipe};
return {recipe: recipe,
user: locals.user
};
};

View File

@ -342,7 +342,6 @@ h3{
}
</style>
<h1>Rezept editieren</h1>
<CardAdd {card_data} {image_preview_url} ></CardAdd>
<h3>Kurzname (für URL):</h3>