From cf7a05f80f68b5b1c8bcc0089679dd497cec2506 Mon Sep 17 00:00:00 2001 From: =Corey Hulen Date: Sun, 14 Jun 2015 23:53:32 -0800 Subject: first commit --- web/react/utils/constants.jsx | 78 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 web/react/utils/constants.jsx (limited to 'web/react/utils/constants.jsx') diff --git a/web/react/utils/constants.jsx b/web/react/utils/constants.jsx new file mode 100644 index 000000000..0a3b1db3d --- /dev/null +++ b/web/react/utils/constants.jsx @@ -0,0 +1,78 @@ +// Copyright (c) 2015 Spinpunch, Inc. All Rights Reserved. +// See License.txt for license information. + +var keyMirror = require('keymirror'); + +module.exports = { + ActionTypes: keyMirror({ + RECIEVED_ERROR: null, + + CLICK_CHANNEL: null, + CREATE_CHANNEL: null, + RECIEVED_CHANNELS: null, + RECIEVED_MORE_CHANNELS: null, + RECIEVED_CHANNEL_EXTRA_INFO: null, + + RECIEVED_POSTS: null, + RECIEVED_SEARCH: null, + RECIEVED_POST_SELECTED: null, + RECIEVED_MENTION_DATA: null, + RECIEVED_ADD_MENTION: null, + + RECIEVED_PROFILES: null, + RECIEVED_ME: null, + RECIEVED_SESSIONS: null, + RECIEVED_AUDITS: null, + RECIEVED_TEAMS: null, + RECIEVED_STATUSES: null, + + RECIEVED_MSG: null, + }), + + PayloadSources: keyMirror({ + SERVER_ACTION: null, + VIEW_ACTION: null + }), + CHARACTER_LIMIT: 4000, + IMAGE_TYPES: ['jpg', 'gif', 'bmp', 'png'], + AUDIO_TYPES: ['mp3', 'wav', 'wma', 'm4a', 'flac', 'aac'], + VIDEO_TYPES: ['mp4', 'avi', 'webm', 'mkv', 'wmv', 'mpg', 'mov', 'flv'], + SPREADSHEET_TYPES: ['ppt', 'pptx', 'csv'], + EXCEL_TYPES: ['xlsx'], + WORD_TYPES: ['doc', 'docx'], + CODE_TYPES: ['css', 'html', 'js', 'php', 'rb'], + PDF_TYPES: ['pdf'], + PATCH_TYPES: ['patch'], + ICON_FROM_TYPE: {'audio': 'audio', 'video': 'video', 'spreadsheet': 'ppt', 'pdf': 'pdf', 'code': 'code' , 'word': 'word' , 'excel': 'excel' , 'patch': 'patch', 'other': 'generic'}, + MAX_DISPLAY_FILES: 5, + MAX_FILE_SIZE: 50000000, // 50 MB + DEFAULT_CHANNEL: 'town-square', + POST_CHUNK_SIZE: 60, + RESERVED_DOMAINS: [ + "www", + "web", + "admin", + "support", + "notify", + "test", + "demo", + "mail", + "team", + "channel", + "internal", + "localhost", + "stag", + "post", + "cluster", + "api", + ], + RESERVED_USERNAMES: [ + "valet", + "all", + "channel", + ], + MONTHS: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], + MAX_DMS: 10, + ONLINE_ICON_SVG: "", + OFFLINE_ICON_SVG: "" +}; -- cgit v1.2.3-1-g7c22