-
Notifications
You must be signed in to change notification settings - Fork 566
Expand file tree
/
Copy pathmain.js
More file actions
26 lines (23 loc) · 909 Bytes
/
main.js
File metadata and controls
26 lines (23 loc) · 909 Bytes
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
import Start from './modules/Start.js';
import Keyboard from './modules/Keyboard.js';
import CachePanel from './modules/Panels/CachePanel.js';
import HistoryPanel from './modules/Panels/HistoryPanel.js';
import RoutesPanel from './modules/Panels/RoutesPanel.js';
import VariablesPanel from './modules/Panels/VariablesPanel.js';
import PackagesPanel from './modules/Panels/PackagesPanel.js';
import MailPanel from './modules/Panels/MailPanel.js';
import RequestPanel from './modules/Panels/RequestPanel.js';
document.addEventListener('DOMContentLoaded', () => {
const toolbar = Start.init();
toolbar.initialize();
Keyboard.init(toolbar);
// Init Panels
CachePanel.onEvent();
RequestPanel.onEvent();
RoutesPanel.onEvent();
PackagesPanel.onEvent();
MailPanel.onEvent();
// Init Panels with a reference to the toolbar
HistoryPanel.onEvent(toolbar);
VariablesPanel.onEvent(toolbar);
});