wormhole/explorer
justinschuldt cf36c9bfe0 explorer: lookup BigTable data
- Explorer page fetch data from hosted Cloud Functions.

- Network page use GetLastHeartbeats rather than gRPC stream.

Change-Id: I57dce2ee0b84c4b31fcf7308855668a139ffe20e
2021-08-25 14:01:31 +00:00
..
.storybook Add explorer web app and web proto codegen 2021-06-02 16:05:16 +00:00
.vscode Explorer web app redesign. 2021-08-10 15:01:18 +00:00
__mocks__ Add explorer web app and web proto codegen 2021-06-02 16:05:16 +00:00
src explorer: lookup BigTable data 2021-08-25 14:01:31 +00:00
static Explorer web app redesign. 2021-08-10 15:01:18 +00:00
test-utils Add explorer web app and web proto codegen 2021-06-02 16:05:16 +00:00
.babelrc Add explorer web app and web proto codegen 2021-06-02 16:05:16 +00:00
.dockerignore explorer: lookup BigTable data 2021-08-25 14:01:31 +00:00
.editorconfig Add explorer web app and web proto codegen 2021-06-02 16:05:16 +00:00
.env.sample explorer: lookup BigTable data 2021-08-25 14:01:31 +00:00
.eslintignore Add explorer web app and web proto codegen 2021-06-02 16:05:16 +00:00
.eslintrc.js Explorer web app redesign. 2021-08-10 15:01:18 +00:00
.gitignore Add explorer web app and web proto codegen 2021-06-02 16:05:16 +00:00
.prettierignore Add explorer web app and web proto codegen 2021-06-02 16:05:16 +00:00
.prettierrc Explorer web app redesign. 2021-08-10 15:01:18 +00:00
.svgo.yml Add explorer web app and web proto codegen 2021-06-02 16:05:16 +00:00
Dockerfile explorer: lookup BigTable data 2021-08-25 14:01:31 +00:00
README.md explorer: lookup BigTable data 2021-08-25 14:01:31 +00:00
gatsby-browser.js Add explorer web app and web proto codegen 2021-06-02 16:05:16 +00:00
gatsby-config.js explorer: lookup BigTable data 2021-08-25 14:01:31 +00:00
gatsby-node.js explorer: lookup BigTable data 2021-08-25 14:01:31 +00:00
gatsby-ssr.js Add explorer web app and web proto codegen 2021-06-02 16:05:16 +00:00
generate-wasm.sh explorer: lookup BigTable data 2021-08-25 14:01:31 +00:00
jest.config.js Add explorer web app and web proto codegen 2021-06-02 16:05:16 +00:00
jsconfig.json Add explorer web app and web proto codegen 2021-06-02 16:05:16 +00:00
package-lock.json explorer: lookup BigTable data 2021-08-25 14:01:31 +00:00
package.json explorer: lookup BigTable data 2021-08-25 14:01:31 +00:00
tsconfig.json explorer: lookup BigTable data 2021-08-25 14:01:31 +00:00

README.md

wormhole explorer

A web app built with:

Notable files

Repo setup

Installing dependencies with npm:

npm install

Create a .env file for your development environment, from the .env.sample:

cp .env.sample .env.development

Developing

Start the development server with the npm script:

npm run dev

Then open the web app in your browser at http://localhost:8000

Debugging

NodeJs debugging with VSCode

You can debug the Gatsby dev server or build process using VSCode's debbuger. Checkout .vscode/launch.json to see the NodeJS debugging options.

These debugger configs will let you set breakpoints in the Gatsby node programs (./gatsby-config.js, ./gatsby-node.js) to debug webpack, Gatsby plugins, etc.

Browser debugging with VSCode

With the Debugger for Chrome extension installed, you can inspect the web app and set broswer breakpoints from VSCode. With the dev server (npm run dev) running, select & run Debug in Chrome from the debugger pane.

Storybook component rendering

Storybook can render components with sytles and locales, for UI component development.

Run Storybook with:

npm run storybook

See ./src/components/Button/button.stories.tsx

eslint linting & formatting

Check linting:

npm run lint

Fix linting errors:

npm run format

Ant Design Theming

Ant Design default less variables can be overridden in ./src/AntdTheme.js, which is used in ./gatsby-config.js#L51.

Programmatic Translations

Translations can be made for the supported languages (./src/utils/i18n/supportedLanguages.js). The English language definition file (./src/locales/en.json) will be read and used as the source, using either DeepL or Google Translate to supply the translations.

Translating with DeepL

Pass your DeepL Pro api key to the npm script:

npm run translate:deepl -- your-DeepL-Pro-api-key-here

Translating with Google Translate

With your Service Account credentials saved to a file locally, pass the path to the .json file to the npm script:

npm run translate:google -- ./your-GCP-service-account.json

Protobuf generation

You'll need to generate proto files by running:

npm run generate-protos

WASM generation

To generate WASM files run:

npm run generate-wasm