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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
import { Home } from "./pages/Home.js";
import { Settings } from "./pages/Settings.js";
import { AntiMoneyLaunderingForm } from "./pages/AntiMoneyLaunderingForm.js";
import { Welcome } from "./pages/Welcome.js";
import { PageEntry, pageDefinition } from "./route.js";
import { Officer } from "./pages/Officer.js";
import { Cases } from "./pages/Cases.js";
import { CaseDetails } from "./pages/CaseDetails.js";
import { NewFormEntry } from "./pages/NewFormEntry.js";
const home: PageEntry = {
url: "#/",
view: Home,
};
const cases: PageEntry = {
url: "#/cases",
view: Cases,
};
const account: PageEntry<{ account: string }> = {
url: pageDefinition("#/account/:account"),
view: CaseDetails,
};
const newFormEntry: PageEntry<{ account?: string; type?: string }> = {
url: pageDefinition("#/account/:account/new/:type?"),
view: NewFormEntry,
};
const settings: PageEntry = {
url: "#/settings",
view: Settings,
};
const officer: PageEntry = {
url: "#/officer",
view: Officer,
};
const welcome: PageEntry<{ asd?: string; name?: string }> = {
url: pageDefinition("#/welcome/:name?"),
view: Welcome,
};
const form: PageEntry<{ number?: string }> = {
url: pageDefinition("#/form/:number?"),
view: AntiMoneyLaunderingForm,
};
export const Pages = {
home,
info: cases,
officer,
details: account,
settings,
welcome,
form,
newFormEntry,
};
|