Download wp-calypso/client/state/checklist/actions.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 1.3 kB
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/checklist/actions.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/state/checklist/actions.js
-
curl -L -o actions.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/checklist/actions.js
1.3 kB
| import { | |
| SITE_CHECKLIST_RECEIVE, | |
| SITE_CHECKLIST_REQUEST, | |
| SITE_CHECKLIST_TASK_UPDATE, | |
| } from 'calypso/state/action-types'; | |
| import 'calypso/state/data-layer/wpcom/checklist'; | |
| import 'calypso/state/checklist/init'; | |
| /** | |
| * Action creator function: SITE_CHECKLIST_RECEIVE | |
| * @param {string} siteId for the checklist | |
| * @param {Object} checklist the new checklist state | |
| * @returns {Object} action object | |
| */ | |
| export function receiveSiteChecklist( siteId, checklist ) { | |
| return { | |
| type: SITE_CHECKLIST_RECEIVE, | |
| siteId, | |
| checklist, | |
| }; | |
| } | |
| /** | |
| * Action creator function: SITE_CHECKLIST_REQUEST | |
| * @param {string} siteId for the checklist | |
| * @param {boolean} isSiteEligibleForFSE whether or not the site is eligible for Legacy Full Site Editing | |
| * @returns {Object} action object | |
| */ | |
| export const requestSiteChecklist = ( siteId, isSiteEligibleForFSE = false ) => ( { | |
| type: SITE_CHECKLIST_REQUEST, | |
| siteId, | |
| isSiteEligibleForFSE, | |
| meta: { | |
| dataLayer: { | |
| trackRequest: true, | |
| }, | |
| }, | |
| } ); | |
| /** | |
| * Action creator function: SITE_CHECKLIST_TASK_UPDATE | |
| * @param {string} siteId for the checklist | |
| * @param {string} taskId for the task | |
| * @returns {Object} action object | |
| */ | |
| export const requestSiteChecklistTaskUpdate = ( siteId, taskId ) => ( { | |
| type: SITE_CHECKLIST_TASK_UPDATE, | |
| siteId, | |
| taskId, | |
| } ); | |