Browse Source

feature(network): show num of nodes and num of channels the node can see on the network map

renovate/lint-staged-8.x
Jack Mallers 7 years ago
parent
commit
d0ddf39574
  1. 9
      app/routes/network/components/Network.js
  2. 18
      app/routes/network/components/Network.scss

9
app/routes/network/components/Network.js

@ -88,6 +88,15 @@ class Network extends Component {
return ( return (
<div className={styles.container}> <div className={styles.container}>
{
!network.networkLoading &&
<section className={styles.stats}>
<span>{network.nodes.length} nodes</span>
<span>|</span>
<span>{network.edges.length} channels</span>
</section>
}
<CanvasNetworkGraph <CanvasNetworkGraph
className={styles.network} className={styles.network}
network={network} network={network}

18
app/routes/network/components/Network.scss

@ -31,6 +31,24 @@
circle { circle {
cursor: pointer; cursor: pointer;
} }
.stats {
position: absolute;
top: 0;
right: 30%;
padding: 20px;
span {
color: $main;
margin: 0 2.5px;
line-height: 25px;
vertical-align: middle;
&:nth-child(2) {
font-size: 25px;
}
}
}
} }
.network, .toolbox { .network, .toolbox {

Loading…
Cancel
Save