-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'individual-pages' into develop
- Loading branch information
Showing
8 changed files
with
297 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import React, { Component } from "react"; | ||
|
||
import Population from "./Population.jsx"; | ||
import Invasions from "./Invasions.jsx"; | ||
import SillyMeter from "./SillyMeter.jsx"; | ||
|
||
class All extends Component { | ||
render() { | ||
return ( | ||
<div className="row"> | ||
<div className="col-5 text-left"> | ||
<Invasions invData={this.props.invData} /> | ||
</div> | ||
<div className="col-7 text-right"> | ||
<Population popData={this.props.popData} /> | ||
<hr /> | ||
<SillyMeter sillyData={this.props.sillyData} /> | ||
</div> | ||
</div> | ||
); | ||
} | ||
} | ||
|
||
export default All; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import React, { Component } from "react"; | ||
import { Button, Nav, Navbar } from "react-bootstrap"; | ||
import { LinkContainer } from "react-router-bootstrap"; | ||
|
||
class NavBar extends Component { | ||
render() { | ||
return ( | ||
<Navbar bg="dark" variant="dark" fixed="bottom"> | ||
<Navbar.Brand>Toontown Rewritten Dashboard</Navbar.Brand> | ||
<Nav className="mr-auto"> | ||
<LinkContainer to="/" exact> | ||
<Nav.Link>All</Nav.Link> | ||
</LinkContainer> | ||
<LinkContainer to="/inv"> | ||
<Nav.Link>Invasions</Nav.Link> | ||
</LinkContainer> | ||
<LinkContainer to="/pop"> | ||
<Nav.Link>Population</Nav.Link> | ||
</LinkContainer> | ||
<LinkContainer to="/silly"> | ||
<Nav.Link>Silly Meter</Nav.Link> | ||
</LinkContainer> | ||
<Nav.Link disabled>Settings</Nav.Link> | ||
</Nav> | ||
<Navbar.Text> | ||
{this.props.version} |{" "} | ||
<Button | ||
variant="outline-primary" | ||
size="sm" | ||
onClick={this.props.refresh} | ||
> | ||
{this.props.lastUpdate} | ||
</Button> | ||
</Navbar.Text> | ||
</Navbar> | ||
); | ||
} | ||
} | ||
|
||
export default NavBar; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.