react-code-dataset / wp-calypso /client /my-sites /plugins /plugin-management-v2 /plugin-action-status /messages /install.ts
react-code-dataset / wp-calypso /client /my-sites /plugins /plugin-management-v2 /plugin-action-status /messages /install.ts
Download wp-calypso/client/my-sites/plugins/plugin-management-v2/plugin-action-status/messages/install.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 688 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/my-sites/plugins/plugin-management-v2/plugin-action-status/messages/install.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/my-sites/plugins/plugin-management-v2/plugin-action-status/messages/install.ts
-
curl -L -o install.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/my-sites/plugins/plugin-management-v2/plugin-action-status/messages/install.ts
688 Bytes
| import { | |
| PLUGIN_INSTALLATION_COMPLETED as COMPLETED, | |
| PLUGIN_INSTALLATION_ERROR as ERROR, | |
| PLUGIN_INSTALLATION_IN_PROGRESS as IN_PROGRESS, | |
| PLUGIN_INSTALLATION_INCOMPLETED as INCOMPLETED, | |
| } from 'calypso/state/plugins/installed/status/constants'; | |
| import type { PluginActionMessagesByStatus } from './types'; | |
| const InstallMessages: PluginActionMessagesByStatus = { | |
| [ IN_PROGRESS ]: () => ( translate ) => translate( 'Installing' ), | |
| [ COMPLETED ]: () => ( translate ) => translate( 'Installed' ), | |
| [ ERROR ]: () => ( translate ) => translate( 'Failed to install' ), | |
| [ INCOMPLETED ]: () => ( translate ) => translate( 'Failed to complete install' ), | |
| }; | |
| export default InstallMessages; | |