Skip to content

Commit

Permalink
Kwun/cherry pick fixes (forbole#415)
Browse files Browse the repository at this point in the history
* update logo and version

* update logo

* Fixes incorrect fee

* update version translation
  • Loading branch information
kwunyeung authored Nov 3, 2020
1 parent 86bfb81 commit 32c496d
Show file tree
Hide file tree
Showing 16 changed files with 13 additions and 57 deletions.
4 changes: 2 additions & 2 deletions both/i18n/en-us.i18n.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ common:
retry: 'Retry'
rewards: 'Rewards'
navbar:
siteName: 'The Big Dipper'
version: 'beta'
siteName: 'BIG DIPPER'
version: '-'
validators: 'Validators'
blocks: 'Blocks'
transactions: 'Transactions'
Expand Down
3 changes: 1 addition & 2 deletions both/i18n/es-es.i18n.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ common:
cancel: 'Cancelar'
retry: 'Reintentar'
navbar:
siteName: 'The Big Dipper'
version: 'beta'
siteName: 'BIG DIPPER'
validators: 'Validadores'
blocks: 'Bloques'
transactions: 'Transacciones'
Expand Down
3 changes: 1 addition & 2 deletions both/i18n/it-IT.i18n.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ common:
retry: 'Riprova'
rewards: 'Reward'
navbar:
siteName: 'The Big Dipper'
version: 'beta'
siteName: 'BIG DIPPER'
validators: 'Validatori'
blocks: 'Blocchi'
transactions: 'Transazioni'
Expand Down
1 change: 0 additions & 1 deletion both/i18n/pl-PL.i18n.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ common:
rewards: 'Nagrody'
navbar:
siteName: 'Wielki Wóz'
version: 'beta'
validators: 'Walidatorzy'
blocks: 'Bloki'
transactions: 'Transakcje'
Expand Down
3 changes: 1 addition & 2 deletions both/i18n/pt-BR.i18n.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ common:
retry: 'Tentar novamente'
rewards: 'Recompensas'
navbar:
siteName: 'The Big Dipper'
version: 'beta'
siteName: 'BIG DIPPER'
validators: 'Validadores'
blocks: 'Blocos'
transactions: 'Transações'
Expand Down
3 changes: 1 addition & 2 deletions both/i18n/ru-RU.i18n.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ common:
retry: 'Повторить попытку'
rewards: 'награды'
navbar:
siteName: 'The Big Dipper'
version: 'бета'
siteName: 'BIG DIPPER'
validators: 'валидаторы'
blocks: 'блоки'
transactions: 'транзакции'
Expand Down
1 change: 0 additions & 1 deletion both/i18n/zh-hans.i18n.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ common:
retry: '重试'
navbar:
siteName: '北斗'
version: 'beta'
validators: '验证人'
blocks: '区块'
transactions: '交易'
Expand Down
1 change: 0 additions & 1 deletion both/i18n/zh-hant.i18n.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ common:
retry: '重試'
navbar:
siteName: '北斗'
version: 'beta'
validators: '驗證人'
blocks: '區塊'
transactions: '交易'
Expand Down
2 changes: 1 addition & 1 deletion client/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ body {
}

.progress {
height: inherit !important;
height: 1.5rem !important;
font-size: inherit !important;
border: 1px solid #ddd !important;
}
Expand Down
2 changes: 1 addition & 1 deletion imports/ui/components/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ export default class Header extends Component {
let signedInAddress = getUser();
return (
<Navbar color="primary" dark expand="lg" fixed="top" id="header">
<NavbarBrand tag={Link} to="/"><img src="/img/big-dipper.svg" className="img-fluid logo"/> <span className="d-none d-xl-inline-block"><T>navbar.siteName</T>&nbsp;</span><Badge color="secondary"><T>navbar.version</T></Badge> </NavbarBrand>
<NavbarBrand tag={Link} to="/"><img src="/img/big-dipper-icon-light.svg" className="img-fluid logo"/> <span className="d-none d-xl-inline-block"><T>navbar.siteName</T>&nbsp;</span><Badge color="secondary"><T>navbar.version</T></Badge> </NavbarBrand>
<UncontrolledDropdown className="d-inline text-nowrap">
<DropdownToggle caret={(this.state.networks !== "")} tag="span" size="sm" id="network-nav">{Meteor.settings.public.chainId}</DropdownToggle>
{this.state.networks}
Expand Down
2 changes: 1 addition & 1 deletion imports/ui/ledger/LedgerActions.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ const Amount = (props) => {


const Fee = (props) => {
return <span><CoinAmount mint className='gas' amount={props.gas * Meteor.settings.public.gasPrice}/> as fee </span>
return <span><CoinAmount mint className='gas' amount={Math.ceil(props.gas * Meteor.settings.public.gasPrice)}/> as fee </span>
}

const isActiveValidator = (validator) => {
Expand Down
4 changes: 2 additions & 2 deletions imports/ui/ledger/ledger.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import CryptoJS from "crypto-js"

// TODO: discuss TIMEOUT value
const INTERACTION_TIMEOUT = 10000
const REQUIRED_COSMOS_APP_VERSION = "1.5.0"
const REQUIRED_COSMOS_APP_VERSION = "2.0.0"
const DEFAULT_DENOM = 'uatom';
const DEFAULT_GAS = 200000;
export const DEFAULT_GAS_PRICE = 0.025;
Expand Down Expand Up @@ -228,7 +228,7 @@ export class Ledger {
// eslint-disable-next-line no-param-reassign
unsignedTx.value.fee = {
amount: [{
amount: Math.round(gas * gasPrice).toString(),
amount: Math.ceil(gas * gasPrice).toString(),
denom: denom,
}],
gas: gas.toString(),
Expand Down
1 change: 1 addition & 0 deletions public/img/big-dipper-icon-light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/img/big-dipper-logo-light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/img/big-dipper.png
Binary file not shown.
39 changes: 0 additions & 39 deletions public/img/big-dipper.svg

This file was deleted.

0 comments on commit 32c496d

Please sign in to comment.