Download wp-calypso/client/my-sites/subscribers/index.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 923 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/my-sites/subscribers/index.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/my-sites/subscribers/index.js
-
curl -L -o index.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/my-sites/subscribers/index.js
923 Bytes
| import page from '@automattic/calypso-router'; | |
| import { | |
| makeLayout, | |
| render as clientRender, | |
| redirectIfCurrentUserCannot, | |
| } from 'calypso/controller'; | |
| import { navigation, siteSelection, sites } from 'calypso/my-sites/controller'; | |
| import { subscribers, jetpackSubscribers } from './controller'; | |
| export default function () { | |
| page( '/subscribers', siteSelection, sites, makeLayout, clientRender ); | |
| page( | |
| '/subscribers/jetpack-subscribers/:domain', | |
| siteSelection, | |
| navigation, | |
| redirectIfCurrentUserCannot( 'list_users' ), | |
| jetpackSubscribers, | |
| makeLayout, | |
| clientRender | |
| ); | |
| page( | |
| '/subscribers/:domain', | |
| siteSelection, | |
| navigation, | |
| redirectIfCurrentUserCannot( 'list_users' ), | |
| subscribers, | |
| makeLayout, | |
| clientRender | |
| ); | |
| page( | |
| '/subscribers/:domain/:subscriberId', | |
| siteSelection, | |
| navigation, | |
| redirectIfCurrentUserCannot( 'list_users' ), | |
| subscribers, | |
| makeLayout, | |
| clientRender | |
| ); | |
| } | |