vega-frontend-monorepo/apps/multisig-signer
Matthew Russell 0b4f918208
chore(#2412): refactor theme context (#2435)
* chore: switch theme to zustand, delete context

* chore: switch apps/componenets to consume the hook

* chore: update storybook theme usage to use documentElement

* chore: dry up theme switcher listener for storybooks

* feat: optional theme param to allow toggling

* chore: add additional check for matchMedia function

* chore: change block explorer test to use light theme as its the default

* chore: remove unused headerprops for multisig-signer

* chore: remove unused props from theme switcher component

* chore: dry up validateTheme func

* chore: remove unused props from explorer header test

* chore: use new theme switcher in account history container
2022-12-20 18:55:35 -08:00
..
src chore(#2412): refactor theme context (#2435) 2022-12-20 18:55:35 -08:00
.babelrc
.browserslistrc
.env
.env.devnet
.env.mainnet
.env.sandbox
.env.stagnet3
.env.testnet
.eslintrc.json
index.d.ts
jest.config.ts
netlify.toml
postcss.config.js
project.json
README.md
tailwind.config.js
tsconfig.app.json
tsconfig.json
tsconfig.spec.json
webpack.config.js

Multisig-signer

Development

First copy the configuration of the application you are starting:

cp .env.[environment] .env.local

Starting the app:

yarn nx serve multisig-signer

Configuration

Example configurations are provided here:

For convenience, you can boot the app injecting one of the configurations above by running:

yarn nx run multisig-signer:serve --env={env} # e.g. stagnet3

There are a few different configuration options offered for this app:

| Flag | Purpose | | -------------------------------- | ---------------------------------------------------------------------------------------------------- | --- | | | NX_VEGA_URL | The GraphQl query endpoint of a Vega data node | | NX_VEGA_ENV | The name of the currently connected vega environment |

Testing

To run the minimal set of unit tests, run the following:

yarn nx test multisig-signer