actions.js
2 years ago
constants.js
2 years ago
dispatchers.js
2 years ago
index.js
2 years ago
reducer.js
2 years ago
selectors.js
2 years ago
actions.js
70 lines
| 1 | import constants from './constants'; |
| 2 | |
| 3 | export default { |
| 4 | clearGateway() { |
| 5 | return { |
| 6 | type: constants.clearGateway, |
| 7 | }; |
| 8 | }, |
| 9 | clearScenario() { |
| 10 | return { |
| 11 | type: constants.clearScenario, |
| 12 | }; |
| 13 | }, |
| 14 | setRequest( item ) { |
| 15 | return { |
| 16 | type: constants.setRequest, |
| 17 | item, |
| 18 | }; |
| 19 | }, |
| 20 | setGateway( item ) { |
| 21 | return { |
| 22 | type: constants.setGateway, |
| 23 | item, |
| 24 | }; |
| 25 | }, |
| 26 | setGatewayInner( item ) { |
| 27 | return { |
| 28 | type: constants.setGatewayInner, |
| 29 | item, |
| 30 | }; |
| 31 | }, |
| 32 | setGatewaySpecific( item ) { |
| 33 | return { |
| 34 | type: constants.setGatewaySpecific, |
| 35 | item, |
| 36 | }; |
| 37 | }, |
| 38 | setScenario( item ) { |
| 39 | return { |
| 40 | type: constants.setScenario, |
| 41 | item, |
| 42 | }; |
| 43 | }, |
| 44 | setCurrentScenario( item ) { |
| 45 | return { |
| 46 | type: constants.setCurrentScenario, |
| 47 | item, |
| 48 | }; |
| 49 | }, |
| 50 | registerEventType( item ) { |
| 51 | return { |
| 52 | type: constants.registerEventType, |
| 53 | item, |
| 54 | }; |
| 55 | }, |
| 56 | hardSetGateway( item, value = '' ) { |
| 57 | return { |
| 58 | type: constants.hardSetGateway, |
| 59 | item, |
| 60 | value, |
| 61 | }; |
| 62 | }, |
| 63 | hardSetGatewaySpecific( item, value = '' ) { |
| 64 | return { |
| 65 | type: constants.hardSetGatewaySpecific, |
| 66 | item, |
| 67 | value, |
| 68 | }; |
| 69 | }, |
| 70 | } |