2021-07-28 13:15:52 +00:00
|
|
|
const cons = {
|
|
|
|
secretKey: {
|
|
|
|
ACCESS_TOKEN: 'cinny_access_token',
|
|
|
|
DEVICE_ID: 'cinny_device_id',
|
|
|
|
USER_ID: 'cinny_user_id',
|
|
|
|
BASE_URL: 'cinny_hs_base_url',
|
|
|
|
},
|
|
|
|
DEVICE_DISPLAY_NAME: 'Cinny Web',
|
|
|
|
actions: {
|
|
|
|
navigation: {
|
|
|
|
CHANGE_TAB: 'CHANGE_TAB',
|
|
|
|
SELECT_ROOM: 'SELECT_ROOM',
|
|
|
|
TOGGLE_PEOPLE_DRAWER: 'TOGGLE_PEOPLE_DRAWER',
|
|
|
|
OPEN_INVITE_LIST: 'OPEN_INVITE_LIST',
|
|
|
|
OPEN_PUBLIC_CHANNELS: 'OPEN_PUBLIC_CHANNELS',
|
|
|
|
OPEN_CREATE_CHANNEL: 'OPEN_CREATE_CHANNEL',
|
|
|
|
OPEN_INVITE_USER: 'OPEN_INVITE_USER',
|
|
|
|
OPEN_SETTINGS: 'OPEN_SETTINGS',
|
2021-08-14 04:49:29 +00:00
|
|
|
OPEN_EMOJIBOARD: 'OPEN_EMOJIBOARD',
|
2021-07-28 13:15:52 +00:00
|
|
|
},
|
|
|
|
room: {
|
|
|
|
JOIN: 'JOIN',
|
|
|
|
LEAVE: 'LEAVE',
|
|
|
|
CREATE: 'CREATE',
|
|
|
|
error: {
|
2021-08-08 16:26:34 +00:00
|
|
|
CREATE: 'ERROR_CREATE',
|
2021-07-28 13:15:52 +00:00
|
|
|
},
|
|
|
|
},
|
2021-08-08 16:26:34 +00:00
|
|
|
settings: {
|
|
|
|
TOGGLE_MARKDOWN: 'TOGGLE_MARKDOWN',
|
|
|
|
},
|
2021-07-28 13:15:52 +00:00
|
|
|
},
|
|
|
|
events: {
|
|
|
|
navigation: {
|
|
|
|
TAB_CHANGED: 'TAB_CHANGED',
|
|
|
|
ROOM_SELECTED: 'ROOM_SELECTED',
|
|
|
|
PEOPLE_DRAWER_TOGGLED: 'PEOPLE_DRAWER_TOGGLED',
|
|
|
|
INVITE_LIST_OPENED: 'INVITE_LIST_OPENED',
|
|
|
|
PUBLIC_CHANNELS_OPENED: 'PUBLIC_CHANNELS_OPENED',
|
|
|
|
CREATE_CHANNEL_OPENED: 'CREATE_CHANNEL_OPENED',
|
|
|
|
INVITE_USER_OPENED: 'INVITE_USER_OPENED',
|
|
|
|
SETTINGS_OPENED: 'SETTINGS_OPENED',
|
2021-08-14 04:49:29 +00:00
|
|
|
EMOJIBOARD_OPENED: 'EMOJIBOARD_OPENED',
|
2021-07-28 13:15:52 +00:00
|
|
|
},
|
|
|
|
roomList: {
|
|
|
|
ROOMLIST_UPDATED: 'ROOMLIST_UPDATED',
|
|
|
|
INVITELIST_UPDATED: 'INVITELIST_UPDATED',
|
|
|
|
ROOM_JOINED: 'ROOM_JOINED',
|
|
|
|
ROOM_LEAVED: 'ROOM_LEAVED',
|
|
|
|
ROOM_CREATED: 'ROOM_CREATED',
|
|
|
|
},
|
|
|
|
roomTimeline: {
|
|
|
|
EVENT: 'EVENT',
|
|
|
|
PAGINATED: 'PAGINATED',
|
|
|
|
TYPING_MEMBERS_UPDATED: 'TYPING_MEMBERS_UPDATED',
|
|
|
|
READ_RECEIPT: 'READ_RECEIPT',
|
|
|
|
},
|
|
|
|
roomsInput: {
|
|
|
|
MESSAGE_SENT: 'MESSAGE_SENT',
|
|
|
|
FILE_UPLOADED: 'FILE_UPLOADED',
|
|
|
|
UPLOAD_PROGRESS_CHANGES: 'UPLOAD_PROGRESS_CHANGES',
|
|
|
|
FILE_UPLOAD_CANCELED: 'FILE_UPLOAD_CANCELED',
|
|
|
|
ATTACHMENT_CANCELED: 'ATTACHMENT_CANCELED',
|
|
|
|
},
|
2021-08-08 16:26:34 +00:00
|
|
|
settings: {
|
|
|
|
MARKDOWN_TOGGLED: 'MARKDOWN_TOGGLED',
|
|
|
|
},
|
2021-07-28 13:15:52 +00:00
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
Object.freeze(cons);
|
|
|
|
|
|
|
|
export default cons;
|