Download wp-calypso/client/jetpack-cloud/sections/auth/index.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 438 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/jetpack-cloud/sections/auth/index.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/jetpack-cloud/sections/auth/index.ts
-
curl -L -o index.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/jetpack-cloud/sections/auth/index.ts
438 Bytes
| import config from '@automattic/calypso-config'; | |
| import page from '@automattic/calypso-router'; | |
| import { makeLayout, render as clientRender } from 'calypso/controller'; | |
| import { connect, tokenRedirect } from './controller'; | |
| export default (): void => { | |
| if ( config.isEnabled( 'jetpack-cloud' ) ) { | |
| page( '/connect', connect, makeLayout, clientRender ); | |
| page( '/connect/oauth/token', tokenRedirect, makeLayout, clientRender ); | |
| } | |
| }; | |