1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import * as React from 'react';
6 import * as ReactDOM from 'react-dom';
7 import { Provider } from "react-redux";
8 import Workbench from './views/workbench/workbench';
9 import ProjectList from './components/project-list/project-list';
11 import { Redirect, Route, RouteProps, Router, RouterProps } from "react-router";
12 import createBrowserHistory from "history/createBrowserHistory";
13 import configureStore from "./store/store";
14 import { ConnectedRouter } from "react-router-redux";
15 import ApiToken from "./components/api-token/api-token";
16 import authActions from "./store/auth/auth-action";
18 const history = createBrowserHistory();
19 const store = configureStore({
21 { name: 'Mouse genome', createdAt: '2018-05-01' },
22 { name: 'Human body', createdAt: '2018-05-01' },
23 { name: 'Secret operation', createdAt: '2018-05-01' }
33 store.dispatch(authActions.INIT());
36 <Provider store={store}>
37 <ConnectedRouter history={history}>
39 <Route path="/" component={Workbench}/>
40 <Route path="/token" component={ApiToken}/>
47 document.getElementById('root') as HTMLElement