1.1.6 • Published 1 year ago

@myestery/giant-squid-viewer v1.1.6

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Giant Squid Viewer

A React component for viewing Giant Squid data.

Installation

npm install @myestery/giant-squid-viewer

Usage

import React from 'react';
import "@myestery/giant-squid-viewer/styles/index.css";
import { Viewer } from '@myestery/giant-squid-viewer';
const coins = ['polkadot']

const App = () => {
  return (
    <Viewer coins={coins} pollInterval={1000} />
  );
};

Props

PropTypeDescription
coinsarrayarray of coins to display
pollIntervalintegerFrequency of update in milliseconds

Coins

Valid coins are:

["polkadot","kusama","moonbeam","moonriver","acala","karura","statemine","statemint","astar","shiden","shibuya","bifrost","khala","phala","calamari","gm","subsocial","efinity","rococo","interlay","hydraDX"]

as seen in https://docs.subsquid.io/giant-squid-api/statuses/

Leave an empty array to see all coins.

Styles

The viewer uses tailwindcss for styling. You will need to import the styles as shown in the description above

Development

npm install
npm start

Live Preview

https://giant-squid-status.netlify.app/

License

MIT The Giant Squid Viewer is licensed under the MIT license. See the LICENSE file for more details.

1.1.0

1 year ago

1.0.9

1 year ago

1.1.6

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago