listInitialState.js 896 Bytes
'use strict';

import {Record, List, Map} from 'immutable';

let InitialState = Record({
	type: 'editor', // editor or tag
	authorId: '',
	tag: '',
	author: new (Record({
        isFetching: false,
        error: null,
        data: null,
    })),
    articles: new (Record({
		ptr: false,
        isFetching: false,
        error: null,
        list: null,
        currentPage: 0,
        pageCount: 0,
        pageSize: 60,//60,
        total: 0,
        endReached: false,
    })),
	categoryMap: new (Record({
		'潮品'     :require('../../image/chaopin_icon.png'),
		'话题'     :require('../../image/huati_icon.png'),
		'潮人'     :require('../../image/chaoren_icon.png'),
		'搭配'     :require('../../image/dapei_icon.png'),
		'小贴士'   :require('../../image/xiaotieshi_icon.png'),
		'专题'     :require('../../image/zuanti_icon.png')
    })),
});

export default InitialState;