blob: b46cf5d512a40bd2691bc5b3e7f468fc62ae25d1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
import { Home } from "./pages/Home.js";
import { Settings } from "./pages/Settings.js";
import { ShowForm } from "./pages/ShowForm.js";
import { Welcome } from "./pages/Welcome.js";
import { PageEntry, pageDefinition } from "./route.js";
const home: PageEntry = {
url: "#/",
view: Home,
};
const settings: PageEntry = {
url: "#/settings",
view: Settings,
};
const welcome: PageEntry<{ asd?: string; name?: string }> = {
url: pageDefinition("#/welcome/:name?"),
view: Welcome,
};
const form: PageEntry<{ number?: string }> = {
url: pageDefinition("#/form/:number?"),
view: ShowForm,
};
export const Pages = { home, settings, welcome, form };
|