-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.ts
21 lines (18 loc) · 823 Bytes
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import joplin from 'api';
import { createPanel, watchForChanges } from './panel/panel_main';
import { registerFolderCommands } from './commands/folder_commands';
import { registerNoteCommands } from './commands/note_commands';
import { registerSyncCommands } from './commands/sync_commands';
import { registerUtilityCommands } from './commands/utility_commands';
import { createContextMenuItems } from './panel/panel_context_menu';
joplin.plugins.register({
onStart: async function() {
const panel = await createPanel();
await registerFolderCommands(panel);
await registerNoteCommands(panel);
await registerSyncCommands(panel);
await registerUtilityCommands(panel);
await createContextMenuItems();
await watchForChanges(panel);
},
});