From 9f41c873094d40b895284a8a8cdfeb1e57a0fcc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Doma=C5=84ski?= Date: Fri, 3 Apr 2026 15:23:46 +0200 Subject: [PATCH] diary/today' ' --- src/routes/(app)/diary/today/+page.svelte | 155 +++++++++++++++++++++- 1 file changed, 153 insertions(+), 2 deletions(-) diff --git a/src/routes/(app)/diary/today/+page.svelte b/src/routes/(app)/diary/today/+page.svelte index f79938d..8b10bab 100644 --- a/src/routes/(app)/diary/today/+page.svelte +++ b/src/routes/(app)/diary/today/+page.svelte @@ -1,9 +1,160 @@ + +
+ +
+ goDate(-1)} + onNext={() => goDate(1)} + isToday={true} + onDateClick={() => calendarOpen = true} + /> +
+ + +
+ {#if diaryQuery.isPending} + +
+
+
+
+
+
+
+ {:else if diaryQuery.isError} +
+

Could not load diary

+

{diaryQuery.error.message}

+ +
+ {:else if diaryQuery.data} + {@const diary = diaryQuery.data} + +
+ +
+ +
+ + +
+ {#each diary.meals as meal (meal.id)} + + {/each} + + + +
+
+ {/if} +
+ + + {#if diaryQuery.data} + + {/if} + + calendarOpen = false}> + + + + commandOpen = false} /> +