Download wp-calypso/client/my-sites/activity/index.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 620 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/my-sites/activity/index.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/my-sites/activity/index.js
-
curl -L -o index.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/my-sites/activity/index.js
620 Bytes
| import page from '@automattic/calypso-router'; | |
| import { makeLayout, render as clientRender } from 'calypso/controller'; | |
| import wrapInSiteOffsetProvider from 'calypso/lib/wrap-in-site-offset'; | |
| import { navigation, siteSelection, sites } from 'calypso/my-sites/controller'; | |
| import { activity, showNotAuthorizedForNonAdmins } from './controller'; | |
| export default function () { | |
| page( '/activity-log', siteSelection, sites, makeLayout, clientRender ); | |
| page( | |
| '/activity-log/:site', | |
| siteSelection, | |
| navigation, | |
| activity, | |
| showNotAuthorizedForNonAdmins, | |
| wrapInSiteOffsetProvider, | |
| makeLayout, | |
| clientRender | |
| ); | |
| } | |