diff options
author | Joram Wilander <jwawilander@gmail.com> | 2016-05-27 16:01:28 -0400 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2016-05-27 16:01:28 -0400 |
commit | 6399a94ce221be3d15e7132654c28cd953075ec6 (patch) | |
tree | 4b1927fdd8374e8bd3cb809ecb720f2689043358 /webapp/utils/constants.jsx | |
parent | ca9f348be6bf62fc888df9a710c9af155872528e (diff) | |
download | chat-6399a94ce221be3d15e7132654c28cd953075ec6.tar.gz chat-6399a94ce221be3d15e7132654c28cd953075ec6.tar.bz2 chat-6399a94ce221be3d15e7132654c28cd953075ec6.zip |
PLT-2672 Refactored posts view with caching (#3054)
* Refactored posts view to use view controller design
* Add post view caching
* Required updates after rebase
* Fixed bug where current channel not set yet was causing breakage
Diffstat (limited to 'webapp/utils/constants.jsx')
-rw-r--r-- | webapp/utils/constants.jsx | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/webapp/utils/constants.jsx b/webapp/utils/constants.jsx index 0e2ae07ea..f1af112a9 100644 --- a/webapp/utils/constants.jsx +++ b/webapp/utils/constants.jsx @@ -161,6 +161,14 @@ export default { EPHEMERAL_MESSAGE: 'ephemeral_message' }, + ScrollTypes: { + FREE: 1, + BOTTOM: 2, + SIDEBBAR_OPEN: 3, + NEW_MESSAGE: 4, + POST: 5 + }, + //SPECIAL_MENTIONS: ['all', 'channel'], SPECIAL_MENTIONS: ['channel'], CHARACTER_LIMIT: 4000, @@ -204,6 +212,9 @@ export default { WEB_VIDEO_HEIGHT: 480, MOBILE_VIDEO_WIDTH: 480, MOBILE_VIDEO_HEIGHT: 360, + MOBILE_SCREEN_WIDTH: 768, + SCROLL_DELAY: 2000, + SCROLL_PAGE_FRACTION: 3, DEFAULT_CHANNEL: 'town-square', DEFAULT_CHANNEL_UI_NAME: 'Town Square', OFFTOPIC_CHANNEL: 'off-topic', @@ -738,5 +749,6 @@ export default { DEFAULT_WEBHOOK_LOGO: logoWebhook, MHPNS: 'https://push.mattermost.com', MTPNS: 'http://push-test.mattermost.com', - BOT_NAME: 'BOT' + BOT_NAME: 'BOT', + POST_COLLAPSE_TIMEOUT: 1000 * 60 * 5 // five minutes }; |