telosnetwork / open-block-explorer

The Open Block Explorer (OBE) is the first open source block explorer that is designed to support all AntelopeIO-based blockchains.
https://explorer.telos.net
Apache License 2.0
27 stars 24 forks source link

The code needs some housekeeping #636

Closed Viterbo closed 1 year ago

Viterbo commented 1 year ago

Description

There are lots of places where the code has a bad indentation making it very hard to read and understand.

Examples: It's hard to figure out where the try-catch structure is https://github.com/telosnetwork/open-block-explorer/blob/master/src/components/staking/StakingDialog.vue#L89-L100

Here the code is indented with 2 spaces when all the rest is using 4 spaces https://github.com/telosnetwork/open-block-explorer/blob/master/src/components/contract/ContractTables.vue

This function is called sendTransaction() when actually it sends just one action (creating the transaction inside the function) https://github.com/telosnetwork/open-block-explorer/blob/master/src/store/account/actions.ts#L148

inline style attribute should not be used directly on the html https://github.com/telosnetwork/open-block-explorer/blob/master/src/pages/Transaction.vue#L72