mirror of
https://github.com/Fluffy-Bean/TastyBites.git
synced 2025-05-29 23:03:13 +00:00
Remove Page prefix in routes folder
This commit is contained in:
parent
46b624954c
commit
fecbe77a1d
12 changed files with 13 additions and 13 deletions
|
@ -1,48 +1,48 @@
|
||||||
import { wrap } from "svelte-spa-router/wrap";
|
import { wrap } from "svelte-spa-router/wrap";
|
||||||
|
|
||||||
import PageLoading from "./pages/PageLoading.svelte";
|
import PageLoading from "./pages/Loading.svelte";
|
||||||
import Page404 from "./pages/Page404.svelte";
|
import Page404 from "./pages/404.svelte";
|
||||||
import Page500 from "./pages/Page500.svelte";
|
import Page500 from "./pages/500.svelte";
|
||||||
|
|
||||||
const routes = {
|
const routes = {
|
||||||
"/": wrap({
|
"/": wrap({
|
||||||
asyncComponent: () => import("./pages/PageIndex.svelte"),
|
asyncComponent: () => import("./pages/Index.svelte"),
|
||||||
loadingComponent: PageLoading,
|
loadingComponent: PageLoading,
|
||||||
conditions: [],
|
conditions: [],
|
||||||
userData: { showNavBar: true, fullWidth: false },
|
userData: { showNavBar: true, fullWidth: false },
|
||||||
}),
|
}),
|
||||||
"/menu": wrap({
|
"/menu": wrap({
|
||||||
asyncComponent: () => import("./pages/PageMenu.svelte"),
|
asyncComponent: () => import("./pages/Menu.svelte"),
|
||||||
loadingComponent: PageLoading,
|
loadingComponent: PageLoading,
|
||||||
conditions: [],
|
conditions: [],
|
||||||
userData: { showNavBar: true, fullWidth: true },
|
userData: { showNavBar: true, fullWidth: true },
|
||||||
}),
|
}),
|
||||||
"/item/:uuid": wrap({
|
"/item/:uuid": wrap({
|
||||||
asyncComponent: () => import("./pages/PageItem.svelte"),
|
asyncComponent: () => import("./pages/Item.svelte"),
|
||||||
loadingComponent: PageLoading,
|
loadingComponent: PageLoading,
|
||||||
conditions: [],
|
conditions: [],
|
||||||
userData: { showNavBar: true, fullWidth: true },
|
userData: { showNavBar: true, fullWidth: true },
|
||||||
}),
|
}),
|
||||||
"/contact": wrap({
|
"/contact": wrap({
|
||||||
asyncComponent: () => import("./pages/PageContact.svelte"),
|
asyncComponent: () => import("./pages/Contact.svelte"),
|
||||||
loadingComponent: PageLoading,
|
loadingComponent: PageLoading,
|
||||||
conditions: [],
|
conditions: [],
|
||||||
userData: { showNavBar: true, fullWidth: false },
|
userData: { showNavBar: true, fullWidth: false },
|
||||||
}),
|
}),
|
||||||
"/about": wrap({
|
"/about": wrap({
|
||||||
asyncComponent: () => import("./pages/PageAbout.svelte"),
|
asyncComponent: () => import("./pages/About.svelte"),
|
||||||
loadingComponent: PageLoading,
|
loadingComponent: PageLoading,
|
||||||
conditions: [],
|
conditions: [],
|
||||||
userData: { showNavBar: true, fullWidth: false },
|
userData: { showNavBar: true, fullWidth: false },
|
||||||
}),
|
}),
|
||||||
"/cart": wrap({
|
"/cart": wrap({
|
||||||
asyncComponent: () => import("./pages/PageCart.svelte"),
|
asyncComponent: () => import("./pages/Cart.svelte"),
|
||||||
loadingComponent: PageLoading,
|
loadingComponent: PageLoading,
|
||||||
conditions: [],
|
conditions: [],
|
||||||
userData: { showNavBar: true, fullWidth: false },
|
userData: { showNavBar: true, fullWidth: false },
|
||||||
}),
|
}),
|
||||||
"/booking": wrap({
|
"/booking": wrap({
|
||||||
asyncComponent: () => import("./pages/PageBooking.svelte"),
|
asyncComponent: () => import("./pages/Booking.svelte"),
|
||||||
loadingComponent: PageLoading,
|
loadingComponent: PageLoading,
|
||||||
conditions: [],
|
conditions: [],
|
||||||
userData: { showNavBar: true, fullWidth: true },
|
userData: { showNavBar: true, fullWidth: true },
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"moduleResolution": "bundler",
|
"moduleResolution": "bundler",
|
||||||
"module": "ES2015",
|
"module": "ESNext",
|
||||||
"target": "ES2017",
|
"target": "ESNext",
|
||||||
"lib": ["ES2017", "DOM"],
|
"lib": ["ESNext", "DOM"],
|
||||||
/**
|
/**
|
||||||
* svelte-preprocess cannot figure out whether you have
|
* svelte-preprocess cannot figure out whether you have
|
||||||
* a value or a type, so tell TypeScript to enforce using
|
* a value or a type, so tell TypeScript to enforce using
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue