diff options
author | therealbobo | 2020-09-12 22:51:55 +0000 |
---|---|---|
committer | therealbobo | 2020-09-12 22:51:55 +0000 |
commit | 042cd78894b7c9ce622715e86cb52e203dbe4b34 (patch) | |
tree | 3ce1e1e307b5c5f4fbbb9ec40c16dd7e2e116976 /frontend | |
parent | 9a47e7a2e2100f0bb7ebfab11f7644d32b68241f (diff) |
added config menu
Diffstat (limited to 'frontend')
-rw-r--r-- | frontend/public/favicon.ico | bin | 3150 -> 34239 bytes | |||
-rw-r--r-- | frontend/public/logo192.png | bin | 5347 -> 34239 bytes | |||
-rw-r--r-- | frontend/public/logo512.png | bin | 9664 -> 34239 bytes | |||
-rw-r--r-- | frontend/src/views/App.js | 11 | ||||
-rw-r--r-- | frontend/src/views/Header.js | 5 |
5 files changed, 11 insertions, 5 deletions
diff --git a/frontend/public/favicon.ico b/frontend/public/favicon.ico Binary files differindex bcd5dfd..1dc499d 100644 --- a/frontend/public/favicon.ico +++ b/frontend/public/favicon.ico diff --git a/frontend/public/logo192.png b/frontend/public/logo192.png Binary files differindex fc44b0a..1dc499d 100644 --- a/frontend/public/logo192.png +++ b/frontend/public/logo192.png diff --git a/frontend/public/logo512.png b/frontend/public/logo512.png Binary files differindex a4e47a6..1dc499d 100644 --- a/frontend/public/logo512.png +++ b/frontend/public/logo512.png diff --git a/frontend/src/views/App.js b/frontend/src/views/App.js index 6c101fa..229eaed 100644 --- a/frontend/src/views/App.js +++ b/frontend/src/views/App.js @@ -6,6 +6,7 @@ import {BrowserRouter as Router, Route, Switch} from "react-router-dom"; import Services from "./Services"; import Filters from "./Filters"; import Rules from "./Rules"; +import Config from "./Config"; class App extends Component { @@ -14,7 +15,8 @@ class App extends Component { this.state = { servicesWindowOpen: false, filterWindowOpen: false, - rulesWindowOpen: false + rulesWindowOpen: false, + configWindowOpen: false }; } @@ -29,13 +31,18 @@ class App extends Component { if (this.state.rulesWindowOpen) { modal = <Rules onHide={() => this.setState({rulesWindowOpen: false})}/>; } + if (this.state.configWindowOpen) { + modal = <Config onHide={() => this.setState({configWindowOpen: false})}/>; + } return ( <div className="app"> <Router> <Header onOpenServices={() => this.setState({servicesWindowOpen: true})} onOpenFilters={() => this.setState({filterWindowOpen: true})} - onOpenRules={() => this.setState({rulesWindowOpen: true})} /> + onOpenRules={() => this.setState({rulesWindowOpen: true})} + onOpenConfig={() => this.setState({configWindowOpen: true})} + /> <Switch> <Route path="/connections/:id" children={<MainPane/>}/> <Route path="/" children={<MainPane/>}/> diff --git a/frontend/src/views/Header.js b/frontend/src/views/Header.js index 5d0f690..03e4e5c 100644 --- a/frontend/src/views/Header.js +++ b/frontend/src/views/Header.js @@ -72,9 +72,8 @@ class Header extends Component { <Button onClick={this.props.onOpenFilters}>filters</Button> <Button variant="yellow" size="sm">pcaps</Button> <Button variant="blue" onClick={this.props.onOpenRules}>rules</Button> - <Button variant="red" onClick={this.props.onOpenServices}> - services - </Button> + <Button variant="red" onClick={this.props.onOpenServices}>services</Button> + <Button variant="green" onClick={this.props.onOpenConfig}>config</Button> </div> </div> </div> |