mirror of
https://github.com/Fluffy-Bean/TastyBites.git
synced 2025-05-18 01:14:57 +00:00
This commit fixes the style issues introduced in 6e31b44
according to the output
from Prettier.
Details: None
61 lines
1.9 KiB
JavaScript
61 lines
1.9 KiB
JavaScript
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";
|
|
|
|
const routes = {
|
|
"/": wrap({
|
|
asyncComponent: () => import("./pages/PageIndex.svelte"),
|
|
loadingComponent: PageLoading,
|
|
conditions: [],
|
|
userData: { showNavBar: true, fullWidth: false },
|
|
}),
|
|
"/menu": wrap({
|
|
asyncComponent: () => import("./pages/PageMenu.svelte"),
|
|
loadingComponent: PageLoading,
|
|
conditions: [],
|
|
userData: { showNavBar: true, fullWidth: true },
|
|
}),
|
|
"/item/:uuid": wrap({
|
|
asyncComponent: () => import("./pages/PageItem.svelte"),
|
|
loadingComponent: PageLoading,
|
|
conditions: [],
|
|
userData: { showNavBar: true, fullWidth: true },
|
|
}),
|
|
"/contact": wrap({
|
|
asyncComponent: () => import("./pages/PageContact.svelte"),
|
|
loadingComponent: PageLoading,
|
|
conditions: [],
|
|
userData: { showNavBar: true, fullWidth: false },
|
|
}),
|
|
"/about": wrap({
|
|
component: PageLoading,
|
|
loadingComponent: PageLoading,
|
|
conditions: [],
|
|
userData: { showNavBar: true, fullWidth: false },
|
|
}),
|
|
"/cart": wrap({
|
|
asyncComponent: () => import("./pages/PageCart.svelte"),
|
|
loadingComponent: PageLoading,
|
|
conditions: [],
|
|
userData: { showNavBar: true, fullWidth: false },
|
|
}),
|
|
"/ForOhFor": wrap({
|
|
component: Page404,
|
|
conditions: [],
|
|
userData: { showNavBar: true, fullWidth: false },
|
|
}),
|
|
"/ServerError": wrap({
|
|
component: Page500,
|
|
conditions: [],
|
|
userData: { showNavBar: true, fullWidth: false },
|
|
}),
|
|
"*": wrap({
|
|
component: Page404,
|
|
conditions: [],
|
|
userData: { showNavBar: true, fullWidth: false },
|
|
}),
|
|
};
|
|
|
|
export default routes;
|