Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Gaia remove Luna #6

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added src/assets/images/gaia.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions src/commonFunctions.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ export const getData = async () => {
const maxLTCHeight = val.data.map(item =>item.observe_chains).filter(item => item !== null)
.map(item => item.filter(item=>item.chain === 'LTC')[0].height).reduce((a, b) => { return Math.max(a, b) });

const maxTerraHeight = val.data.map(item =>item.observe_chains).filter(item => item !== null)
.map(item => item.filter(item=>item.chain === 'TERRA')[0].height).reduce((a, b) => { return Math.max(a, b) });
const maxGaiaHeight = val.data.map(item =>item.observe_chains).filter(item => item !== null)
.map(item => item.filter(item=>item.chain === 'GAIA')[0].height).reduce((a, b) => { return Math.max(a, b) });

const maxBCHHeight = val.data.map(item =>item.observe_chains).filter(item => item !== null)
.map(item => item.filter(item=>item.chain === 'BCH')[0].height).reduce((a, b) => { return Math.max(a, b) });
Expand All @@ -107,7 +107,7 @@ export const getData = async () => {
const totalBondedValue = (val.data.map(item => item.bond).reduce((prev, next) => prev + next))/100000000;
globalData.totalBondedValue = totalBondedValue;

return {data: val.data, globalData: globalData, maxChainHeights: {BTC: maxBTCHeight, DOGE: maxDogeHeight, ETH: maxEthHeight, LTC: maxLTCHeight, TERRA: maxTerraHeight, BCH: maxBCHHeight, BNB: maxBNBHeight}}
return {data: val.data, globalData: globalData, maxChainHeights: {BTC: maxBTCHeight, DOGE: maxDogeHeight, ETH: maxEthHeight, LTC: maxLTCHeight, GAIA: maxGaiaHeight, BCH: maxBCHHeight, BNB: maxBNBHeight}}
}

export const refreshData = async () => {
Expand Down
6 changes: 3 additions & 3 deletions src/containers/A_monitor/monitorpage.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import bitcoin from '@iso/assets/images/bitcoin.png';
import litecoin from '@iso/assets/images/litecoin.png';
import bitcoincash from '@iso/assets/images/bitcoincash.png';
import dogecoin from '@iso/assets/images/dogecoin.png';
import luna from '@iso/assets/images/luna.png';
import gaia from '@iso/assets/images/gaia.png';

const leaveIcon = <svg style={{marginTop: 5}} focusable="false" preserveAspectRatio="xMidYMid meet" xmlns="http://www.w3.org/2000/svg" fill="currentColor" width="20" height="20" viewBox="0 0 30 30" aria-hidden="true" className="sfg"><path d="M6,30H18a2.0023,2.0023,0,0,0,2-2V25H18v3H6V4H18V7h2V4a2.0023,2.0023,0,0,0-2-2H6A2.0023,2.0023,0,0,0,4,4V28A2.0023,2.0023,0,0,0,6,30Z"></path><path d="M20.586 20.586L24.172 17 10 17 10 15 24.172 15 20.586 11.414 22 10 28 16 22 22 20.586 20.586z"></path></svg>

Expand Down Expand Up @@ -286,7 +286,7 @@ const NodeTable = ({nodeData, clickSortHeader, sortColour, maxChainHeights, chai
<th className="tableHeader" style={{...headerStyle, ...iconStyle}}><img alt="#" src={litecoin} style={{width: 25, height: 25, display: 'block', margin: 'auto'}}/></th>
<th className="tableHeader" style={{...headerStyle, ...iconStyle}}><img alt="#" src={bitcoincash} style={{width: 25, height: 25, display: 'block', margin: 'auto'}}/></th>
<th className="tableHeader" style={{...headerStyle, ...iconStyle}}><img alt="#" src={dogecoin} style={{width: 25, height: 25, display: 'block', margin: 'auto'}}/></th>
<th className="tableHeader" style={{...headerStyle, ...iconStyle}}><img alt="#" src={luna} style={{width: 25, height: 25, display: 'block', margin: 'auto'}}/></th>
<th className="tableHeader" style={{...headerStyle, ...iconStyle}}><img alt="#" src={gaia} style={{width: 25, height: 25, display: 'block', margin: 'auto'}}/></th>
</>
}
<th className="tableHeader" style={{...headerStyle, textAlign: 'center'}}>RPC</th>
Expand Down Expand Up @@ -340,7 +340,7 @@ const NodeTable = ({nodeData, clickSortHeader, sortColour, maxChainHeights, chai
<ChainTD chain={'LTC'} obchains={item.obchains} maxChainHeights={maxChainHeights} />
<ChainTD chain={'BCH'} obchains={item.obchains} maxChainHeights={maxChainHeights} />
<ChainTD chain={'DOGE'} obchains={item.obchains} maxChainHeights={maxChainHeights} />
<ChainTD chain={'TERRA'} obchains={item.obchains} maxChainHeights={maxChainHeights} />
<ChainTD chain={'GAIA'} obchains={item.obchains} maxChainHeights={maxChainHeights} />
</>
}
<td style={{...tdStyle, textAlign: 'center'}}><a style={{color: 'rgba(0,0,0,0.85)', fontSize: 18}} href={`http://${item.ip_address}:27147/health?`} target="_blank" rel="noopener noreferrer">{item.rpc === 'true' ? '*' : 'BAD'}</a></td>
Expand Down