From 9dce9235d6d57c07302696bb112fc4e2f5360712 Mon Sep 17 00:00:00 2001 From: Fluffy-Bean Date: Sun, 5 May 2024 11:12:01 +0100 Subject: [PATCH] Set image value in Item to list, to support more images in the future Set all pages to Typescript --- .../src/components/AnnouncementBanner.svelte | 2 +- front/src/components/BasketItem.svelte | 14 ++++++------ front/src/components/DropDown.svelte | 4 ++-- front/src/components/LoadingBar.svelte | 2 +- front/src/components/MenuItem.svelte | 12 +++++----- front/src/components/MenuList.svelte | 5 +++-- front/src/lib/test-api.ts | 11 +++++----- front/src/lib/test-data.ts | 22 +++++++++---------- front/src/lib/types.ts | 8 +++---- front/src/pages/Page404.svelte | 2 +- front/src/pages/Page500.svelte | 2 +- front/src/pages/PageContact.svelte | 18 +++++++-------- front/src/pages/PageIndex.svelte | 2 +- front/src/pages/PageItem.svelte | 14 ++++++++---- front/src/pages/PageLoading.svelte | 2 +- front/src/pages/PageMenu.svelte | 2 +- 16 files changed, 63 insertions(+), 59 deletions(-) diff --git a/front/src/components/AnnouncementBanner.svelte b/front/src/components/AnnouncementBanner.svelte index af74852..f1ca0dd 100644 --- a/front/src/components/AnnouncementBanner.svelte +++ b/front/src/components/AnnouncementBanner.svelte @@ -1,4 +1,4 @@ -
- {#if item.data.image} - Item + {#if item.data.images} + Item {:else} - Item + Item {/if}