Download wp-calypso/client/jetpack-cloud/sections/jetpack-social/index.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 597 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/jetpack-cloud/sections/jetpack-social/index.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/jetpack-cloud/sections/jetpack-social/index.js
-
curl -L -o index.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/jetpack-cloud/sections/jetpack-social/index.js
597 Bytes
| import page from '@automattic/calypso-router'; | |
| import { makeLayout, render as clientRender } from 'calypso/controller'; | |
| import { socialPath } from 'calypso/lib/jetpack/paths'; | |
| import { navigation, siteSelection, sites } from 'calypso/my-sites/controller'; | |
| import { connections, redirectIfNotJetpackCloud } from './controller'; | |
| export default function () { | |
| page( socialPath(), siteSelection, redirectIfNotJetpackCloud, sites, makeLayout, clientRender ); | |
| page( | |
| socialPath( ':site' ), | |
| siteSelection, | |
| redirectIfNotJetpackCloud, | |
| navigation, | |
| connections, | |
| makeLayout, | |
| clientRender | |
| ); | |
| } | |