import req from 'superagent';

import {dispatch} from '../dispatcher';

import {Action} from '../actions';

import meta from '../meta';

const DIR_CONFIG='/resource/config/app/moe/somesim',
	  DIR_DOC='/resource/markdown/app/moe/somesim';

export default ()=>{
	req
		.get(DIR_CONFIG+'/somesim.json?='+meta.version)
		.end((err,res)=>{
			dispatch(Action.RecieveEquipList(res.body));
		});

	req
		.get(DIR_CONFIG+'/flower.json?='+meta.version)
		.end((err,res)=>{
			dispatch(Action.RecieveFlowerList(res.body));
		});

	req
		.get(DIR_CONFIG+'/pallet.json?='+meta.version)
		.end((err,res)=>{
			dispatch(Action.RecieveStainList(res.body));
		});

	req
		.get(DIR_DOC+'/readme.md?='+meta.version)
		.end((err,res)=>{
			dispatch(Action.RecieveReadme(res.text));
		});

	req
		.get(DIR_DOC+'/update.md?='+meta.version)
		.end((err,res)=>{
			dispatch(Action.RecieveUpdateLog(res.text));
		});
}

@@ -361,32 +361,44 @@
 veEquipList(
-res.body
+JSON.parse(res.text)
 ));%0A%09%09%7D);%0A%0A%09
@@ -503,32 +503,44 @@
 eFlowerList(
-res.body
+JSON.parse(res.text)
 ));%0A%09%09%7D);%0A%0A%09
@@ -652,16 +652,28 @@
 ist(
-res.body
+JSON.parse(res.text)
 ));%0A

Change property to be access