diff options
author | vantezzen <properly@protonmail.com> | 2019-08-21 09:39:39 +0200 |
---|---|---|
committer | vantezzen <properly@protonmail.com> | 2019-08-21 09:39:39 +0200 |
commit | c4768a221f93d534f4d0454414cdf073af8a2356 (patch) | |
tree | 77fdf9eb3cbfa72c8fe40e45c88af61299004609 /src/stores/ServicesStore.js | |
parent | Update dev-app-update.yml (diff) | |
download | ferdium-app-c4768a221f93d534f4d0454414cdf073af8a2356.tar.gz ferdium-app-c4768a221f93d534f4d0454414cdf073af8a2356.tar.zst ferdium-app-c4768a221f93d534f4d0454414cdf073af8a2356.zip |
Remove analytics
Diffstat (limited to 'src/stores/ServicesStore.js')
-rw-r--r-- | src/stores/ServicesStore.js | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/stores/ServicesStore.js b/src/stores/ServicesStore.js index 109ac5cd7..4d98df851 100644 --- a/src/stores/ServicesStore.js +++ b/src/stores/ServicesStore.js | |||
@@ -11,7 +11,6 @@ import Store from './lib/Store'; | |||
11 | import Request from './lib/Request'; | 11 | import Request from './lib/Request'; |
12 | import CachedRequest from './lib/CachedRequest'; | 12 | import CachedRequest from './lib/CachedRequest'; |
13 | import { matchRoute } from '../helpers/routing-helpers'; | 13 | import { matchRoute } from '../helpers/routing-helpers'; |
14 | import { gaEvent, statsEvent } from '../lib/analytics'; | ||
15 | import { workspaceStore } from '../features/workspaces'; | 14 | import { workspaceStore } from '../features/workspaces'; |
16 | 15 | ||
17 | const debug = require('debug')('Franz:ServiceStore'); | 16 | const debug = require('debug')('Franz:ServiceStore'); |
@@ -173,7 +172,6 @@ export default class ServicesStore extends Store { | |||
173 | 172 | ||
174 | if (redirect) { | 173 | if (redirect) { |
175 | this.stores.router.push('/settings/recipes'); | 174 | this.stores.router.push('/settings/recipes'); |
176 | gaEvent('Service', 'create', recipeId); | ||
177 | } | 175 | } |
178 | } | 176 | } |
179 | 177 | ||
@@ -250,7 +248,6 @@ export default class ServicesStore extends Store { | |||
250 | 248 | ||
251 | if (redirect) { | 249 | if (redirect) { |
252 | this.stores.router.push('/settings/services'); | 250 | this.stores.router.push('/settings/services'); |
253 | gaEvent('Service', 'update', service.recipe.id); | ||
254 | } | 251 | } |
255 | } | 252 | } |
256 | 253 | ||
@@ -269,15 +266,12 @@ export default class ServicesStore extends Store { | |||
269 | 266 | ||
270 | await request._promise; | 267 | await request._promise; |
271 | this.actionStatus = request.result.status; | 268 | this.actionStatus = request.result.status; |
272 | |||
273 | gaEvent('Service', 'delete', service.recipe.id); | ||
274 | } | 269 | } |
275 | 270 | ||
276 | @action async _clearCache({ serviceId }) { | 271 | @action async _clearCache({ serviceId }) { |
277 | this.clearCacheRequest.reset(); | 272 | this.clearCacheRequest.reset(); |
278 | const request = this.clearCacheRequest.execute(serviceId); | 273 | const request = this.clearCacheRequest.execute(serviceId); |
279 | await request._promise; | 274 | await request._promise; |
280 | gaEvent('Service', 'clear cache'); | ||
281 | } | 275 | } |
282 | 276 | ||
283 | @action _setActive({ serviceId, keepActiveRoute }) { | 277 | @action _setActive({ serviceId, keepActiveRoute }) { |
@@ -289,8 +283,6 @@ export default class ServicesStore extends Store { | |||
289 | }); | 283 | }); |
290 | service.isActive = true; | 284 | service.isActive = true; |
291 | 285 | ||
292 | statsEvent('activate-service', service.recipe.id); | ||
293 | |||
294 | this._focusActiveService(); | 286 | this._focusActiveService(); |
295 | } | 287 | } |
296 | 288 | ||
@@ -536,8 +528,6 @@ export default class ServicesStore extends Store { | |||
536 | service.order = services[s.id]; | 528 | service.order = services[s.id]; |
537 | }); | 529 | }); |
538 | }); | 530 | }); |
539 | |||
540 | this._reorderAnalytics(); | ||
541 | } | 531 | } |
542 | 532 | ||
543 | @action _toggleNotifications({ serviceId }) { | 533 | @action _toggleNotifications({ serviceId }) { |
@@ -710,10 +700,6 @@ export default class ServicesStore extends Store { | |||
710 | } | 700 | } |
711 | } | 701 | } |
712 | 702 | ||
713 | _reorderAnalytics = debounce(() => { | ||
714 | gaEvent('Service', 'order'); | ||
715 | }, ms('5s')); | ||
716 | |||
717 | _wrapIndex(index, delta, size) { | 703 | _wrapIndex(index, delta, size) { |
718 | return (((index + delta) % size) + size) % size; | 704 | return (((index + delta) % size) + size) % size; |
719 | } | 705 | } |