forked from awamper/everpad-integration
-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.js
45 lines (40 loc) · 1.02 KB
/
constants.js
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
const TIMEOUT_IDS = {
search: 0
};
const SEARCH_DELAY = 700;
const MAX_PINNED_NOTES = 30;
const MAX_LATEST_NOTES = 20;
const MAX_SEARCH_RESULTS = 20;
const STATUS_NONE = 0
const STATUS_SYNC = 1
const SYNC_STATES = {
START: 0,
NOTEBOOKS_LOCAL: 1,
TAGS_LOCAL: 2,
NOTES_LOCAL: 3,
NOTEBOOKS_REMOTE: 4,
TAGS_REMOTE: 5,
NOTES_REMOTE: 6,
SHARE: 7,
STOP_SHARE: 8,
FINISH: 9
};
const SYNC_STATES_TEXT = {
0: "Starting synchronization...",
1: "Sending notebooks to server...",
2: "Sending tags to server...",
3: "Sending notes to server...",
4: "Receiving notebooks from server...",
5: "Receiving tags from server...",
6: "Receiving notes from server...",
7: "Sharing notes...",
8: "Stop sharing notes...",
9: "Finishing..."
};
const ICON_NAMES = {
create_note: 'text-editor-symbolic',
all_notes: 'emblem-documents-symbolic',
settings: 'preferences-other-symbolic',
exit: 'system-shutdown-symbolic',
notebook: 'folder-documents-symbolic'
};