Gab-Social/app/javascript
mgabdev 0356e21747 Added redux functionality for queueing/dequeueing timelines
using streaming.js, when a status comes in to the current page, it queues up using updateTimelineQueue action, it then goes to the reducer to add "queuedItems" to state (up to max:40) and to tally up all count in that timeilne state "totalQueuedItemsCount".

the dequeueTimeline action takes in a "timelineId", "expandFunc", and "optionalExpandArgs". when clicking on the "click to load more" it passes in the timelineId (e.g. "home", "community", etc.) and the "handleLoadMore" function from the timeline component. if within the range of the max: 40, it pushes them to the dom, if over the max: 40 it clears the timeline and refreshes the page/timeline to show the most recent 20 statuses. Then, it resets the "queuedItems" and "totalQueuedItemsCount" in timeline state.

if no expandFunc is added, and timeline is "home" or "community" it expands those timelines with "optionalExpandArgs". Otherwise, it queues up to any other timeline (e.g. "hashtags", etc.)
2019-07-11 12:09:41 -04:00
..
fonts Gab Social. All are welcome. 2019-07-02 03:10:25 -04:00
gabsocial Added redux functionality for queueing/dequeueing timelines 2019-07-11 12:09:41 -04:00
images Gab Social. All are welcome. 2019-07-02 03:10:25 -04:00
packs Gab Social. All are welcome. 2019-07-02 03:10:25 -04:00
styles Added TimelineQueueButtonHeader component, styles 2019-07-10 23:54:19 -04:00