-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.tsx
31 lines (27 loc) · 1.05 KB
/
index.tsx
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
import HubletoMain from './src/Main';
import Billing from './apps/community/Billing/Loader'
import Calendar from './apps/community/Calendar/Loader'
import Customers from './apps/community/Customers/Loader'
import Documents from './apps/community/Documents/Loader'
import Invoices from './apps/community/Invoices/Loader'
import Settings from './apps/community/Settings/Loader'
import Leads from './apps/community/Leads/Loader'
import Deals from './apps/community/Deals/Loader'
import Products from './apps/community/Products/Loader'
import Orders from './apps/community/Orders/Loader'
//@ts-ignore
const main: HubletoMain = new HubletoMain(window.ConfigEnv);
main.registerApp(Billing);
main.registerApp(Calendar);
main.registerApp(Customers);
main.registerApp(Documents);
main.registerApp(Invoices);
main.registerApp(Settings);
main.registerApp(Leads);
main.registerApp(Deals);
main.registerApp(Products);
main.registerApp(Orders);
// Render react elements into body
main.renderReactElements();
globalThis.app = main; // ADIOS requires 'app' property
globalThis.main = main;