vega-frontend-monorepo/libs/network-stats
m.ray d03e4cf785
Feat/300 network parameters table (#333)
* network parameters table with key value rows and syntax blobs only for json values

* inline row not for syntax

* add unit test for network param table

* add cypress test to verify if values are non-empty

* remove some comments

* rename formatNumber method to addDecimalsFormatNumber and simplify formatNumber

* remove duplicate expect line

* use AsyncRenderer and sort params asc

* refactor and add extra tests to check ordering and loading cases

* format big number params with addDecimals formatNumber

* Update apps/explorer/src/app/routes/network-parameters/network-parameters.tsx

Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>

* capitalize and refactor tests

* missing ; caused formatting to fail

Co-authored-by: madalinaraicu <“madalina@raygroup.uk”>
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
2022-05-04 18:15:54 +03:00
..
src Feat/300 network parameters table (#333) 2022-05-04 18:15:54 +03:00
.babelrc frontend-monorepo-127 Generalize stats page to work for all environments 2022-03-24 12:04:01 +00:00
.eslintrc.json frontend-monorepo-127 Generalize stats page to work for all environments 2022-03-24 12:04:01 +00:00
jest.config.js frontend-monorepo-127 Generalize stats page to work for all environments 2022-03-24 12:04:01 +00:00
package.json frontend-monorepo-127 Generalize stats page to work for all environments 2022-03-24 12:04:01 +00:00
project.json frontend-monorepo-127 Generalize stats page to work for all environments 2022-03-24 12:04:01 +00:00
README.md frontend-monorepo-190 Add env vars details to stats readme (#202) 2022-04-06 13:19:48 +01:00
tsconfig.json frontend-monorepo-127 Generalize stats page to work for all environments 2022-03-24 12:04:01 +00:00
tsconfig.lib.json frontend-monorepo-127 Generalize stats page to work for all environments 2022-03-24 12:04:01 +00:00
tsconfig.spec.json frontend-monorepo-127 Generalize stats page to work for all environments 2022-03-24 12:04:01 +00:00

network-stats

This library was generated with Nx.

Prerequisites

Two environment variables need to be present for any app consuming this library.

NX_VEGA_ENV is the name of the environment.

NX_VEGA_REST is the REST endpoint for the environment.

For examples, see Block Explorer's .env files here

Running unit tests

Run nx test network-stats to execute the unit tests via Jest.