Skip to content
This repository has been archived by the owner on Nov 20, 2020. It is now read-only.

Commit

Permalink
Merge pull request #199 from Conflux-Chain/notice
Browse files Browse the repository at this point in the history
feat: when value is 0, display 0 and change the dev proxy url
  • Loading branch information
Angelia authored Jul 15, 2020
2 parents 9a6d0c0 + 545c49c commit d275d7e
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 8 deletions.
8 changes: 5 additions & 3 deletions src/lang/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,12 @@ export default {
'app.common.officialSite': 'Official Site',
'app.common.contract': 'Contract',
'app.pages.index.testnet.notice1':
'1. ConfluxScan is currently on the testnet network, Conflux-Rust version: v0.6.0-rc-1, all data shown are from the testnet.',
'1. ConfluxScan is currently on the testnet network, Conflux-Rust version: v0.6.0-rc-3, all data shown are from the testnet.',
'app.pages.index.testnet.notice2': '2. Conflux Pontus is now live.',
'app.pages.index.mainnet.notice1': 'ConfluxScan is currently on the Mainnet Phase I - Pontus, Conflux-Rust version: v0.5.2',

'app.pages.index.mainnet.notice1':
'1. Conflux Mainnet Phase II - Oceanus - will officially launch between the 17th and 18th of July. If you are a DApp developer, please make sure to back up your relevant data.',
'app.pages.index.mainnet.notice2':
"2. During the launch of Conflux Oceanus, FC transfers might be affected. Please don't transfer any FC during the launch.",
'security.High': 'Great',
'security.Medium': 'Good',
'security.Low': 'Weak',
Expand Down
7 changes: 4 additions & 3 deletions src/lang/zh.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,10 +246,11 @@ export default {
'app.common.abi': 'ABI',
'app.common.officialSite': '官方网站',
'app.common.contract': '合约',
'app.pages.index.testnet.notice1':
'1. 当前网络为 Conflux Testnet,Conflux-Rust 版本号:v0.6.0-rc-1,所有数据均为 Conflux 测试网数据。',
'app.pages.index.testnet.notice1': '1. 当前网络为 Conflux Testnet,Conflux-Rust 版本号:v0.6.0-rc-3,所有数据均为 Conflux 测试网数据。',
'app.pages.index.testnet.notice2': '2. Conflux 主网第一阶段 Conflux Pontus 已于 2020.4.27 上线,欢迎体验。',
'app.pages.index.mainnet.notice1': '当前网络为 Conflux 主网第一阶段 Conflux Pontus,Conflux-Rust 版本号:v0.5.2',
'app.pages.index.mainnet.notice1':
'1. Conflux 主网第二阶段 Conflux Oceanus 将于 7 月 17 日至 7 月 18 日上线,请 DApp 开发者提前备份好相关数据。',
'app.pages.index.mainnet.notice2': '2. Conflux Oceanus 上线期间,FC 转账功能会有影响,在此期间请不要进行 FC 的转账操作。',

'security.High': '高',
'security.Medium': '中',
Expand Down
1 change: 1 addition & 0 deletions src/pages/Home/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,7 @@ class Home extends Component {
<i />
<div className="notice-content">
<div>{i18n('app.pages.index.mainnet.notice1')}</div>
<div>{i18n('app.pages.index.mainnet.notice2')}</div>
</div>
</NoticeDiv>
)}
Expand Down
1 change: 1 addition & 0 deletions src/utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ let source = null;

export const convertToValueorFee = (bigNumber) => {
const result = new BigNumber(bigNumber).dividedBy(10 ** 18);
if (result.toNumber() === 0) return '0';
if (result.toNumber() < 0.00001) return `< 0.00001`;
return `${result.toString(10)}`;
};
Expand Down
4 changes: 2 additions & 2 deletions webpack.dev.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module.exports = merge(commom, {
proxy: {
// '/proxy': 'http://127.0.0.1:3000',
'/api': {
target: 'http://13.75.69.106:8885',
target: 'http://47.95.128.92:8885',
// target: 'http://13.75.69.106',
// pathRewrite: { '^/api': '' },
},
Expand All @@ -32,7 +32,7 @@ module.exports = merge(commom, {
target: 'http://wallet-mainnet-jsonrpc.conflux-chain.org:12537',
},
'/contract-manager': {
target: 'http://13.75.69.106:8886',
target: 'http://182.92.71.168:8886',
pathRewrite: { '^/contract-manager': '' },
},
// for developing dag locally
Expand Down

0 comments on commit d275d7e

Please sign in to comment.