Download wp-calypso/client/a8c-for-agencies/sections/plugins/index.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 894 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/a8c-for-agencies/sections/plugins/index.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/a8c-for-agencies/sections/plugins/index.tsx
-
curl -L -o index.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/a8c-for-agencies/sections/plugins/index.tsx
894 Bytes
| import page from '@automattic/calypso-router'; | |
| import { requireAccessContext } from 'calypso/a8c-for-agencies/controller'; | |
| import { makeLayout, render as clientRender } from 'calypso/controller'; | |
| import { renderPluginsDashboard } from 'calypso/my-sites/plugins/controller'; | |
| import { pluginsContext, pluginManagementContext, pluginDetailsContext } from './controller'; | |
| import './style.scss'; | |
| export default function () { | |
| page( '/plugins', requireAccessContext, pluginsContext, makeLayout, clientRender ); | |
| page( '/plugins/:slug', requireAccessContext, pluginsContext, makeLayout, clientRender ); | |
| page( | |
| '/plugins/manage/sites', | |
| requireAccessContext, | |
| pluginManagementContext, | |
| renderPluginsDashboard, | |
| makeLayout, | |
| clientRender | |
| ); | |
| page( | |
| '/plugins/manage/sites/:slug', | |
| requireAccessContext, | |
| pluginDetailsContext, | |
| renderPluginsDashboard, | |
| makeLayout, | |
| clientRender | |
| ); | |
| } | |