From 4cbb423ae3b47999f96e6d6ec39d7138d0ccfea7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Sch=C3=B6ne?= Date: Thu, 11 Jul 2024 12:02:30 +0200 Subject: [PATCH] #91 add notification on page component if a axios call faild --- src/lib/components/page/Page.svelte | 15 ++++++++-- src/lib/models/Models.ts | 16 ++++++++++ src/lib/services/Api.ts | 20 +++++++++++-- src/lib/stores/apiStores.ts | 3 ++ src/lib/stores/pageStores.ts | 2 +- src/routes/+layout.js | 3 -- .../{components/core/+page.js => +layout.ts} | 9 ++++-- src/routes/components/form/+page.js | 17 ----------- src/routes/components/page/+page.js | 17 ----------- src/routes/components/page/+page.svelte | 30 +++++++------------ 10 files changed, 67 insertions(+), 65 deletions(-) delete mode 100644 src/routes/+layout.js rename src/routes/{components/core/+page.js => +layout.ts} (61%) delete mode 100644 src/routes/components/form/+page.js delete mode 100644 src/routes/components/page/+page.js diff --git a/src/lib/components/page/Page.svelte b/src/lib/components/page/Page.svelte index 10e5d0bf..907a6c0f 100644 --- a/src/lib/components/page/Page.svelte +++ b/src/lib/components/page/Page.svelte @@ -1,8 +1,8 @@
-

Content

- -

Lorem ipsum dolor sit amet, con

- {#if e} - - {/if}
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor - sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor - invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et - justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem - ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy - eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos - et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus - est Lorem ipsum dolor sit amet. Duis autem vel eum iriure dolor in hendrerit in vulputate velit - esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et - iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait - nulla facilisi. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh - euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. + sit amet.