Press n or j to go to the next uncovered block, b, p or k for the previous block.
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 61 | 1x 1x 1x 1x 1x 1x | import { SET_DOCUMENTS, SET_DOCUMENT, FETCH_DOCUMENTS, SET_FILTER_TYPE, SET_FILTER_UNREAD, SET_DOC_READ } from './constants'; /** * Fetch documents * @return {Object} */ export const fetchDocuments = payload => ({ type: FETCH_DOCUMENTS, payload, }); /** * Set the fetched documents * @param {Array} documents * @returns {Object} */ export const setDocuments = documents => ({ type: SET_DOCUMENTS, payload: { documents }, }); /** * Set the document type filter * @param {String} filterType * @returns {Object} */ export const setFilterType = filterType => ({ type: SET_FILTER_TYPE, payload: { filterType }, }); /** * Set the document unread filter * @param {Boolean} unread * @returns {Object} */ export const setFilterUnread = unread => ({ type: SET_FILTER_UNREAD, payload: { unread }, }); /** * Set the document iddms that the user is currently viewing * @param {String} iddms * @returns {Object} */ export const setDoc = iddms => ({ type: SET_DOCUMENT, payload: { iddms }, }); /** * Set a document read flag * @param {String} iddms * @returns {Object} */ export const setDocRead = iddms => ({ type: SET_DOC_READ, payload: { iddms }, }); |