• R/O
  • HTTP
  • SSH
  • HTTPS

bytom-dashboard: Résumé du dépôt

dashboard of Bytom


Commits Récents RSS

Révision l'heure Auteur Message:
41c4309 2022-04-09 08:12:46 dependabot[bot] dependabot/npm_and_yarn/moment-2.29.2 Bump moment from 2.22.1 to 2.29.2 Bumps [moment](https:...
ce28a54 2022-02-10 16:22:04 dependabot[bot] dependabot/npm_and_yarn/node-sass-7.0.0 Bump node-sass from 4.12.0 to 7.0.0 Bumps [node-sass](h...
da33b87 2022-01-15 11:03:37 dependabot[bot] dependabot/npm_and_yarn/shelljs-0.8.5 Bump shelljs from 0.7.8 to 0.8.5 Bumps [shelljs](https:...
4068edd 2021-09-01 18:15:34 j feature/btm2_ui style: update peers style
89dc978 2021-08-30 17:57:09 j fix: update docs url
147308a 2021-08-24 17:07:34 j fix: add retire
4e8e5db 2021-08-23 19:12:30 j style: add scrollbar of sidebar
3c31ab0 2021-08-20 19:04:06 j fix: update
dcc26ab 2021-08-19 10:55:26 j fix: update
0674813 2021-07-30 17:09:43 j fix: upadte net-info

Tags récemment modifiées

Nom Révision l'heure Auteur
v1.0.0 5d94fd8 2018-04-21 13:48:15 Yongfeng LI

Branches

Nom Révision l'heure Auteur Message:
dependabot/npm_and_yarn/moment-2.29.2 41c4309 2022-04-09 08:12:46 dependabot[bot] Bump moment from 2.22.1 to...
dependabot/npm_and_yarn/node-sass-7.0.0 ce28a54 2022-02-10 16:22:04 dependabot[bot] Bump node-sass from 4.12.0...
dependabot/npm_and_yarn/shelljs-0.8.5 da33b87 2022-01-15 11:03:37 dependabot[bot] Bump shelljs from 0.7.8 to...
feature/btm2_ui 4068edd 2021-09-01 18:15:34 j style: update peers style
feature/btm2 bb328b8 2021-06-23 17:41:22 j fix: hide cross chain
dependabot/npm_and_yarn/lodash-4.17.21 7a7f277 2021-05-07 05:54:55 dependabot[bot] Bump lodash from 4.17.14 t...
dependabot/npm_and_yarn/node-sass-4.13.1 2dbda2d 2020-09-04 09:36:13 dependabot[bot] Bump node-sass from 4.12.0...
dependabot/npm_and_yarn/lodash-4.17.19 3e91e76 2020-07-16 08:35:17 dependabot[bot] Bump lodash from 4.17.14 t...
master 69d4d4b 2020-02-06 11:45:24 Zhiting Lin fixed the create asset stri...
politic 9e2204e 2020-01-09 11:38:39 Zhiting Lin fixed the filters.
politic-old b058557 2019-12-19 11:19:53 Zhiting Lin Revert "update tripple tags...
vapor e56b0e1 2019-10-23 17:00:22 Zhiting Lin update the chain transactio...
dev 45a4992 2018-07-30 20:47:18 Zhiting Lin Modified the password locke...
pagination d6d8e88 2018-05-24 10:43:19 Yongfeng LI remove detail param
refactor 623949c 2018-04-23 15:52:30 Yongfeng LI refactor Restore component

README.md

Bytom Dashboard

Development

Setup

Install Node.js:

brew install node

Install dependencies:

npm install

Start the development server with

npm start

By default, the development server uses the following environment variables with default values to connect to a local Bytom Core instance:

API_URL=http://localhost:3000/api
PROXY_API_HOST=http://localhost:9888

Style Guide

We use eslint to maintain a consistent code style. To check the source directory with eslint, run:

npm run lint src

React + Redux

ES6

Babel is used to transpile the latest ES6 syntax into a format understood by both Node.js and browsers. To get an ES6-compatible REPL (or run a one-off script) you can use the babel-node command:

$(npm bin)/babel-node

Redux Actions

To inspect and debug Redux actions, we recommend the "Redux DevTools" Chrome extension:

https://chrome.google.com/webstore/detail/redux-devtools/lmhkpmbekcpmknklioeibfkpmmfibljd

Creating new components

To generate a new component with a connected stylesheet, use the following command:

npm run generate-component Common/MyComponent

The above command will create two new files in the src/components directory:

src/components/Common/MyComponent/MyComponent.jsx
src/components/Common/MyComponent/MyComponent.scss

with MyComponent.scss imported as a stylesheet into MyComponent.jsx.

Additionally, if there is an index.js file in src/components/Common, it will appropriately add the newly created component to the index exports.

Afficher sur ancien navigateur de dépôt.