{"size": 501, "ext": "js", "max_stars_repo_path": "src/index.js", "max_stars_repo_name": "Xuefeng-Zhu/gdpr-consent", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/index.js", "max_issues_repo_name": "Xuefeng-Zhu/gdpr-consent", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/index.js", "max_forks_repo_name": "Xuefeng-Zhu/gdpr-consent", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 16.7, "max_line_length": 48, "alphanum_fraction": 0.6586826347}
import 'babel-polyfill';
import dva from 'dva';
import Loading from 'dva-loading';
import consentModel from './models/consent';

import './index.less';

// 1. Initialize
const app = dva({
  onError(err, dispatch) {
    console.log(err);
  },
});

// 2. Plugins
app.use(Loading({
  namespace: 'loading',
  // effects: enable effects level loading state
}));

// 3. Model
// Moved to router.js
app.model(consentModel);

// 4. Router
app.router(require('./router.jsx'));

// 5. Start
app.start('#root');
