Download src/js/actions/GlobalStateActions.js from merve/git-101: direct link, hf CLI and curl.
- Browser
- Download file 842 Bytes
-
https://huggingface.co/spaces/merve/git-101/resolve/main/src/js/actions/GlobalStateActions.js
- Command line
-
hf download hf://spaces/merve/git-101/src/js/actions/GlobalStateActions.js
-
curl -L -o GlobalStateActions.js https://huggingface.co/spaces/merve/git-101/resolve/main/src/js/actions/GlobalStateActions.js
842 Bytes
| ; | |
| var AppConstants = require('../constants/AppConstants'); | |
| var AppDispatcher = require('../dispatcher/AppDispatcher'); | |
| var ActionTypes = AppConstants.ActionTypes; | |
| var GlobalStateActions = { | |
| changeIsAnimating: function(isAnimating) { | |
| AppDispatcher.handleViewAction({ | |
| type: ActionTypes.CHANGE_IS_ANIMATING, | |
| isAnimating: isAnimating | |
| }); | |
| }, | |
| levelSolved: function() { | |
| AppDispatcher.handleViewAction({ | |
| type: ActionTypes.LEVEL_SOLVED, | |
| }); | |
| }, | |
| disableLevelInstructions: function() { | |
| AppDispatcher.handleViewAction({ | |
| type: ActionTypes.DISABLE_LEVEL_INSTRUCTIONS, | |
| }); | |
| }, | |
| changeFlipTreeY: function(flipTreeY) { | |
| AppDispatcher.handleViewAction({ | |
| type: ActionTypes.CHANGE_FLIP_TREE_Y, | |
| flipTreeY: flipTreeY | |
| }); | |
| } | |
| }; | |
| module.exports = GlobalStateActions; | |