Download wp-calypso/client/jetpack-cloud/sections/agency-dashboard/index.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 529 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/jetpack-cloud/sections/agency-dashboard/index.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/jetpack-cloud/sections/agency-dashboard/index.ts
-
curl -L -o index.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/jetpack-cloud/sections/agency-dashboard/index.ts
529 Bytes
| import { isEnabled } from '@automattic/calypso-config'; | |
| import page from '@automattic/calypso-router'; | |
| import { makeLayout, render as clientRender } from 'calypso/controller/index.web'; | |
| import { agencyDashboardContext, connectUrlContext } from './controller'; | |
| export default function (): void { | |
| page( '/dashboard/:filter(favorites)?', agencyDashboardContext, makeLayout, clientRender ); | |
| if ( isEnabled( 'jetpack/url-only-connection' ) ) { | |
| page( '/dashboard/connect-url', connectUrlContext, makeLayout, clientRender ); | |
| } | |
| } | |