sectionInitialState.js 831 Bytes
/**
 * # guideInitialState.js
 *
 *
 */
'use strict';
/**
 * ## Import immutable record
 */
import {Record, List, Map, Stack} from 'immutable';

/**
 * ## InitialState
 *
 * The fields we're concerned with
 */
let item = new (Record({
	isFetching: false,
	error: null,
	id: 0,
	name: '',
	activeTab: 0,
	ptr: true,
	notice: new (Record({
		duration: 3,
		open: 'N',
		list: List(),
	})),
	header: new (Record({
		uri: '',
		title: '',
		desc: '',
		post: '',
		comment: '',
		like: '',
	})),
	hot: new (Record({
		isFetching: false,
		error: null,
		lastedTime: 0,
		list: List(),
		endReached: false,
	})),
	new: new (Record({
		isFetching: false,
		error: null,
		lastedTime: 0,
		list: List(),
		endReached: false,
	})),
}));

let InitialState = Record({
	sid: -1,
	items: List(),
	item: item,
});

export default InitialState;