diff --git a/front/src/components/MenuList.svelte b/front/src/components/MenuItemGrid.svelte similarity index 100% rename from front/src/components/MenuList.svelte rename to front/src/components/MenuItemGrid.svelte diff --git a/front/src/pages/404.svelte b/front/src/pages/404.svelte index d3b3dec..2db36fe 100644 --- a/front/src/pages/404.svelte +++ b/front/src/pages/404.svelte @@ -4,7 +4,7 @@
Error 404
+Error ForOhFor
Loading
{:then popularToday} -{error}
{/await} diff --git a/front/src/pages/Item.svelte b/front/src/pages/Item.svelte index 571278b..97b1ce3 100644 --- a/front/src/pages/Item.svelte +++ b/front/src/pages/Item.svelte @@ -6,7 +6,7 @@ import { Labels } from "../lib/types"; import { getPopularToday, getItemByUUID } from "../lib/test-api"; import Cart, { cartLoaded } from "../lib/cart"; - import MenuList from "../components/MenuList.svelte"; + import MenuItemGrid from "../components/MenuItemGrid.svelte"; import LoadingBar from "../components/LoadingBar.svelte"; import LoadingImage from "/assets/MenuItemLoading.svg"; @@ -164,7 +164,7 @@ {#await popularToday}{error}
{/await} diff --git a/front/src/pages/Menu.svelte b/front/src/pages/Menu.svelte index 29897cf..bac7ca2 100644 --- a/front/src/pages/Menu.svelte +++ b/front/src/pages/Menu.svelte @@ -3,7 +3,7 @@ import { getMenuItems } from "../lib/test-api"; import LoadingBar from "../components/LoadingBar.svelte"; - import MenuList from "../components/MenuList.svelte"; + import MenuList from "../components/MenuItemGrid.svelte"; import DropDown from "../components/DropDown.svelte"; let items = getMenuItems(); diff --git a/front/src/routes.js b/front/src/routes.js index 740d695..e8ab45f 100644 --- a/front/src/routes.js +++ b/front/src/routes.js @@ -2,7 +2,6 @@ import { wrap } from "svelte-spa-router/wrap"; import PageLoading from "./pages/Loading.svelte"; import Page404 from "./pages/404.svelte"; -import Page500 from "./pages/500.svelte"; const routes = { "/": wrap({ @@ -41,22 +40,17 @@ const routes = { conditions: [], userData: { showNavBar: true, fullWidth: false }, }), + "/cart/checkout": wrap({ + component: Page404, + conditions: [], + userData: { showNavBar: false, fullWidth: true }, + }), "/booking": wrap({ asyncComponent: () => import("./pages/Booking.svelte"), loadingComponent: PageLoading, conditions: [], userData: { showNavBar: true, fullWidth: true }, }), - "/ForOhFor": wrap({ - component: Page404, - conditions: [], - userData: { showNavBar: true, fullWidth: false }, - }), - "/ServerError": wrap({ - component: Page500, - conditions: [], - userData: { showNavBar: true, fullWidth: false }, - }), "*": wrap({ component: Page404, conditions: [],