diff --git a/README.md b/README.md
index daf9fa0..c4e1696 100644
--- a/README.md
+++ b/README.md
@@ -40,7 +40,7 @@ the two with a dash `-`.
After you've created the correctly named translation directory, open
`src/stores/gui.js` and add the new translation to the
[languages](https://github.com/whphhg/vcash-electron/blob/master/src/stores/gui.js#L20-L24)
-array (in alphabetical order).
+array (in alphabetical order). Please use 6 spaces to indent the line below.
{ language: 'languageCode-countryCode', name: 'New language' },
diff --git a/package.json b/package.json
index 59c453f..5b15210 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
{
"name": "vcash-electron",
"productName": "Vcash Electron GUI",
- "version": "0.31.7",
+ "version": "0.32.0",
"description": "Multi-platform and multi-node GUI for Vcash.",
"main": "src/electron.js",
"scripts": {
@@ -53,18 +53,18 @@
"dependencies": {
"antd": "2.10.2",
"electron-compile": "6.4.1",
- "i18next": "8.3.0",
+ "i18next": "8.4.0",
"i18next-node-fs-backend": "1.0.0",
"mobx": "3.1.10",
"mobx-logger": "0.6.0",
- "mobx-react": "4.1.8",
+ "mobx-react": "4.2.1",
"moment": "2.18.1",
"react": "15.5.4",
"react-dom": "15.5.4",
"react-i18next": "4.1.0",
"react-router-dom": "4.1.1",
"recharts": "0.22.4",
- "ssh2": "0.5.4"
+ "ssh2": "0.5.5"
},
"devDependencies": {
"babel-core": "6.24.1",
@@ -75,7 +75,7 @@
"babel-preset-react": "6.24.1",
"babel-preset-stage-0": "6.24.1",
"babel-runtime": "6.23.0",
- "electron-builder": "18.0.1",
+ "electron-builder": "18.1.0",
"electron-prebuilt-compile": "1.7.0",
"standard": "10.0.2"
}
diff --git a/src/components/Address.js b/src/components/Address.js
index 9f717c5..693c7f0 100644
--- a/src/components/Address.js
+++ b/src/components/Address.js
@@ -71,50 +71,52 @@ export default class Address extends React.Component {
{
this.data.outputs.length > 0 && (
-
(
-
- {
- (
- record.spentTxid === '' &&
- txid.slice(0, 15) + '...' + txid.slice(49, 64)
- ) || (
- record.spentTxid !== '' &&
+
+
(
+
+ {
(
- record.spentTxid.slice(0, 15) + '...' +
- record.spentTxid.slice(49, 64)
+ record.spentTxid === '' &&
+ txid.slice(0, 15) + '...' + txid.slice(49, 64)
+ ) || (
+ record.spentTxid !== '' &&
+ (
+ record.spentTxid.slice(0, 15) + '...' +
+ record.spentTxid.slice(49, 64)
+ )
)
- )
- }
-
- )
- },
- {
- dataIndex: 'amount',
- title: this.t('wallet:amount'),
- render: (amount, record) => (
-
- {
- new Intl.NumberFormat(this.gui.language, {
- minimumFractionDigits: 6,
- maximumFractionDigits: 6
- }).format(amount)
- } XVC
-
- )
- }
- ]}
- dataSource={this.data.outputs}
- onRowClick={this.viewTransaction}
- pagination={false}
- size='small'
- />
+ }
+
+ )
+ },
+ {
+ dataIndex: 'amount',
+ title: this.t('wallet:amount'),
+ render: (amount, record) => (
+
+ {
+ new Intl.NumberFormat(this.gui.language, {
+ minimumFractionDigits: 6,
+ maximumFractionDigits: 6
+ }).format(amount)
+ } XVC
+
+ )
+ }
+ ]}
+ dataSource={this.data.outputs}
+ onRowClick={this.viewTransaction}
+ pagination={this.data.outputs.length > 10}
+ size='small'
+ />
+
)
}
diff --git a/src/components/Header.js b/src/components/Header.js
index 652ddc7..013dd50 100644
--- a/src/components/Header.js
+++ b/src/components/Header.js
@@ -69,7 +69,7 @@ class Header extends React.Component {
{
this.wallet.pendingAmount > 0 && (
-
+
{this.t('wallet:pending')}
{
@@ -83,7 +83,7 @@ class Header extends React.Component {
}
{
newmint > 0 && (
-
+
{this.t('wallet:immature')}
{
diff --git a/src/components/Transaction.js b/src/components/Transaction.js
index 343bb65..682b25a 100644
--- a/src/components/Transaction.js
+++ b/src/components/Transaction.js
@@ -50,7 +50,7 @@ export default class Transaction extends React.Component {
width={1000}
>
-
+
label
{this.t('wallet:transactionId')}
@@ -76,11 +76,11 @@ export default class Transaction extends React.Component {
)
}
-
+
folder
{this.t('wallet:category')}
-
+
monetization_on
{this.t('wallet:amount')}
@@ -97,76 +97,74 @@ export default class Transaction extends React.Component {
{this.t('wallet:confirmations')}
-
-
-
-
-
{viewingTx.txid}
- {
- viewingTx.hasOwnProperty('blockhash') === true && (
-
{viewingTx.blockhash}
- )
- }
-
- {moment(viewingTx.time).format('L - LTS')} (
- {moment().to(viewingTx.time)})
-
- {
- viewingTx.hasOwnProperty('blocktime') === true &&
- viewingTx.blocktime > 0 && (
-
{moment(viewingTx.blocktime).format('L - LTS')}
- )
- }
-
-
-
-
+
-
+
+
{viewingTx.txid}
+ {
+ viewingTx.hasOwnProperty('blockhash') === true && (
+
{viewingTx.blockhash}
+ )
+ }
+
+ {moment(viewingTx.time).format('L - LTS')} (
+ {moment().to(viewingTx.time)})
+
+ {
+ viewingTx.hasOwnProperty('blocktime') === true &&
+ viewingTx.blocktime > 0 && (
+
{moment(viewingTx.blocktime).format('L - LTS')}
+ )
+ }
{this.t('wallet:' + viewingTx.category)}
+
+
+
+
+
{
new Intl.NumberFormat(this.gui.language, {
@@ -193,35 +191,37 @@ export default class Transaction extends React.Component {
}
{viewingTx.confirmations}
-
- {
- viewingTx.hasOwnProperty('to') === true && (
-
-
perm_identity
-
{this.t('wallet:recipient')}
-
- )
- }
- {
- viewingTx.hasOwnProperty('comment') === true && (
-
-
create
-
{this.t('wallet:comment')}
-
- )
- }
-
-
- {
- viewingTx.hasOwnProperty('to') === true && (
-
{viewingTx.to}
- )
- }
- {
- viewingTx.hasOwnProperty('comment') === true && (
-
{viewingTx.comment}
- )
- }
+
+
+ {
+ viewingTx.hasOwnProperty('to') === true && (
+
+
perm_identity
+
{this.t('wallet:recipient')}
+
+ )
+ }
+ {
+ viewingTx.hasOwnProperty('comment') === true && (
+
+
create
+
{this.t('wallet:comment')}
+
+ )
+ }
+
+
+ {
+ viewingTx.hasOwnProperty('to') === true && (
+
{viewingTx.to}
+ )
+ }
+ {
+ viewingTx.hasOwnProperty('comment') === true && (
+
{viewingTx.comment}
+ )
+ }
+
diff --git a/src/components/Transactions.js b/src/components/Transactions.js
index 803fb4f..7a31bf8 100644
--- a/src/components/Transactions.js
+++ b/src/components/Transactions.js
@@ -98,7 +98,19 @@ export default class Transactions extends React.Component {
{
dataIndex: 'comment',
title: this.t('wallet:description'),
- width: 360
+ width: 360,
+ render: (comment) => (
+
+ {comment}
+
+ )
},
{
dataIndex: 'amount',