diff options
Diffstat (limited to 'src/actions')
-rw-r--r-- | src/actions/index.js | 6 | ||||
-rw-r--r-- | src/actions/lib/actions.js | 4 | ||||
-rw-r--r-- | src/actions/payment.js | 12 | ||||
-rw-r--r-- | src/actions/service.js | 3 | ||||
-rw-r--r-- | src/actions/user.js | 4 |
5 files changed, 5 insertions, 24 deletions
diff --git a/src/actions/index.js b/src/actions/index.js index 6f32732b9..ed8283d6c 100644 --- a/src/actions/index.js +++ b/src/actions/index.js | |||
@@ -7,15 +7,12 @@ import recipePreview from './recipePreview'; | |||
7 | import ui from './ui'; | 7 | import ui from './ui'; |
8 | import app from './app'; | 8 | import app from './app'; |
9 | import user from './user'; | 9 | import user from './user'; |
10 | import payment from './payment'; | ||
11 | import news from './news'; | 10 | import news from './news'; |
12 | import settings from './settings'; | 11 | import settings from './settings'; |
13 | import requests from './requests'; | 12 | import requests from './requests'; |
14 | import announcements from '../features/announcements/actions'; | 13 | import announcements from '../features/announcements/actions'; |
15 | import workspaces from '../features/workspaces/actions'; | 14 | import workspaces from '../features/workspaces/actions'; |
16 | import todos from '../features/todos/actions'; | 15 | import todos from '../features/todos/actions'; |
17 | import planSelection from '../features/planSelection/actions'; | ||
18 | import trialStatusBar from '../features/trialStatusBar/actions'; | ||
19 | 16 | ||
20 | const actions = { | 17 | const actions = { |
21 | service, | 18 | service, |
@@ -24,7 +21,6 @@ const actions = { | |||
24 | ui, | 21 | ui, |
25 | app, | 22 | app, |
26 | user, | 23 | user, |
27 | payment, | ||
28 | news, | 24 | news, |
29 | settings, | 25 | settings, |
30 | requests, | 26 | requests, |
@@ -35,6 +31,4 @@ export default Object.assign( | |||
35 | { announcements }, | 31 | { announcements }, |
36 | { workspaces }, | 32 | { workspaces }, |
37 | { todos }, | 33 | { todos }, |
38 | { planSelection }, | ||
39 | { trialStatusBar }, | ||
40 | ); | 34 | ); |
diff --git a/src/actions/lib/actions.js b/src/actions/lib/actions.js index b38db9946..7be40f1cf 100644 --- a/src/actions/lib/actions.js +++ b/src/actions/lib/actions.js | |||
@@ -8,12 +8,12 @@ export const createActionsFromDefinitions = (actionDefinitions, validate) => { | |||
8 | }; | 8 | }; |
9 | actions[actionName] = action; | 9 | actions[actionName] = action; |
10 | action.listeners = []; | 10 | action.listeners = []; |
11 | action.listen = listener => action.listeners.push(listener); | 11 | action.listen = (listener) => action.listeners.push(listener); |
12 | action.off = (listener) => { | 12 | action.off = (listener) => { |
13 | const { listeners } = action; | 13 | const { listeners } = action; |
14 | listeners.splice(listeners.indexOf(listener), 1); | 14 | listeners.splice(listeners.indexOf(listener), 1); |
15 | }; | 15 | }; |
16 | action.notify = params => action.listeners.forEach(listener => listener(params)); | 16 | action.notify = (params) => action.listeners.forEach((listener) => listener(params)); |
17 | }); | 17 | }); |
18 | return actions; | 18 | return actions; |
19 | }; | 19 | }; |
diff --git a/src/actions/payment.js b/src/actions/payment.js deleted file mode 100644 index f61faf197..000000000 --- a/src/actions/payment.js +++ /dev/null | |||
@@ -1,12 +0,0 @@ | |||
1 | import PropTypes from 'prop-types'; | ||
2 | |||
3 | export default { | ||
4 | createHostedPage: { | ||
5 | planId: PropTypes.string.isRequired, | ||
6 | }, | ||
7 | upgradeAccount: { | ||
8 | planId: PropTypes.string.isRequired, | ||
9 | onCloseWindow: PropTypes.func, | ||
10 | }, | ||
11 | createDashboardUrl: {}, | ||
12 | }; | ||
diff --git a/src/actions/service.js b/src/actions/service.js index 578fdeca8..e56513f8f 100644 --- a/src/actions/service.js +++ b/src/actions/service.js | |||
@@ -91,6 +91,9 @@ export default { | |||
91 | toggleAudio: { | 91 | toggleAudio: { |
92 | serviceId: PropTypes.string.isRequired, | 92 | serviceId: PropTypes.string.isRequired, |
93 | }, | 93 | }, |
94 | toggleDarkMode: { | ||
95 | serviceId: PropTypes.string.isRequired, | ||
96 | }, | ||
94 | openDevTools: { | 97 | openDevTools: { |
95 | serviceId: PropTypes.string.isRequired, | 98 | serviceId: PropTypes.string.isRequired, |
96 | }, | 99 | }, |
diff --git a/src/actions/user.js b/src/actions/user.js index 7061a367a..20d27ee53 100644 --- a/src/actions/user.js +++ b/src/actions/user.js | |||
@@ -13,15 +13,11 @@ export default { | |||
13 | password: PropTypes.string.isRequired, | 13 | password: PropTypes.string.isRequired, |
14 | accountType: PropTypes.string, | 14 | accountType: PropTypes.string, |
15 | company: PropTypes.string, | 15 | company: PropTypes.string, |
16 | plan: PropTypes.string, | ||
17 | currency: PropTypes.string, | 16 | currency: PropTypes.string, |
18 | }, | 17 | }, |
19 | retrievePassword: { | 18 | retrievePassword: { |
20 | email: PropTypes.string.isRequired, | 19 | email: PropTypes.string.isRequired, |
21 | }, | 20 | }, |
22 | activateTrial: { | ||
23 | planId: PropTypes.string.isRequired, | ||
24 | }, | ||
25 | invite: { | 21 | invite: { |
26 | invites: PropTypes.array.isRequired, | 22 | invites: PropTypes.array.isRequired, |
27 | }, | 23 | }, |