From 44dc3f5a89c3efcc00a414d74ef76ae0c6871b89 Mon Sep 17 00:00:00 2001 From: JUDIT GRESKOVITS Date: Thu, 6 Apr 2017 12:18:39 +0100 Subject: [PATCH] Add back perfprofiler, perflogger broke build --- frontend/src/containers/app.js | 8 ++++---- frontend/src/index.js | 4 ++-- frontend/src/state/store.js | 8 ++++---- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/frontend/src/containers/app.js b/frontend/src/containers/app.js index 411f3d2b..104c1b12 100644 --- a/frontend/src/containers/app.js +++ b/frontend/src/containers/app.js @@ -3,7 +3,7 @@ import Article from '@components/article'; import Base, { global } from '@ui/components/base'; import BaselineGrid from '@ui/components/baseline-grid'; import { isProduction } from '@utils'; -// import PerfProfiler from '@perf-profiler'; +import PerfProfiler from '@perf-profiler'; import React from 'react'; class App extends React.Component { @@ -33,12 +33,12 @@ class App extends React.Component { ); - /*const profiler = !isProduction() ? - : null;*/ + const profiler = !isProduction() ? + : null; return (
- {/*profiler*/} + {profiler}
{content}
diff --git a/frontend/src/index.js b/frontend/src/index.js index fe48f2c4..d880dcaf 100644 --- a/frontend/src/index.js +++ b/frontend/src/index.js @@ -4,7 +4,7 @@ import qs from 'querystring'; import a11y from 'react-a11y'; import ReactDOM from 'react-dom'; import React from 'react'; -// import Perf from 'react-addons-perf'; +import Perf from 'react-addons-perf'; import MockStateTesting from '@mock-states/testing'; import MockState from '@mock-states'; @@ -19,7 +19,7 @@ if ( !isProduction() ) { ReactDOM }); - // window.Perf = Perf; + window.Perf = Perf; } const states = { diff --git a/frontend/src/state/store.js b/frontend/src/state/store.js index b68d334e..2afe48c8 100644 --- a/frontend/src/state/store.js +++ b/frontend/src/state/store.js @@ -3,10 +3,10 @@ import { enableBatching } from 'redux-batched-actions'; import promiseMiddleware from 'redux-promise-middleware'; import { createStore, compose, applyMiddleware } from 'redux'; import thunk from 'redux-thunk'; -import perflogger from 'redux-perf-middleware'; +// import perflogger from 'redux-perf-middleware'; import createReducer from '@state/reducers'; -import { isProduction } from '@utils'; +// import { isProduction } from '@utils'; const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose; @@ -18,8 +18,8 @@ export default (state = Object.freeze({})) => { applyMiddleware( createLogger(), promiseMiddleware(), - thunk, - !isProduction() && perflogger + thunk/*, + !isProduction() && perflogger*/ ) ) );