|
1 |
| -/* eslint-disable @typescript-eslint/explicit-module-boundary-types */ |
2 |
| -import * as types from '../constants/actionTypes'; |
3 |
| - |
4 |
| -export const save = (newSeries, newSeriesName) => ({ |
5 |
| - type: types.SAVE, |
6 |
| - payload: { newSeries, newSeriesName }, |
7 |
| -}); |
8 |
| - |
9 |
| -export const deleteSeries = () => ({ |
10 |
| - type: types.DELETE_SERIES, |
11 |
| -}); |
12 |
| - |
13 |
| -export const toggleMode = (mode) => ({ |
14 |
| - type: types.TOGGLE_MODE, |
15 |
| - payload: mode, |
16 |
| -}); |
17 |
| - |
18 |
| -export const addNewSnapshots = (tabsObj) => ({ |
19 |
| - type: types.NEW_SNAPSHOTS, |
20 |
| - payload: tabsObj, |
21 |
| -}); |
22 |
| - |
23 |
| -export const initialConnect = (tabsObj) => ({ |
24 |
| - type: types.INITIAL_CONNECT, |
25 |
| - payload: tabsObj, |
26 |
| -}); |
27 |
| - |
28 |
| -export const setPort = (port) => ({ |
29 |
| - type: types.SET_PORT, |
30 |
| - payload: port, |
31 |
| -}); |
32 |
| - |
33 |
| -export const emptySnapshots = () => ({ |
34 |
| - type: types.EMPTY, |
35 |
| -}); |
36 |
| - |
37 |
| -export const changeView = (index) => ({ |
38 |
| - type: types.CHANGE_VIEW, |
39 |
| - payload: index, |
40 |
| -}); |
41 |
| - |
42 |
| -export const changeSlider = (index) => ({ |
43 |
| - type: types.CHANGE_SLIDER, |
44 |
| - payload: index, |
45 |
| -}); |
46 |
| - |
47 |
| -export const moveBackward = () => ({ |
48 |
| - type: types.MOVE_BACKWARD, |
49 |
| - payload: false, |
50 |
| -}); |
51 |
| - |
52 |
| -export const moveForward = () => ({ |
53 |
| - type: types.MOVE_FORWARD, |
54 |
| - payload: false, |
55 |
| -}); |
56 |
| - |
57 |
| -export const playForward = () => ({ |
58 |
| - type: types.MOVE_FORWARD, |
59 |
| - payload: true, |
60 |
| -}); |
61 |
| - |
62 |
| -export const pause = () => ({ |
63 |
| - type: types.PAUSE, |
64 |
| -}); |
65 |
| - |
66 |
| -export const startPlaying = (intervalId) => ({ |
67 |
| - type: types.PLAY, |
68 |
| - payload: intervalId, |
69 |
| -}); |
70 |
| - |
71 |
| -export const importSnapshots = (newSnaps) => ({ |
72 |
| - type: types.IMPORT, |
73 |
| - payload: newSnaps, |
74 |
| -}); |
75 |
| - |
76 |
| -export const setTab = (tab) => ({ |
77 |
| - type: types.SET_TAB, |
78 |
| - payload: tab, |
79 |
| -}); |
80 |
| - |
81 |
| -export const deleteTab = (tab) => ({ |
82 |
| - type: types.DELETE_TAB, |
83 |
| - payload: tab, |
84 |
| -}); |
85 |
| - |
86 |
| -export const noDev = (tab) => ({ |
87 |
| - type: types.NO_DEV, |
88 |
| - payload: tab, |
89 |
| -}); |
90 |
| - |
91 |
| -export const toggleExpanded = (node) => ({ |
92 |
| - type: types.TOGGLE_EXPANDED, |
93 |
| - payload: node, |
94 |
| -}); |
95 |
| - |
96 |
| -export const launchContentScript = (tab) => ({ |
97 |
| - type: types.LAUNCH_CONTENT, |
98 |
| - payload: tab, |
99 |
| -}); |
100 |
| - |
101 |
| -export const resetSlider = () => ({ |
102 |
| - type: types.SLIDER_ZERO, |
103 |
| -}); |
104 |
| - |
105 |
| -export const onHover = (rtid) => ({ |
106 |
| - type: types.ON_HOVER, |
107 |
| - //the payload should be something to relate the component we're hovering and highlight that component on the DOM |
108 |
| - payload: rtid, |
109 |
| -}); |
110 |
| - |
111 |
| -export const onHoverExit = (rtid) => ({ |
112 |
| - type: types.ON_HOVER_EXIT, |
113 |
| - payload: rtid, |
114 |
| -}); |
115 |
| - |
116 |
| -export const setCurrentLocation = (tabsObj) => ({ |
117 |
| - type: types.SET_CURRENT_LOCATION, |
118 |
| - payload: tabsObj, |
119 |
| -}); |
120 |
| - |
121 |
| -export const setCurrentTabInApp = (currentTabInApp) => ({ |
122 |
| - type: types.SET_CURRENT_TAB_IN_APP, |
123 |
| - payload: currentTabInApp, |
124 |
| -}); |
125 |
| - |
126 |
| -export const tutorialSaveSeriesToggle = (toggleVal) => ({ |
127 |
| - type: types.TUTORIAL_SAVE_SERIES_TOGGLE, |
128 |
| - payload: toggleVal, |
129 |
| -}); |
| 1 | +// /* eslint-disable @typescript-eslint/explicit-module-boundary-types */ |
| 2 | +// import * as types from '../constants/actionTypes'; |
| 3 | + |
| 4 | +// export const save = (newSeries, newSeriesName) => ({ |
| 5 | +// type: types.SAVE, |
| 6 | +// payload: { newSeries, newSeriesName }, |
| 7 | +// }); |
| 8 | + |
| 9 | +// export const deleteSeries = () => ({ |
| 10 | +// type: types.DELETE_SERIES, |
| 11 | +// }); |
| 12 | + |
| 13 | +// export const toggleMode = (mode) => ({ |
| 14 | +// type: types.TOGGLE_MODE, |
| 15 | +// payload: mode, |
| 16 | +// }); |
| 17 | + |
| 18 | +// export const addNewSnapshots = (tabsObj) => ({ |
| 19 | +// type: types.NEW_SNAPSHOTS, |
| 20 | +// payload: tabsObj, |
| 21 | +// }); |
| 22 | + |
| 23 | +// export const initialConnect = (tabsObj) => ({ |
| 24 | +// type: types.INITIAL_CONNECT, |
| 25 | +// payload: tabsObj, |
| 26 | +// }); |
| 27 | + |
| 28 | +// export const setPort = (port) => ({ |
| 29 | +// type: types.SET_PORT, |
| 30 | +// payload: port, |
| 31 | +// }); |
| 32 | + |
| 33 | +// export const emptySnapshots = () => ({ |
| 34 | +// type: types.EMPTY, |
| 35 | +// }); |
| 36 | + |
| 37 | +// export const changeView = (index) => ({ |
| 38 | +// type: types.CHANGE_VIEW, |
| 39 | +// payload: index, |
| 40 | +// }); |
| 41 | + |
| 42 | +// export const changeSlider = (index) => ({ |
| 43 | +// type: types.CHANGE_SLIDER, |
| 44 | +// payload: index, |
| 45 | +// }); |
| 46 | + |
| 47 | +// export const moveBackward = () => ({ |
| 48 | +// type: types.MOVE_BACKWARD, |
| 49 | +// payload: false, |
| 50 | +// }); |
| 51 | + |
| 52 | +// export const moveForward = () => ({ |
| 53 | +// type: types.MOVE_FORWARD, |
| 54 | +// payload: false, |
| 55 | +// }); |
| 56 | + |
| 57 | +// export const playForward = () => ({ |
| 58 | +// type: types.MOVE_FORWARD, |
| 59 | +// payload: true, |
| 60 | +// }); |
| 61 | + |
| 62 | +// export const pause = () => ({ |
| 63 | +// type: types.PAUSE, |
| 64 | +// }); |
| 65 | + |
| 66 | +// export const startPlaying = (intervalId) => ({ |
| 67 | +// type: types.PLAY, |
| 68 | +// payload: intervalId, |
| 69 | +// }); |
| 70 | + |
| 71 | +// export const importSnapshots = (newSnaps) => ({ |
| 72 | +// type: types.IMPORT, |
| 73 | +// payload: newSnaps, |
| 74 | +// }); |
| 75 | + |
| 76 | +// export const setTab = (tab) => ({ |
| 77 | +// type: types.SET_TAB, |
| 78 | +// payload: tab, |
| 79 | +// }); |
| 80 | + |
| 81 | +// export const deleteTab = (tab) => ({ |
| 82 | +// type: types.DELETE_TAB, |
| 83 | +// payload: tab, |
| 84 | +// }); |
| 85 | + |
| 86 | +// export const noDev = (tab) => ({ |
| 87 | +// type: types.NO_DEV, |
| 88 | +// payload: tab, |
| 89 | +// }); |
| 90 | + |
| 91 | +// export const toggleExpanded = (node) => ({ |
| 92 | +// type: types.TOGGLE_EXPANDED, |
| 93 | +// payload: node, |
| 94 | +// }); |
| 95 | + |
| 96 | +// export const launchContentScript = (tab) => ({ |
| 97 | +// type: types.LAUNCH_CONTENT, |
| 98 | +// payload: tab, |
| 99 | +// }); |
| 100 | + |
| 101 | +// export const resetSlider = () => ({ |
| 102 | +// type: types.SLIDER_ZERO, |
| 103 | +// }); |
| 104 | + |
| 105 | +// export const onHover = (rtid) => ({ |
| 106 | +// type: types.ON_HOVER, |
| 107 | +// //the payload should be something to relate the component we're hovering and highlight that component on the DOM |
| 108 | +// payload: rtid, |
| 109 | +// }); |
| 110 | + |
| 111 | +// export const onHoverExit = (rtid) => ({ |
| 112 | +// type: types.ON_HOVER_EXIT, |
| 113 | +// payload: rtid, |
| 114 | +// }); |
| 115 | + |
| 116 | +// export const setCurrentLocation = (tabsObj) => ({ |
| 117 | +// type: types.SET_CURRENT_LOCATION, |
| 118 | +// payload: tabsObj, |
| 119 | +// }); |
| 120 | + |
| 121 | +// export const setCurrentTabInApp = (currentTabInApp) => ({ |
| 122 | +// type: types.SET_CURRENT_TAB_IN_APP, |
| 123 | +// payload: currentTabInApp, |
| 124 | +// }); |
| 125 | + |
| 126 | +// export const tutorialSaveSeriesToggle = (toggleVal) => ({ |
| 127 | +// type: types.TUTORIAL_SAVE_SERIES_TOGGLE, |
| 128 | +// payload: toggleVal, |
| 129 | +// }); |
0 commit comments