Skip to content

yasha-black/explorer-frontend

 
 

Repository files navigation

Build Status Codecov Docker Hub

This repository contains browser for viewing activity on the underlying blockchain network.

Code style

TypeScript

For typescript code style standards we use TSLint

CSS

We use CSS Comb to format SCSS code in project.

To have it in JetBrains WebStorm follow next instructions

  1. Go to Preferences > External Tools (or press ⌘, on Mac)
  2. Click on Add icon (or press ⌘N on Mac)
  3. Fill the form with following info:
    • Name: CSS Comb
    • Program: $ProjectFileDir$/node_modules/.bin/csscomb
    • Parameters: $FilePath$ -t
    • Working directory: $FileDir$

Custom config

To pass custom variables put to /config/ app.config.js

Where app.config.js is a JavaScript file containing next content:

var __APP_CONFIG__ = {
  apiUrl: 'http://custom.apiserver',
  alternativeLogo: true, // true by default
  environments: [
     {
       name: 'Testnet',
       url: 'http://custom.explorerUrl',
     }
   ],
};

if (typeof global !== 'undefined') {
  global.__APP_CONFIG__ = __APP_CONFIG__;
}

Translations

In order to translate project files use i18n-editor. Download latest stable release and open Project located in client/src/locales

Packages

No packages published

Languages

  • TypeScript 73.2%
  • SCSS 22.9%
  • JavaScript 2.3%
  • Other 1.6%