Download wp-calypso/client/jetpack-app/index.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 570 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/jetpack-app/index.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/jetpack-app/index.ts
-
curl -L -o index.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/jetpack-app/index.ts
570 Bytes
| import page from '@automattic/calypso-router'; | |
| import { render as clientRender } from 'calypso/controller'; | |
| import { jetpackAppPlans, pageNotFound } from './controller'; | |
| import { makeJetpackAppLayout } from './page-middleware/layout'; | |
| export default function () { | |
| page( '/jetpack-app/plans', jetpackAppPlans, makeJetpackAppLayout, clientRender ); | |
| // Default to /plans page until we have more pages | |
| page( '/jetpack-app', '/jetpack-app/plans' ); | |
| // Show 404 page in all the other cases | |
| page( '/jetpack-app/*', pageNotFound, makeJetpackAppLayout, clientRender ); | |
| } | |