A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/balancer-labs/frontend-v2 below:

balancer/frontend-v2: Frontend app for the Balancer protocol

⛔️ This app is now deprecated

We have launched a new UI for the Balancer protocol, which is available at https://balancer.fi. The source code for the new UI is available at https://github.com/balancer/frontend-v3.

Note, there is an exception where by the veBAL page is still available at https://app.balancer.fi/vebal. We will continue to maintain the veBAL page of this UI until we migrate that functionality to the new UI.

To setup the development environment first clone the repo:

git clone https://github.com/balancer/frontend-v2.git && cd frontend-v2

Install dependencies:

Start the app:

The app should be live at http://localhost:8080

Run unit tests:

Run unit tests in watch mode:

Run unit tests with coverage:

npm run test:unit:coverage

Run unit tests with only lcov coverage (useful when doing exploratory testing):

npm run test:unit:silent:coverage

Run build:

Preview build:

Run build in watch mode:

This mode is useful when you need to reproduce/fix bugs/issues in a production-like environment.

If you'd rather spin up the app in a docker container, first install dependencies to you local folder:

docker-compose build
docker-compose run --rm web npm i

and start the app:

The app should be live at http://localhost:8080

If you are on Apple Silicon, try this:

export DOCKER_DEFAULT_PLATFORM=linux/amd64

source: https://stackoverflow.com/questions/65612411/forcing-docker-to-use-linux-amd64-platform-by-default-on-macos

The frontend can easily be deployed to any static host. Use the buttons below to spin up an instance. You will be prompted to provide your Infura Project ID, Alchemy Key, and Blocknative Dapp ID as these are required for the frontend to work correctly.

This app is powered by vite, which:

Both tools above rely on native ES modules but our app also depends on libraries like ethers.js which use Node.js built-in modules (like Buffer, stream or crypto) that require browser polyfills. Thats why our vite.config.ts uses node-pollyfills and rollup-plugin-polyfill-node.

We use some Vite plugins to improve the Vue developer experience.

unplugin-vue-components:

Auto imports components located in src/components/_global so that they are available from every other component in the application (and from vitest). (It also auto generates a d.ts file for the auto imported components).

Analyze and visualize the bundle dependencies:


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4