Browse Source
Merge pull request #190 from LN-Zap/fetaure/network-stats
feature(network): network stats
renovate/lint-staged-8.x
JimmyMow
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
27 additions and
0 deletions
-
app/routes/network/components/Network.js
-
app/routes/network/components/Network.scss
|
@ -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} |
|
|
|
@ -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 { |
|
|