2019-10-17 07:34:02 -07:00
|
|
|
import React, { Component } from 'react';
|
2019-10-28 07:02:42 -07:00
|
|
|
import Navigation from './Navbar';
|
2019-10-27 14:03:39 -07:00
|
|
|
import { Container } from 'reactstrap';
|
2019-10-17 05:38:09 -07:00
|
|
|
|
|
|
|
import './App.css';
|
2019-10-27 14:03:39 -07:00
|
|
|
import { Router } from '@reach/router';
|
2019-10-28 07:02:42 -07:00
|
|
|
import { Alerts, Config, Flags, Rules, Services, Status, Targets, PanelList } from './pages';
|
2019-10-17 05:38:09 -07:00
|
|
|
|
|
|
|
class App extends Component {
|
|
|
|
render() {
|
|
|
|
return (
|
2019-10-27 14:03:39 -07:00
|
|
|
<>
|
|
|
|
<Navigation />
|
2019-11-02 08:53:32 -07:00
|
|
|
<Container fluid style={{ paddingTop: 70 }}>
|
2019-10-28 02:45:53 -07:00
|
|
|
<Router basepath="/new">
|
2019-10-27 14:03:39 -07:00
|
|
|
<PanelList path="/graph" />
|
|
|
|
<Alerts path="/alerts" />
|
|
|
|
<Config path="/config" />
|
|
|
|
<Flags path="/flags" />
|
|
|
|
<Rules path="/rules" />
|
|
|
|
<Services path="/service-discovery" />
|
|
|
|
<Status path="/status" />
|
|
|
|
<Targets path="/targets" />
|
|
|
|
</Router>
|
|
|
|
</Container>
|
|
|
|
</>
|
2019-10-17 05:38:09 -07:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default App;
|