Debian Codegraph @

frontend/src/reports/routes.ts

raw
1 import { account_report } from "./accounts";
2 import { commodities } from "./commodities";
3 import { documents } from "./documents";
4 import { editor } from "./editor";
5 import { errors } from "./errors";
6 import { events } from "./events";
7 import { holdings } from "./holdings";
8 import { import_report } from "./import";
9 import { options } from "./options";
10 import { query } from "./query";
11 import type { FrontendRoute } from "./route";
12 import { balance_sheet, income_statement, trial_balance } from "./tree_reports";
13
14 /**
15 * This is a list of routes to render in the frontend. For those that we render
16 * in the frontend, the router will pre-load any required data with the load
17 * function and then render the component. These components hence need to be
18 * able to react to changed data (using idiomatic Svelte code should ensure
19 * that, care mainly needs to be taken around lifecycle hooks that should run
20 * if some parts of the data change)
21 */
22 export const frontend_routes: FrontendRoute[] = [
23 account_report,
24 balance_sheet,
25 commodities,
26 documents,
27 editor,
28 errors,
29 events,
30 holdings,
31 import_report,
32 income_statement,
33 options,
34 query,
35 trial_balance,
36 ];