const date = new Date()
const dateStr = date.toLocaleDateString().split(' ')[0]
const timestamp = date.getTime()
- const fileName = ['vapor-wallet-backup-', dateStr, timestamp].join('-')
+ const fileName = ['vapor-wallet-backup-', dateStr, timestamp].join('-')+'.dat'
let element = document.createElement('a')
element.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(JSON.stringify(resp.data)))
<PageTitle
title={t('coreIndex.coreStatus')}
actions={[
- <button className={`btn btn-link ${styles.actionBtn}`} onClick={this.consolePopup}>
- <span>{t('console.title')}</span> <img src={require('images/console-window.svg')}/>
+ <button className='btn btn-link' onClick={this.consolePopup}>
+ <img src={require('images/console-window.svg')}/>
</button>
]}
/>
justify-content: space-between;
> div {
- width: 45%;
+ width: 40%;
min-height: 100%;
}
}
type = 'sent'
items.push({
type: 'crossOut',
- amount: normalizeBtmAmountUnit(assetId, crossOut, this.props.btmAmountUnit),
+ amount: asset.decimals? converIntToDec(crossOut, asset.decimals) :normalizeBtmAmountUnit(assetId, crossOut, this.props.btmAmountUnit),
asset: assetAlias ? assetAlias : <code className={styles.rawId}>{assetId}</code>,
assetId: assetId,
account: account.alias ? account.alias : <code className={styles.rawId}>{accountId}</code>,
type = 'received'
items.push({
type: 'crossIn',
- amount: normalizeBtmAmountUnit(assetId, crossIn, this.props.btmAmountUnit),
+ amount: asset.decimals? converIntToDec(crossIn, asset.decimals) :normalizeBtmAmountUnit(assetId, crossIn, this.props.btmAmountUnit),
asset: assetAlias ? assetAlias : <code className={styles.rawId}>{assetId}</code>,
assetId: assetId,
account: account.alias ? account.alias : <code className={styles.rawId}>{accountId}</code>,
}
.colAction{
- width: 25%;
+ width: 22%;
flex-grow: 1;
}
}
.end{
- width: 25%;
+ width: 28%;
display: flex;
flex-grow: 1;
justify-content: flex-end;
"xpub":{
"methodOptions" : {
"mockhsm": "Use existing key",
- "provide": "Provide existing xpub"
+ "provide": "Provide existing xpub",
+ "generate": "Generate a new key",
+ "currentAccount": "Current account xpub"
},
"providePlaceholder": "Enter xpub"
},
"xpub":{
"methodOptions" : {
"mockhsm": "使用已有的密钥",
- "provide": "提供已有的扩展公钥"
+ "provide": "提供已有的扩展公钥",
+ "generate": "新建密钥",
+ "currentAccount": "本账户扩展密钥"
},
"providePlaceholder": "输入扩展公钥"
},