Blockchain explorer for Ethereum based network and a tool for inspecting and analyzing EVM based blockchains.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
blockscout/docs/front-end.md

1.4 KiB

Front-end

Javascript

All Javascript files are located in apps/block_scout_web/assets/js. The main file is app.js. This file imports all javascript used in the application. If you want to create a new JS file consider creating in /js/pages or /js/lib, as follows:

js/lib

This folder contains all scripts usable for any page or as helpers to some component.

js/pages

This folder contains the scripts that are page-specific.

Redux

This project uses Redux to control the state in some pages. There are pages with real-time events that use Phoenix channels, e.g. Address page. The page state changes often depending on which events it is listening to. Redux is also used to load some contents asynchronously, see async_listing_load.js.

To understand how to build new pages that require Redux, see the redux_helpers.js file.