2016-10-20 04:14:26 +03:00
|
|
|
const React = require('react');
|
2016-10-20 22:42:39 +03:00
|
|
|
const ReactIntlRedux = require('react-intl-redux');
|
2016-10-20 04:14:26 +03:00
|
|
|
const ReactHotLoader = require('react-hot-loader');
|
|
|
|
const ReactRedux = require('react-redux');
|
|
|
|
const ReactRouter = require('react-router');
|
|
|
|
|
2016-12-05 22:28:10 +02:00
|
|
|
const App = require('@containers/app');
|
2016-12-14 00:09:04 +02:00
|
|
|
const Store = require('@state/store');
|
2016-10-20 04:14:26 +03:00
|
|
|
|
2016-10-20 22:42:39 +03:00
|
|
|
const {
|
|
|
|
IntlProvider
|
|
|
|
} = ReactIntlRedux;
|
|
|
|
|
2016-10-20 04:14:26 +03:00
|
|
|
const {
|
|
|
|
AppContainer
|
|
|
|
} = ReactHotLoader;
|
|
|
|
|
|
|
|
const {
|
|
|
|
Provider
|
|
|
|
} = ReactRedux;
|
|
|
|
|
|
|
|
const {
|
|
|
|
BrowserRouter
|
|
|
|
} = ReactRouter;
|
|
|
|
|
2016-12-14 00:09:04 +02:00
|
|
|
const store = Store({
|
|
|
|
session: {
|
|
|
|
data: {
|
2016-12-15 16:10:36 +02:00
|
|
|
id: 'nicola',
|
2016-12-14 00:09:04 +02:00
|
|
|
name: 'Nicola',
|
2016-12-15 16:10:36 +02:00
|
|
|
projects: [],
|
2016-12-14 00:09:04 +02:00
|
|
|
orgs: [{
|
2016-12-15 16:10:36 +02:00
|
|
|
id: 'biz-tech',
|
2016-12-14 00:09:04 +02:00
|
|
|
name: 'BizTech',
|
2016-12-15 16:10:36 +02:00
|
|
|
pinned: true,
|
|
|
|
projects: [{
|
|
|
|
id: 'forest-foundation-dev',
|
|
|
|
name: 'Forest Foundation Dev',
|
|
|
|
plan: '20.05$ per day'
|
|
|
|
}, {
|
|
|
|
id: 'forest-foundation-testing',
|
|
|
|
name: 'Forest Foundation Testing',
|
|
|
|
plan: '20.05$ per day'
|
|
|
|
}, {
|
|
|
|
id: 'forest-foundation-production',
|
|
|
|
name: 'Forest Foundation Production',
|
|
|
|
plan: '100.17$ per day'
|
|
|
|
}],
|
2016-12-14 00:09:04 +02:00
|
|
|
}, {
|
2016-12-15 16:10:36 +02:00
|
|
|
id: 'make-us-proud',
|
|
|
|
name: 'Make Us Proud',
|
2016-12-14 00:09:04 +02:00
|
|
|
}]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2016-10-20 04:14:26 +03:00
|
|
|
module.exports = () => {
|
|
|
|
return (
|
|
|
|
<AppContainer>
|
2016-12-14 00:09:04 +02:00
|
|
|
<Provider store={store}>
|
2016-10-20 22:42:39 +03:00
|
|
|
<IntlProvider>
|
|
|
|
<BrowserRouter>
|
|
|
|
{App}
|
|
|
|
</BrowserRouter>
|
|
|
|
</IntlProvider>
|
2016-10-20 04:14:26 +03:00
|
|
|
</Provider>
|
|
|
|
</AppContainer>
|
|
|
|
);
|
|
|
|
};
|