interchainio / ibc-visualizer Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
As done in https://github.com/CosmWasm/code-explorer
The GitHub pages deployment should connect to a public testnet (musselnet for now).
In the code
<div>
{connectionsResponse?.connections?.length ? (
<>
<span className={style.title}>Connections / client</span>
<HeightData height={connectionsResponse.height} />
<div>
{clientIds.map((clientId) => (
<div key={clientId} className="flex flex-col items-start">
<div className={style.subtitle}>Client {clientId}</div>
{connectionsResponse.connections?.map((connection) => (
<Link
to={`${pathConnections}/${connection.id}`}
key={connection.id}
className={`${style.button} mt-2 block`}
>
Connection {ellideMiddle(connection.id ?? "–", 20)}
</Link>
))}
</div>
))}
</div>
{connectionsResponse.pagination?.nextKey?.length ? (
<button onClick={loadMoreConnections}>Load more</button>
) : null}
</>
) : (
<span>No connections found</span>
)}
</div>
the title and height is not shown when the list of connections is empty. I think we need two checks here
connectionsResponse
is set: show title, height and list (elements or "No connections found").connectionsResponse
is not set: show text "Loading data …"We need a short description how to start the local blockchain and start the app
Right now if no chain is running the app just displays a black screen to the user. Let's catch connection errors and inform the user they need to make a chain available at the relevant location.
It would be great to see these in a tree form in the main screen. For example when you click a connection, channels appear below, when clicked to a channel, ports will show up.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.