Download wp-calypso/client/hosting/performance/index.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 730 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/hosting/performance/index.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/hosting/performance/index.tsx
-
curl -L -o index.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/hosting/performance/index.tsx
730 Bytes
| import page from '@automattic/calypso-router'; | |
| import { | |
| makeLayout, | |
| render as clientRender, | |
| redirectToHostingPromoIfNotAtomic, | |
| } from 'calypso/controller'; | |
| import { siteSelection, sites, navigation } from 'calypso/my-sites/controller'; | |
| import { PERFORMANCE } from 'calypso/sites/components/site-preview-pane/constants'; | |
| import { siteDashboard } from 'calypso/sites/controller'; | |
| import { sitePerformance } from './controller'; | |
| export default function () { | |
| page( '/sites/performance', siteSelection, sites, makeLayout, clientRender ); | |
| page( | |
| '/sites/performance/:site', | |
| siteSelection, | |
| redirectToHostingPromoIfNotAtomic, | |
| navigation, | |
| sitePerformance, | |
| siteDashboard( PERFORMANCE ), | |
| makeLayout, | |
| clientRender | |
| ); | |
| } | |