Skip to content

Commit

Permalink
Merge pull request #3 from eco-stake/fix-testnet-urls
Browse files Browse the repository at this point in the history
Fix testnet URLs to use correct domain
  • Loading branch information
tombeynon authored Oct 8, 2024
2 parents e44fedf + ed7a135 commit 20ded9b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions src/components/NodePanel.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useState, useEffect } from "react";
import {
import {
CNav,
CNavItem,
CNavLink,
Expand Down Expand Up @@ -136,7 +136,7 @@ function NodePanel(props) {
<CTabPane role="tabpanel" aria-labelledby="home-tab" visible={activeKey === type} key={type}>
{['rpc', 'rest'].includes(type) &&
<p className="alert alert-secondary small mt-2">
<strong>{type.toUpperCase()} Proxy:</strong> <a href={`https://${type}.cosmos.directory/${chain.path}`} target="_blank">{`https://${type}.cosmos.directory/${chain.path}`}</a>
<strong>{type.toUpperCase()} Proxy:</strong> <a href={`https://${type}.${process.env.DIRECTORY_DOMAIN}/${chain.path}`} target="_blank">{`https://${type}.${process.env.DIRECTORY_DOMAIN}/${chain.path}`}</a>
</p>
}
<DataTable bodyClass="small" columnclass="align-middle" labelclass="text-break w-25" valueclass="w-50" data={props.limit ? _.take(panelData[type], props.limit) : panelData[type]} header={['Provider', 'Status']} />
Expand All @@ -161,4 +161,4 @@ function NodePanel(props) {
)
}

export default NodePanel
export default NodePanel
18 changes: 9 additions & 9 deletions src/components/SourcesPanel.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import {
import {
CTooltip
} from '@coreui/react'
import Panel from "./Panel";
Expand All @@ -13,9 +13,9 @@ function SourcesPanel(props) {
label: <a href="https://github.com/cosmos/chain-registry" target="_blank" className="text-reset">Chain Registry</a>,
value: (
<>
<a href={`https://chains.cosmos.directory/${chain.path}`} target="_blank">chains.cosmos.directory/{chain.path}</a><br />
<a href={`https://chains.cosmos.directory/${chain.path}/chain`} target="_blank">chains.cosmos.directory/{chain.path}/chain</a><br />
<a href={`https://chains.cosmos.directory/${chain.path}/assetlist`} target="_blank">chains.cosmos.directory/{chain.path}/assetlist</a><br />
<a href={`https://chains.${process.env.DIRECTORY_DOMAIN}/${chain.path}`} target="_blank">chains.{process.env.DIRECTORY_DOMAIN}/{chain.path}</a><br />
<a href={`https://chains.${process.env.DIRECTORY_DOMAIN}/${chain.path}/chain`} target="_blank">chains.{process.env.DIRECTORY_DOMAIN}/{chain.path}/chain</a><br />
<a href={`https://chains.${process.env.DIRECTORY_DOMAIN}/${chain.path}/assetlist`} target="_blank">chains.{process.env.DIRECTORY_DOMAIN}/{chain.path}/assetlist</a><br />
</>
)
},
Expand All @@ -24,7 +24,7 @@ function SourcesPanel(props) {
label: <a href="https://github.com/eco-stake/validator-registry" target="_blank" className="text-reset">Validator Registry</a>,
value: (
<>
<a href={`https://validators.cosmos.directory/chains/${chain.path}`} target="_blank">validators.cosmos.directory/chains/{chain.path}</a><br />
<a href={`https://validators.${process.env.DIRECTORY_DOMAIN}/chains/${chain.path}`} target="_blank">validators.{process.env.DIRECTORY_DOMAIN}/chains/{chain.path}</a><br />
</>
)
},
Expand All @@ -35,8 +35,8 @@ function SourcesPanel(props) {
),
value: (
<>
<a href={`https://rpc.cosmos.directory/${chain.path}`} target="_blank">rpc.cosmos.directory/{chain.path}</a><br />
<a href={`https://rest.cosmos.directory/${chain.path}`} target="_blank">rest.cosmos.directory/{chain.path}</a><br />
<a href={`https://rpc.${process.env.DIRECTORY_DOMAIN}/${chain.path}`} target="_blank">rpc.{process.env.DIRECTORY_DOMAIN}/{chain.path}</a><br />
<a href={`https://rest.${process.env.DIRECTORY_DOMAIN}/${chain.path}`} target="_blank">rest.{process.env.DIRECTORY_DOMAIN}/{chain.path}</a><br />
</>
)
},
Expand All @@ -47,7 +47,7 @@ function SourcesPanel(props) {
),
value: (
<>
<a href={`https://status.cosmos.directory/${chain.path}`} target="_blank">status.cosmos.directory/{chain.path}</a><br />
<a href={`https://status.${process.env.DIRECTORY_DOMAIN}/${chain.path}`} target="_blank">status.{process.env.DIRECTORY_DOMAIN}/{chain.path}</a><br />
</>
)
},
Expand All @@ -62,4 +62,4 @@ function SourcesPanel(props) {
)
}

export default SourcesPanel
export default SourcesPanel

0 comments on commit 20ded9b

Please sign in to comment.