-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathconstants.ts
More file actions
47 lines (38 loc) · 1.19 KB
/
constants.ts
File metadata and controls
47 lines (38 loc) · 1.19 KB
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
// Internal
export const enum Message {
QUEUE_NEXT = 'queueGotoNext',
QUEUE_PREV = 'queueGotoPrev',
GET_STORAGE = 'getStorage',
GET_MESSAGE = 'getMessage',
GET_QSTATUS = 'getQueueStatus',
REGISTER_LISTENER = 'registerListener',
// why are these not camel-case like the others...
HISTORY = 'enhancer-history',
HISTORY_SETUP = 'enhancer-history-setup',
GET_BROWSE_ID = 'YTgetBrowseId',
GET_BROWSE_ID_MOBILE = 'YTgetBrowseIdMobile',
GET_VID_ID_MOBILE = 'YTgetVidIdMobile',
PAUSE_YT_VIDEO = 'YTpauseVideo',
MUTE_YT_VIDEO = 'YTmuteVideo',
}
export const isQueueMessage = (msg: string) => msg.startsWith('queue');
export const enum Event {
QUEUE_CHANGE = 'queueChange',
STORAGE_CHANGE = 'storageChange',
}
export const DRAG_INDEX = 'text/index';
export const DRAG_HEIGHT = 'text/height';
export const QUEUE_KEY = 'enhancer-queue';
export const enum BrowserMessage {
INIT_PAGE = 'initPageScript',
LOAD_CREATORS = 'loadCreators',
GET_YTID = 'getYoutubeId',
GET_VID = 'getNebulaVid',
}
export const QualityType = {
Off: 'Off',
Highest: 'Highest',
Lowest: 'Lowest',
PreferredChooseHigher: 'PreferredChooseHigher',
PreferredChooseLower: 'PreferredChooseLower',
} as const;