Skip to content

Commit

Permalink
Convert FS to React
Browse files Browse the repository at this point in the history
  • Loading branch information
jbeda committed Jan 23, 2017
1 parent 6e64861 commit ed77ef8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
11 changes: 8 additions & 3 deletions client/src/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ import Details from './details';
import Probe from './probe'
import Env from './env'

render(<Probe title="Liveness Check" path="/healthy" />, document.getElementById('liveness'));
render(<Probe title="Readiness Check" path="/ready" />, document.getElementById('readiness'));
render(<Env path="/env" />, document.getElementById('env'));
render(<Probe title="Liveness Check" path="/healthy" />, document.getElementById("liveness"));
render(<Probe title="Readiness Check" path="/ready" />, document.getElementById("readiness"));
render(<Env path="/env" />, document.getElementById("env"));

render(
<Details title="File System">
<a href="/fs/">Browse the root file system for this server.</a>
</Details>, document.getElementById("fs"))
7 changes: 1 addition & 6 deletions sitedata/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,8 @@ <h1>Kubernetes Up and Running</h1>
<div id="env"></div>
<div id="liveness"></div>
<div id="readiness"></div>
<div id="fs"></div>

<details>
<summary>File System</summary>
<div>
<a href="/fs/">Browse the root file system for this server.</a>
</div>
</details>
<script src="built/bundle.js" type="text/javascript"></script>
</body>
</html>

0 comments on commit ed77ef8

Please sign in to comment.