diff options
author | 2019-08-19 12:40:41 +0200 | |
---|---|---|
committer | 2019-08-19 12:40:41 +0200 | |
commit | 7344f362eb6fdcf26a1b45c98bd35ddd9e56521e (patch) | |
tree | f4846617683d525f8be3558157dd935bef741521 /src | |
parent | Add trial / subscription handling (diff) | |
download | ferdium-app-7344f362eb6fdcf26a1b45c98bd35ddd9e56521e.tar.gz ferdium-app-7344f362eb6fdcf26a1b45c98bd35ddd9e56521e.tar.zst ferdium-app-7344f362eb6fdcf26a1b45c98bd35ddd9e56521e.zip |
remove console logs
Diffstat (limited to 'src')
-rw-r--r-- | src/components/services/content/Services.js | 2 | ||||
-rw-r--r-- | src/components/subscription/SubscriptionPopup.js | 2 | ||||
-rw-r--r-- | src/components/subscription/TrialForm.js | 2 | ||||
-rw-r--r-- | src/containers/settings/TeamScreen.js | 1 | ||||
-rw-r--r-- | src/containers/subscription/SubscriptionFormScreen.js | 2 | ||||
-rw-r--r-- | src/features/basicAuth/Component.js | 1 | ||||
-rw-r--r-- | src/index.js | 29 | ||||
-rw-r--r-- | src/stores/UserStore.js | 2 |
8 files changed, 0 insertions, 41 deletions
diff --git a/src/components/services/content/Services.js b/src/components/services/content/Services.js index b71ddd8e6..73c27bfb6 100644 --- a/src/components/services/content/Services.js +++ b/src/components/services/content/Services.js | |||
@@ -87,8 +87,6 @@ export default @observer @injectSheet(styles) class Services extends Component { | |||
87 | 87 | ||
88 | const { intl } = this.context; | 88 | const { intl } = this.context; |
89 | 89 | ||
90 | console.log('hasActivatedTrial', hasActivatedTrial, (userHasCompletedSignup || hasActivatedTrial)); | ||
91 | |||
92 | return ( | 90 | return ( |
93 | <div className="services"> | 91 | <div className="services"> |
94 | {(userHasCompletedSignup || hasActivatedTrial) && ( | 92 | {(userHasCompletedSignup || hasActivatedTrial) && ( |
diff --git a/src/components/subscription/SubscriptionPopup.js b/src/components/subscription/SubscriptionPopup.js index 9404e9c19..12ef8a6e9 100644 --- a/src/components/subscription/SubscriptionPopup.js +++ b/src/components/subscription/SubscriptionPopup.js | |||
@@ -61,8 +61,6 @@ export default @observer class SubscriptionPopup extends Component { | |||
61 | autosize | 61 | autosize |
62 | src={encodeURI(url)} | 62 | src={encodeURI(url)} |
63 | onDidNavigate={completeCheck} | 63 | onDidNavigate={completeCheck} |
64 | // webpreferences="allowpopups" | ||
65 | // onNewWindow={(event, url, frameName, options) => console.log(event, url)} | ||
66 | /> | 64 | /> |
67 | </div> | 65 | </div> |
68 | <div className="subscription-popup__toolbar franz-form"> | 66 | <div className="subscription-popup__toolbar franz-form"> |
diff --git a/src/components/subscription/TrialForm.js b/src/components/subscription/TrialForm.js index 9c512b5f2..81b1c713c 100644 --- a/src/components/subscription/TrialForm.js +++ b/src/components/subscription/TrialForm.js | |||
@@ -65,8 +65,6 @@ export default @observer @injectSheet(styles) class TrialForm extends Component | |||
65 | } = this.props; | 65 | } = this.props; |
66 | const { intl } = this.context; | 66 | const { intl } = this.context; |
67 | 67 | ||
68 | console.log('isActivatingTrial', isActivatingTrial); | ||
69 | |||
70 | return ( | 68 | return ( |
71 | <> | 69 | <> |
72 | <H2>{intl.formatMessage(messages.teaserHeadline)}</H2> | 70 | <H2>{intl.formatMessage(messages.teaserHeadline)}</H2> |
diff --git a/src/containers/settings/TeamScreen.js b/src/containers/settings/TeamScreen.js index c69d5ad08..b7b1b78cb 100644 --- a/src/containers/settings/TeamScreen.js +++ b/src/containers/settings/TeamScreen.js | |||
@@ -14,7 +14,6 @@ export default @inject('stores', 'actions') @observer class TeamScreen extends C | |||
14 | const { actions, stores } = this.props; | 14 | const { actions, stores } = this.props; |
15 | 15 | ||
16 | const url = `${WEBSITE}${route}?authToken=${stores.user.authToken}&utm_source=app&utm_medium=account_dashboard`; | 16 | const url = `${WEBSITE}${route}?authToken=${stores.user.authToken}&utm_source=app&utm_medium=account_dashboard`; |
17 | console.log(url); | ||
18 | 17 | ||
19 | actions.app.openExternalUrl({ url }); | 18 | actions.app.openExternalUrl({ url }); |
20 | } | 19 | } |
diff --git a/src/containers/subscription/SubscriptionFormScreen.js b/src/containers/subscription/SubscriptionFormScreen.js index 587889e7f..14f898ca6 100644 --- a/src/containers/subscription/SubscriptionFormScreen.js +++ b/src/containers/subscription/SubscriptionFormScreen.js | |||
@@ -28,8 +28,6 @@ export default @inject('stores', 'actions') @observer class SubscriptionFormScre | |||
28 | hostedPageURL = `${url.origin}${url.pathname}?${params.toString()}`; | 28 | hostedPageURL = `${url.origin}${url.pathname}?${params.toString()}`; |
29 | 29 | ||
30 | actions.app.openExternalUrl({ url: hostedPageURL }); | 30 | actions.app.openExternalUrl({ url: hostedPageURL }); |
31 | |||
32 | console.log('hostedPage', hostedPageURL); | ||
33 | } | 31 | } |
34 | 32 | ||
35 | render() { | 33 | render() { |
diff --git a/src/features/basicAuth/Component.js b/src/features/basicAuth/Component.js index a8252acb7..ba9ae2273 100644 --- a/src/features/basicAuth/Component.js +++ b/src/features/basicAuth/Component.js | |||
@@ -27,7 +27,6 @@ export default @injectSheet(styles) @observer class BasicAuthModal extends Compo | |||
27 | e.preventDefault(); | 27 | e.preventDefault(); |
28 | 28 | ||
29 | const values = Form.values(); | 29 | const values = Form.values(); |
30 | console.log('form submit', values); | ||
31 | 30 | ||
32 | sendCredentials(values.user, values.password); | 31 | sendCredentials(values.user, values.password); |
33 | resetState(); | 32 | resetState(); |
diff --git a/src/index.js b/src/index.js index 55592c328..d9d51fd5b 100644 --- a/src/index.js +++ b/src/index.js | |||
@@ -105,35 +105,6 @@ if (!gotTheLock) { | |||
105 | } | 105 | } |
106 | }); | 106 | }); |
107 | } | 107 | } |
108 | // const isSecondInstance = app.makeSingleInstance((argv) => { | ||
109 | // if (mainWindow) { | ||
110 | // if (mainWindow.isMinimized()) mainWindow.restore(); | ||
111 | // mainWindow.focus(); | ||
112 | |||
113 | // if (process.platform === 'win32') { | ||
114 | // // Keep only command line / deep linked arguments | ||
115 | // const url = argv.slice(1); | ||
116 | |||
117 | // if (url) { | ||
118 | // handleDeepLink(mainWindow, url.toString()); | ||
119 | // } | ||
120 | // } | ||
121 | // } | ||
122 | |||
123 | // if (argv.includes('--reset-window')) { | ||
124 | // // Needs to be delayed to not interfere with mainWindow.restore(); | ||
125 | // setTimeout(() => { | ||
126 | // debug('Resetting windows via Task'); | ||
127 | // mainWindow.setPosition(DEFAULT_WINDOW_OPTIONS.x + 100, DEFAULT_WINDOW_OPTIONS.y + 100); | ||
128 | // mainWindow.setSize(DEFAULT_WINDOW_OPTIONS.width, DEFAULT_WINDOW_OPTIONS.height); | ||
129 | // }, 1); | ||
130 | // } | ||
131 | // }); | ||
132 | |||
133 | // if (isSecondInstance) { | ||
134 | // console.log('An instance of Franz is already running. Exiting...'); | ||
135 | // app.exit(); | ||
136 | // } | ||
137 | 108 | ||
138 | // Fix Unity indicator issue | 109 | // Fix Unity indicator issue |
139 | // https://github.com/electron/electron/issues/9046 | 110 | // https://github.com/electron/electron/issues/9046 |
diff --git a/src/stores/UserStore.js b/src/stores/UserStore.js index 03679a163..5d0037b3c 100644 --- a/src/stores/UserStore.js +++ b/src/stores/UserStore.js | |||
@@ -218,8 +218,6 @@ export default class UserStore extends Store { | |||
218 | 218 | ||
219 | this.hasActivatedTrial = true; | 219 | this.hasActivatedTrial = true; |
220 | 220 | ||
221 | console.log('hasActivatedTrial', this.hasActivatedTrial); | ||
222 | |||
223 | this.stores.features.featuresRequest.invalidate({ immediately: true }); | 221 | this.stores.features.featuresRequest.invalidate({ immediately: true }); |
224 | this.stores.user.getUserInfoRequest.invalidate({ immediately: true }); | 222 | this.stores.user.getUserInfoRequest.invalidate({ immediately: true }); |
225 | 223 | ||