2016-08-31 16:15:12 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								import { createStore, applyMiddleware, compose } from 'redux';
							 | 
						
					
						
							
								
									
										
										
										
											2017-01-09 12:37:15 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								import thunk from 'redux-thunk';
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								import appReducer from '../reducers';
							 | 
						
					
						
							
								
									
										
										
										
											2017-01-16 13:27:58 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								import loadingBarMiddleware from '../middleware/loading_bar';
							 | 
						
					
						
							
								
									
										
										
										
											2017-01-09 12:37:15 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								import errorsMiddleware from '../middleware/errors';
							 | 
						
					
						
							
								
									
										
										
										
											2017-03-13 17:12:30 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								import soundsMiddleware from '../middleware/sounds';
							 | 
						
					
						
							
								
									
										
										
										
											2017-01-09 12:37:15 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								import Immutable from 'immutable';
							 | 
						
					
						
							
								
									
										
										
										
											2016-08-24 17:56:44 +02:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2017-01-09 12:37:15 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								export default function configureStore() {
							 | 
						
					
						
							
								
									
										
										
										
											2017-01-17 20:09:03 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								  return createStore(appReducer, compose(applyMiddleware(
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    thunk,
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    loadingBarMiddleware({ promiseTypeSuffixes: ['REQUEST', 'SUCCESS', 'FAIL'] }),
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    errorsMiddleware(),
							 | 
						
					
						
							
								
									
										
										
										
											2017-03-13 17:12:30 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    soundsMiddleware()
							 | 
						
					
						
							
								
									
										
										
										
											2017-01-17 20:09:03 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								  ), window.devToolsExtension ? window.devToolsExtension() : f => f));
							 | 
						
					
						
							
								
									
										
										
										
											2016-09-19 23:25:59 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								};
							 |