|  | @@ -0,0 +1,43 @@
 | 
	
		
			
				|  |  | +/** @module setting/state */
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +/**
 | 
	
		
			
				|  |  | + * state.js
 | 
	
		
			
				|  |  | + *
 | 
	
		
			
				|  |  | + * Collection of everything which has to do with state changes.
 | 
	
		
			
				|  |  | + **/
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +const SCRAPE_FILES = [
 | 
	
		
			
				|  |  | +  'https://comp.swisstennis.ch/advantage/servlet/MyTournamentList?Lang=D',
 | 
	
		
			
				|  |  | +  'https://comp.swisstennis.ch/advantage/servlet/ProtectedDisplayTournament?Lang=D&tournament=Id104840',
 | 
	
		
			
				|  |  | +  'https://comp.swisstennis.ch/advantage/servlet/Calendar?tournament=Id104840&lang=D',
 | 
	
		
			
				|  |  | +  'https://comp.swisstennis.ch/advantage/servlet/Calendar.xls?Lang=D&tournament=Id104840&Type=Match&Inp_DateRangeFilter.fromDate=05.07.2017&Inp_DateRangeFilter.toDate=16.07.2017',
 | 
	
		
			
				|  |  | +  'https://comp.swisstennis.ch/advantage/servlet/PlayerList?tournament=Id104840&lang=D',
 | 
	
		
			
				|  |  | +  'https://comp.swisstennis.ch/advantage/servlet/PlayerList.xls?tournament=Id104840&lang=D',
 | 
	
		
			
				|  |  | +  'https://comp.swisstennis.ch/advantage/servlet/DisplayEvent?eventId=425828&lang=D',
 | 
	
		
			
				|  |  | +  'https://comp.swisstennis.ch/advantage/servlet/ModifyDraw?eventId=425828&lang=D',
 | 
	
		
			
				|  |  | +  'https://comp.swisstennis.ch/advantage/servlet/DisplayDraw.xls?eventId=425828&lang=D'
 | 
	
		
			
				|  |  | +]
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +const DRAW_STATE = /Matches bereit zum spielen/
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +/** actionTypes define what actions are handeled by the reducer. */
 | 
	
		
			
				|  |  | +export const actions = {
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +}
 | 
	
		
			
				|  |  | +console.log('State actions', actions)
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +/** state definition */
 | 
	
		
			
				|  |  | +export const state = {
 | 
	
		
			
				|  |  | +}
 | 
	
		
			
				|  |  | +console.log('State state', state)
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +/** reducer is called by the redux dispatcher and handles all component actions */
 | 
	
		
			
				|  |  | +export function reducer (state = [], action) {
 | 
	
		
			
				|  |  | +  switch (action.type) {
 | 
	
		
			
				|  |  | +    default:
 | 
	
		
			
				|  |  | +      return state
 | 
	
		
			
				|  |  | +  }
 | 
	
		
			
				|  |  | +}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +/** sagas are asynchronous workers (JS generators) to handle the state. */
 | 
	
		
			
				|  |  | +export function * saga () {}
 |