aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/code/store
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2015-12-14 16:16:44 +0100
committerStas Vilchik <vilchiks@gmail.com>2015-12-16 11:17:32 +0100
commit5af187a6a0bda4f14de5d8ba5c6088c3a00d3e4e (patch)
tree24c4b4272bd73b225d73db23523f3441a486f2bc /server/sonar-web/src/main/js/apps/code/store
parent5995432e51e72623804ffe926316b84d18913657 (diff)
downloadsonarqube-5af187a6a0bda4f14de5d8ba5c6088c3a00d3e4e.tar.gz
sonarqube-5af187a6a0bda4f14de5d8ba5c6088c3a00d3e4e.zip
SONAR-7143 display list of components on the code page
Diffstat (limited to 'server/sonar-web/src/main/js/apps/code/store')
-rw-r--r--server/sonar-web/src/main/js/apps/code/store/configureStore.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/apps/code/store/configureStore.js b/server/sonar-web/src/main/js/apps/code/store/configureStore.js
new file mode 100644
index 00000000000..20d1587895a
--- /dev/null
+++ b/server/sonar-web/src/main/js/apps/code/store/configureStore.js
@@ -0,0 +1,16 @@
+import { createStore, applyMiddleware } from 'redux';
+import thunk from 'redux-thunk';
+import createLogger from 'redux-logger';
+
+import rootReducer from '../reducers';
+
+
+const createStoreWithMiddleware = applyMiddleware(
+ thunk,
+ createLogger()
+)(createStore);
+
+
+export default function configureStore () {
+ return createStoreWithMiddleware(rootReducer);
+}