all_mock.js 768 Bytes
Newer Older
1 2 3 4 5 6 7
import api from '../mock/api';
import chart from '../mock/chart';
import geographic from '../mock/geographic';
import notices from '../mock/notices';
import profile from '../mock/profile';
import rule from '../mock/rule';
import user from '../mock/user';
8

9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
const data = {};
Object.keys(api).forEach(key => {
  data[key] = api[key];
});
Object.keys(chart).forEach(key => {
  data[key] = chart[key];
});

Object.keys(geographic).forEach(key => {
  data[key] = geographic[key];
});
Object.keys(notices).forEach(key => {
  data[key] = notices[key];
});
Object.keys(profile).forEach(key => {
  data[key] = profile[key];
});
Object.keys(rule).forEach(key => {
  data[key] = rule[key];
});
Object.keys(user).forEach(key => {
  data[key] = user[key];
});

export default data;