forked from shri-2015-org/shrimp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.js
60 lines (56 loc) · 1.66 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
const SC = {
ADD_MESSAGE: 'SC_ADD_MESSAGE',
ADD_CHANNEL: 'SC_ADD_CHANNEL',
INIT: 'SC_INIT',
SIGN_IN: 'SC_SIGN_IN',
JOIN_TO_CHANNEL: 'SC_JOIN_TO_CHANNEL',
NEW_USER_JOINED_TO_CHANNEL: 'SC_NEW_USER_JOINED_TO_CHANNEL',
TYPING: 'SC_TYPING',
CHANGE_USER_INFO: 'SC_CHANGE_USER_INFO',
SET_CHANNEL_HISTORY: 'SC_SET_CHANNEL_HISTORY',
JOIN_USER: 'SC_JOIN_USER',
ADD_DIRECT_CHANNEL: 'SC_ADD_DIRECT_CHANNEL',
};
const CS = {
ADD_MESSAGE: 'CS_ADD_MESSAGE',
ADD_CHANNEL: 'CS_ADD_CHANNEL',
SET_FAVORITE_CHANNEL: 'CS_SET_FAVORITE_CHANNEL',
SIGN_IN: 'CS_SIGN_IN',
INIT: 'CS_INIT',
JOIN_TO_CHANNEL: 'CS_JOIN_TO_CHANNEL',
TYPING: 'CS_TYPING',
CHANGE_USER_INFO: 'CS_CHANGE_USER_INFO',
MARK_AS_READ: 'CS_MARK_AS_READ',
ADD_DIRECT_CHANNEL: 'CS_ADD_DIRECT_CHANNEL',
};
const A = {
ADD_MESSAGE: 'ADD_MESSAGE',
REMOVE_CHANNEL: 'REMOVE_CHANNEL',
SET_LOCAL_STATE: 'SET_LOCAL_STATE',
SET_CURRENT_CHANNEL: 'SET_CURRENT_CHANNEL',
ADD_DIRTY_CHANNEL: 'ADD_DIRTY_CHANNEL',
ADD_DIRTY_DIRECT_CHANNEL: 'ADD_DIRTY_DIRECT_CHANNEL',
REPLACE_DIRTY_DIRECT_CHANNEL: 'REPLACE_DIRTY_DIRECT_CHANNEL',
REMOVE_DIRTY_DIRECT_CHANNEL: 'REMOVE_DIRTY_DIRECT_CHANNEL',
INIT: 'INIT',
INIT_USER: 'INIT_USER',
LOG_OUT: 'LOG_OUT',
JOIN_TO_CHANNEL: 'JOIN_TO_CHANNEL',
REPLACE_DIRTY_CHANNEL: 'REPLACE_DIRTY_CHANNEL',
REMOVE_DIRTY_CHANNEL: 'REMOVE_DIRTY_CHANNEL',
TYPING: 'TYPING',
CHANGE_USER_INFO: 'CHANGE_USER_INFO',
LOAD_CHANNEL_HISTORY: 'LOAD_CHANNEL_HISTORY',
JOIN_USER: 'JOIN_USER',
CHANGE_MESSAGE_FILTER_VALUE: 'CHANGE_MESSAGE_FILTER_VALUE',
};
const MOD = {
MAX_MESSAGE_LENGTH: 220,
TYPING_TIME: 2000,
};
module.exports = {
SC: SC,
CS: CS,
A: A,
MOD: MOD,
};