UNPKG

@twreporter/redux

Version:

redux actions and reducers for twreporter website

103 lines (96 loc) 3.03 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _categorySet = require("@twreporter/core/lib/constants/category-set"); var entities = 'entities'; var indexPage = 'index_page'; var latest = 'latest'; var lists = 'lists'; var topicList = 'topic_list'; var selectedPost = 'selected_post'; var selectedTopic = 'selected_topic'; var articlesByAuthor = 'articlesByAuthor'; var auth = 'auth'; var authorsList = 'authorsList'; var bookmarks = 'bookmarks'; var bookmarkWidget = 'bookmarkWidget'; var entitiesForAuthors = 'entitiesForAuthors'; var searchedAuthorsList = 'searchedAuthorsList'; var user = 'user'; var analytics = 'analytics'; var footprints = 'footprints'; var donationHistory = 'donationHistory'; var postReviews = 'postReviews'; var postFollowups = 'postFollowups'; // sections in index_page var editorPicksSection = 'editor_picks_section'; var infographicsSection = 'infographics_section'; var latestSection = 'latest_section'; var latestTopicSection = 'latest_topic_section'; var photosSection = 'photos_section'; var reviewsSection = 'reviews_section'; var topicsSection = 'topics_section'; // categories in index_page var categories = { world: _categorySet.CATEGORY_PATH.world, humanrights: _categorySet.CATEGORY_PATH.humanrights, politicsAndSociety: _categorySet.CATEGORY_PATH.politicsAndSociety, health: _categorySet.CATEGORY_PATH.health, environment: _categorySet.CATEGORY_PATH.environment, econ: _categorySet.CATEGORY_PATH.econ, culture: _categorySet.CATEGORY_PATH.culture, education: _categorySet.CATEGORY_PATH.education }; // time stamp for next popup var nextNotifyPopupTS = 'nextNotifyPopupTS'; /** * fields in the `entities` field */ var postsInEntities = 'posts'; var topicsInEntities = 'topics'; // origins var origins = 'origins'; // settings var settings = 'settings'; var _default = exports["default"] = { categories: categories, sections: { editorPicksSection: editorPicksSection, infographicsSection: infographicsSection, latestSection: latestSection, latestTopicSection: latestTopicSection, photosSection: photosSection, reviewsSection: reviewsSection, topicsSection: topicsSection }, selectedPost: selectedPost, selectedTopic: selectedTopic, entities: entities, indexPage: indexPage, latest: latest, lists: lists, topicList: topicList, postsInEntities: postsInEntities, topicsInEntities: topicsInEntities, origins: origins, // twreporter-react articlesByAuthor: articlesByAuthor, auth: auth, authorsList: authorsList, bookmarks: bookmarks, bookmarkWidget: bookmarkWidget, entitiesForAuthors: entitiesForAuthors, nextNotifyPopupTS: nextNotifyPopupTS, searchedAuthorsList: searchedAuthorsList, settings: settings, relatedPostsOf: 'relatedPostsOf', featureTopic: 'featureTopic', user: user, analytics: analytics, footprints: footprints, donationHistory: donationHistory, postReviews: postReviews, postFollowups: postFollowups };