Download wp-calypso/desktop/app/lib/platform/mac/dock-menu.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 380 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/desktop/app/lib/platform/mac/dock-menu.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/desktop/app/lib/platform/mac/dock-menu.js
-
curl -L -o dock-menu.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/desktop/app/lib/platform/mac/dock-menu.js
380 Bytes
| const ipc = require( '../../../lib/calypso-commands' ); | |
| const calypsoMenu = require( '../../../lib/menu/calypso-menu' ); | |
| module.exports = function ( app, appWindow ) { | |
| return calypsoMenu( appWindow ).concat( | |
| { | |
| type: 'separator', | |
| }, | |
| { | |
| label: 'Sign out', | |
| requiresUser: true, | |
| enabled: false, | |
| click: function () { | |
| ipc.signOut( appWindow ); | |
| }, | |
| } | |
| ); | |
| }; | |