actions.js in BeyondWords – AI audio for publishers 4.5.1, at src/Core/Settings/store/actions.js
| 1 | const actions = { |
| 2 | fetchFromAPI( path ) { |
| 3 | return { |
| 4 | type: 'FETCH_FROM_API', |
| 5 | path, |
| 6 | }; |
| 7 | }, |
| 8 | setIsRegeneratingAudio( value ) { |
| 9 | return { |
| 10 | type: 'SET_IS_REGENERATING_AUDIO', |
| 11 | value, |
| 12 | }; |
| 13 | }, |
| 14 | setSettings( value ) { |
| 15 | return { |
| 16 | type: 'SET_SETTINGS', |
| 17 | value, |
| 18 | }; |
| 19 | }, |
| 20 | setPlayerStyles( value ) { |
| 21 | return { |
| 22 | type: 'SET_PLAYER_STYLES', |
| 23 | value, |
| 24 | }; |
| 25 | }, |
| 26 | setLanguages( value ) { |
| 27 | return { |
| 28 | type: 'SET_LANGUAGES', |
| 29 | value, |
| 30 | }; |
| 31 | }, |
| 32 | setVoices( value ) { |
| 33 | return { |
| 34 | type: 'SET_VOICES', |
| 35 | value, |
| 36 | }; |
| 37 | }, |
| 38 | }; |
| 39 | |
| 40 | export default actions; |
| 41 |