projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added basic functionality related to reading groups
[arvados.git]
/
src
/
index.tsx
diff --git
a/src/index.tsx
b/src/index.tsx
index 8935470323ee0bb388e687c535ef9a61b2c44852..67de95fb3af108699e853dee79f84ee623678b6a 100644
(file)
--- a/
src/index.tsx
+++ b/
src/index.tsx
@@
-8,26
+8,29
@@
import { Provider } from "react-redux";
import Workbench from './views/workbench/workbench';
import ProjectList from './components/project-list/project-list';
import './index.css';
import Workbench from './views/workbench/workbench';
import ProjectList from './components/project-list/project-list';
import './index.css';
-import { R
edirect, Route, RouteProps, Router, RouterProps
} from "react-router";
+import { R
oute
} from "react-router";
import createBrowserHistory from "history/createBrowserHistory";
import configureStore from "./store/store";
import { ConnectedRouter } from "react-router-redux";
import ApiToken from "./components/api-token/api-token";
import createBrowserHistory from "history/createBrowserHistory";
import configureStore from "./store/store";
import { ConnectedRouter } from "react-router-redux";
import ApiToken from "./components/api-token/api-token";
+import authActions from "./store/auth/auth-action";
+import { projectService } from "./services/services";
const history = createBrowserHistory();
const store = configureStore({
projects: [
const history = createBrowserHistory();
const store = configureStore({
projects: [
- { name: 'Mouse genome', createdAt: '2018-05-01' },
- { name: 'Human body', createdAt: '2018-05-01' },
- { name: 'Secret operation', createdAt: '2018-05-01' }
],
router: {
location: null
},
auth: {
],
router: {
location: null
},
auth: {
+ user: undefined
}
}, history);
}
}, history);
+store.dispatch(authActions.INIT());
+store.dispatch<any>(projectService.getTopProjectList());
+
const App = () =>
<Provider store={store}>
<ConnectedRouter history={history}>
const App = () =>
<Provider store={store}>
<ConnectedRouter history={history}>