-
Notifications
You must be signed in to change notification settings - Fork 1
/
constants.js
125 lines (115 loc) · 2.79 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
export const CONSTANTS = Object.freeze({
NOTIFICATION_CHANNEL_ID:
'Tasker-Notifications-dc5ee189-65a6-48a7-9ae6-b0ec9d067825',
DAILY_REMINDER_ID: 1023,
NOTIFICATION_CLEAR_DELAY_BUFFER: 1 * 60 * 1000,
TABLE_NAMES: {
LABELS: 'labels',
NOTES: 'notes',
TASKS: 'tasks',
},
ROUTES: {
LABEL: 'LABEL',
INTRO: 'INTRO',
PINNED_NOTES: 'PINNED_NOTES',
BOOKMARKS: 'BOOKMARKS',
LABEL_DRAWER: 'LABEL_DRAWER',
ADD_LABEL: 'ADD_LABEL',
EDIT_LABEL: 'EDIT_LABEL',
UNLABELED_NOTES: 'UNLABELED_NOTES',
ADD_NOTE: 'ADD_NOTE',
EDIT_NOTE: 'EDIT_NOTE',
TASK: 'TASK',
ARCHIVED_TASKS: 'ARCHIVED_TASKS',
ARCHIVED_NOTES: 'ARCHIVED_NOTES',
DELETED_TASKS: 'DELETED_TASKS',
NOTE: 'NOTE',
BACKUP: 'BACKUP',
FILTER: 'FILTER',
MY_DAY: 'MY_DAY',
CALENDAR: 'CALENDAR',
SEARCH: 'SEARCH',
SETTINGS: 'SETTINGS',
COMPLETED: 'COMPLETED',
ALL_TASKS: 'ALL_TASKS',
},
NOTE_SORT: {
TITLE: {text: 'Title', code: 'title'},
CREATED_AT: {text: 'Created on', code: 'created_at'},
},
NOTE_SORT_ORDER: {
ASC: {
text: 'Ascensing',
code: 'asc',
},
DESC: {
text: 'Descending',
code: 'desc',
},
},
TASK_SORT: {
TITLE: {text: 'Title', code: 'title'},
START_DATE: {text: 'Start time', code: 'start_timestamp'},
DUE_DATE: {text: 'Due date', code: 'end_timestamp'},
MARK_DONE: {text: 'Marked done on', code: 'done_timestamp'},
UPDATE_AT: {text: 'Updated on', code: 'updated_at'},
CREATED_AT: {text: 'Created on', code: 'created_at'},
},
TASK_SORT_ORDER: {
ASC: {
text: 'Ascensing',
code: 'asc',
},
DESC: {
text: 'Descending',
code: 'desc',
},
},
TASK_FILTER: {
BOOKMARKS: {
text: 'Bookmarks',
field: 'is_bookmarked',
},
DONE: {
text: 'Done',
field: 'is_done',
},
},
NOTE_COLORS: [
'#e6194b',
'#3cb44b',
'#998608',
'#4363d8',
'#c15d16',
'#911eb4',
'#0d7676',
'#a72ea1',
'#607030',
'#5e3030',
'#008080',
'#3e1c54',
'#9a6324',
'#5d5b47',
'#800000',
'#224e30',
'#808000',
'#846749',
'#000075',
'#808080',
'#000000',
],
LOCAL_STORAGE_KEYS: {
LAST_BACKUP_TIMESTAMP: 'LAST_BACKUP_TIMESTAMP',
LAST_RESTORE_TIMESTAMP: 'LAST_RESTORE_TIMESTAMP',
LOCAL_THEME: 'LOCAL_THEME',
QUICK_LIST_SETTING: 'QUICK_LIST_SETTING',
RENDER_URL_IN_TASK_SETTING: 'RENDER_URL_IN_TASK_SETTING',
DAILY_REMINDER_TIMESTAMP: 'DAILY_REMINDER_TIMESTAMP',
TASK_SORT_ORDER: 'TASK_SORT_ORDER',
TASK_SORT_PROPERTY: 'TASK_SORT_PROPERTY',
DEFAULT_HOME_SCREEN: 'DEFAULT_HOME_SCREEN',
NOTE_SORT_ORDER: 'NOTE_SORT_ORDER',
NOTE_SORT_PROPERTY: 'NOTE_SORT_PROPERTY',
TASK_LIST_DETAILED_VIEW: 'TASK_LIST_DETAILED_VIEW',
},
});