summaryrefslogtreecommitdiff
path: root/app/client/index.jsx
blob: fba38df883daf5313d7e498e57406289251fea45 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import { h, render } from 'preact'
import { Provider } from 'react-redux'
import { BrowserRouter, Route } from 'react-router-dom'
// import client from './client'

import { store, history } from './store'
import socket from './socket'

import Header from './common/header.component'
import Dashboard from './dashboard/dashboard.component'
import System from './system/system.component'
import Pix2Pix from './pix2pix'

const app = (
  <Provider store={store}>
    <BrowserRouter>
      <div>
        <Route exact path='/' component={Dashboard} />
        <Route path='/datasets/' component={Dashboard} />
        <Route path='/checkpoints/' component={Dashboard} />
        <Route path='/results/' component={Dashboard} />
        <Route path='/live/' component={Pix2Pix.Live} />
        <Route path='/system/' component={System} />
        <Route path='/dashboard/' component={Dashboard} />
        <Header />
      </div>
    </BrowserRouter>
  </Provider>
)

render(app, document.getElementById('container'))