From fecbe77a1d10ca16214d7cb857cc8f9034a0d140 Mon Sep 17 00:00:00 2001 From: Fluffy Date: Wed, 15 May 2024 19:48:52 +0100 Subject: [PATCH] Remove Page prefix in routes folder --- .../src/pages/{Page404.svelte => 404.svelte} | 0 .../src/pages/{Page500.svelte => 500.svelte} | 0 .../pages/{PageAbout.svelte => About.svelte} | 0 .../{PageBooking.svelte => Booking.svelte} | 0 .../pages/{PageCart.svelte => Cart.svelte} | 0 .../{PageContact.svelte => Contact.svelte} | 0 .../pages/{PageIndex.svelte => Index.svelte} | 0 .../pages/{PageItem.svelte => Item.svelte} | 0 .../{PageLoading.svelte => Loading.svelte} | 0 .../pages/{PageMenu.svelte => Menu.svelte} | 0 front/src/routes.js | 20 +++++++++---------- front/tsconfig.json | 6 +++--- 12 files changed, 13 insertions(+), 13 deletions(-) rename front/src/pages/{Page404.svelte => 404.svelte} (100%) rename front/src/pages/{Page500.svelte => 500.svelte} (100%) rename front/src/pages/{PageAbout.svelte => About.svelte} (100%) rename front/src/pages/{PageBooking.svelte => Booking.svelte} (100%) rename front/src/pages/{PageCart.svelte => Cart.svelte} (100%) rename front/src/pages/{PageContact.svelte => Contact.svelte} (100%) rename front/src/pages/{PageIndex.svelte => Index.svelte} (100%) rename front/src/pages/{PageItem.svelte => Item.svelte} (100%) rename front/src/pages/{PageLoading.svelte => Loading.svelte} (100%) rename front/src/pages/{PageMenu.svelte => Menu.svelte} (100%) diff --git a/front/src/pages/Page404.svelte b/front/src/pages/404.svelte similarity index 100% rename from front/src/pages/Page404.svelte rename to front/src/pages/404.svelte diff --git a/front/src/pages/Page500.svelte b/front/src/pages/500.svelte similarity index 100% rename from front/src/pages/Page500.svelte rename to front/src/pages/500.svelte diff --git a/front/src/pages/PageAbout.svelte b/front/src/pages/About.svelte similarity index 100% rename from front/src/pages/PageAbout.svelte rename to front/src/pages/About.svelte diff --git a/front/src/pages/PageBooking.svelte b/front/src/pages/Booking.svelte similarity index 100% rename from front/src/pages/PageBooking.svelte rename to front/src/pages/Booking.svelte diff --git a/front/src/pages/PageCart.svelte b/front/src/pages/Cart.svelte similarity index 100% rename from front/src/pages/PageCart.svelte rename to front/src/pages/Cart.svelte diff --git a/front/src/pages/PageContact.svelte b/front/src/pages/Contact.svelte similarity index 100% rename from front/src/pages/PageContact.svelte rename to front/src/pages/Contact.svelte diff --git a/front/src/pages/PageIndex.svelte b/front/src/pages/Index.svelte similarity index 100% rename from front/src/pages/PageIndex.svelte rename to front/src/pages/Index.svelte diff --git a/front/src/pages/PageItem.svelte b/front/src/pages/Item.svelte similarity index 100% rename from front/src/pages/PageItem.svelte rename to front/src/pages/Item.svelte diff --git a/front/src/pages/PageLoading.svelte b/front/src/pages/Loading.svelte similarity index 100% rename from front/src/pages/PageLoading.svelte rename to front/src/pages/Loading.svelte diff --git a/front/src/pages/PageMenu.svelte b/front/src/pages/Menu.svelte similarity index 100% rename from front/src/pages/PageMenu.svelte rename to front/src/pages/Menu.svelte diff --git a/front/src/routes.js b/front/src/routes.js index 62f894d..740d695 100644 --- a/front/src/routes.js +++ b/front/src/routes.js @@ -1,48 +1,48 @@ import { wrap } from "svelte-spa-router/wrap"; -import PageLoading from "./pages/PageLoading.svelte"; -import Page404 from "./pages/Page404.svelte"; -import Page500 from "./pages/Page500.svelte"; +import PageLoading from "./pages/Loading.svelte"; +import Page404 from "./pages/404.svelte"; +import Page500 from "./pages/500.svelte"; const routes = { "/": wrap({ - asyncComponent: () => import("./pages/PageIndex.svelte"), + asyncComponent: () => import("./pages/Index.svelte"), loadingComponent: PageLoading, conditions: [], userData: { showNavBar: true, fullWidth: false }, }), "/menu": wrap({ - asyncComponent: () => import("./pages/PageMenu.svelte"), + asyncComponent: () => import("./pages/Menu.svelte"), loadingComponent: PageLoading, conditions: [], userData: { showNavBar: true, fullWidth: true }, }), "/item/:uuid": wrap({ - asyncComponent: () => import("./pages/PageItem.svelte"), + asyncComponent: () => import("./pages/Item.svelte"), loadingComponent: PageLoading, conditions: [], userData: { showNavBar: true, fullWidth: true }, }), "/contact": wrap({ - asyncComponent: () => import("./pages/PageContact.svelte"), + asyncComponent: () => import("./pages/Contact.svelte"), loadingComponent: PageLoading, conditions: [], userData: { showNavBar: true, fullWidth: false }, }), "/about": wrap({ - asyncComponent: () => import("./pages/PageAbout.svelte"), + asyncComponent: () => import("./pages/About.svelte"), loadingComponent: PageLoading, conditions: [], userData: { showNavBar: true, fullWidth: false }, }), "/cart": wrap({ - asyncComponent: () => import("./pages/PageCart.svelte"), + asyncComponent: () => import("./pages/Cart.svelte"), loadingComponent: PageLoading, conditions: [], userData: { showNavBar: true, fullWidth: false }, }), "/booking": wrap({ - asyncComponent: () => import("./pages/PageBooking.svelte"), + asyncComponent: () => import("./pages/Booking.svelte"), loadingComponent: PageLoading, conditions: [], userData: { showNavBar: true, fullWidth: true }, diff --git a/front/tsconfig.json b/front/tsconfig.json index 4953d2b..405f6e8 100644 --- a/front/tsconfig.json +++ b/front/tsconfig.json @@ -1,9 +1,9 @@ { "compilerOptions": { "moduleResolution": "bundler", - "module": "ES2015", - "target": "ES2017", - "lib": ["ES2017", "DOM"], + "module": "ESNext", + "target": "ESNext", + "lib": ["ESNext", "DOM"], /** * svelte-preprocess cannot figure out whether you have * a value or a type, so tell TypeScript to enforce using