Download wp-calypso/client/dashboard/data/site-themes.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 264 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/dashboard/data/site-themes.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/dashboard/data/site-themes.ts
-
curl -L -o site-themes.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/dashboard/data/site-themes.ts
264 Bytes
| import wpcom from 'calypso/lib/wp'; | |
| export interface Theme { | |
| is_block_theme: boolean; | |
| } | |
| export async function fetchSiteActiveThemes( siteId: number ) { | |
| return wpcom.req.get( { | |
| path: `/sites/${ siteId }/themes?status=active`, | |
| apiNamespace: 'wp/v2', | |
| } ); | |
| } | |