augur-ui-react-components
Advanced tools
Comparing version 3.0.50 to 3.0.51
{ | ||
"name": "augur-ui-react-components", | ||
"version": "3.0.50", | ||
"version": "3.0.51", | ||
"description": "Augur UI React Components", | ||
"author": "Baz (@thinkloop)", | ||
"author": "Augur Developers", | ||
"license": "AAL", | ||
@@ -7,0 +7,0 @@ "engines": { |
@@ -49,3 +49,3 @@ import React, { Component, PropTypes } from 'react'; | ||
secureLoginID: this.props.secureLoginID, | ||
rememberMe: this.props.rememberMe | ||
rememberMe: this.props.rememberMe || true | ||
}; | ||
@@ -52,0 +52,0 @@ } |
@@ -8,3 +8,3 @@ import { makeNumber } from '../../utils/make-number'; | ||
shares: makeNumber(776, 'Shares'), | ||
price: makeNumber(0.5, 'eth'), | ||
price: makeNumber(0.5, ' ETH'), | ||
isOfCurrentUser: true | ||
@@ -14,11 +14,11 @@ }, | ||
shares: makeNumber(87, 'Shares'), | ||
price: makeNumber(0.45, 'eth') | ||
price: makeNumber(0.45, ' ETH') | ||
}, | ||
{ | ||
shares: makeNumber(2.22, 'Shares'), | ||
price: makeNumber(0.35, 'eth') | ||
price: makeNumber(0.35, ' ETH') | ||
}, | ||
{ | ||
shares: makeNumber(6544.43, 'Shares'), | ||
price: makeNumber(0.25, 'eth') | ||
price: makeNumber(0.25, ' ETH') | ||
} | ||
@@ -29,7 +29,7 @@ ], | ||
shares: makeNumber(180, 'Shares'), | ||
price: makeNumber(0.63, 'eth') | ||
price: makeNumber(0.63, ' ETH') | ||
}, | ||
{ | ||
shares: makeNumber(2000, 'Shares'), | ||
price: makeNumber(0.72, 'eth'), | ||
price: makeNumber(0.72, ' ETH'), | ||
isOfCurrentUser: Math.random() > 0.3 | ||
@@ -39,7 +39,7 @@ }, | ||
shares: makeNumber(5, 'Shares'), | ||
price: makeNumber(0.82, 'eth') | ||
price: makeNumber(0.82, ' ETH') | ||
}, | ||
{ | ||
shares: makeNumber(888, 'Shares'), | ||
price: makeNumber(0.99, 'eth') | ||
price: makeNumber(0.99, ' ETH') | ||
} | ||
@@ -46,0 +46,0 @@ ] |
@@ -15,4 +15,4 @@ import { makeDate } from '../utils/make-date'; | ||
isReportEqual: randomBool(), | ||
feesEarned: makeNumber(randomSign() * Math.random() * 1.9, 'eth'), | ||
repEarned: makeNumber(randomSign() * Math.random() * 1.3, 'rep'), | ||
feesEarned: makeNumber(randomSign() * Math.random() * 1.9, ' ETH'), | ||
repEarned: makeNumber(randomSign() * Math.random() * 1.3, ' REP'), | ||
endDate: makeDate(new Date('2015/12/31')), | ||
@@ -29,4 +29,4 @@ isChallenged: randomBool(), | ||
isReportEqual: randomBool(), | ||
feesEarned: makeNumber(randomSign() * Math.random() * 1.2, 'eth'), | ||
repEarned: makeNumber(randomSign() * Math.random() * 1.3, 'rep'), | ||
feesEarned: makeNumber(randomSign() * Math.random() * 1.2, ' ETH'), | ||
repEarned: makeNumber(randomSign() * Math.random() * 1.3, ' REP'), | ||
endDate: makeDate(new Date('2015/12/31')), | ||
@@ -43,4 +43,4 @@ isChallenged: randomBool(), | ||
isReportEqual: randomBool(), | ||
feesEarned: makeNumber(randomSign() * Math.random() * 1.8, 'eth'), | ||
repEarned: makeNumber(randomSign() * Math.random() * 2.1, 'rep'), | ||
feesEarned: makeNumber(randomSign() * Math.random() * 1.8, ' ETH'), | ||
repEarned: makeNumber(randomSign() * Math.random() * 2.1, ' REP'), | ||
endDate: makeDate(new Date('2008/11/4')), | ||
@@ -47,0 +47,0 @@ isChallenged: randomBool(), |
@@ -10,5 +10,5 @@ import { makeNumber } from '../utils/make-number'; | ||
prettySecureLoginID: 'test...ORUM', | ||
rep: makeNumber(47, 'rep'), | ||
ether: makeNumber(10000, 'eth'), | ||
realEther: makeNumber(2.5, 'eth'), | ||
rep: makeNumber(47, ' REP'), | ||
ether: makeNumber(10000, ' ETH'), | ||
realEther: makeNumber(2.5, ' ETH'), | ||
name: 'MrTestTesterson' | ||
@@ -43,3 +43,3 @@ }; | ||
loginAccount.transferFunds = (amount, to) => { | ||
console.log(`Sending ${amount}eth to: ${to}`); | ||
console.log(`Sending ${amount} ETH to: ${to}`); | ||
}; | ||
@@ -46,0 +46,0 @@ |
@@ -66,3 +66,3 @@ import { makeNumber } from '../utils/make-number'; | ||
m.tradeSummary = { | ||
totalGas: makeNumber(0, 'eth'), | ||
totalGas: makeNumber(0, ' ETH'), | ||
tradeOrders: [] | ||
@@ -101,7 +101,7 @@ }; | ||
qtyShares: makeNumber(16898, 'shares'), | ||
purchasePrice: makeNumber(0.5, 'eth'), | ||
totalCost: makeNumber(5, 'eth'), | ||
purchasePrice: makeNumber(0.5, ' ETH'), | ||
totalCost: makeNumber(5, ' ETH'), | ||
shareChange: makeNumber(1, 'shares'), | ||
netChange: makeNumber(1, 'eth'), | ||
totalValue: makeNumber(985, 'eth'), | ||
netChange: makeNumber(1, ' ETH'), | ||
totalValue: makeNumber(985, ' ETH'), | ||
gainPercent: makeNumber(14, '%') | ||
@@ -114,8 +114,8 @@ }; | ||
qtyShares: makeNumber(16898, 'shares'), | ||
totalValue: makeNumber(14877, 'eth'), | ||
totalValue: makeNumber(14877, ' ETH'), | ||
gainPercent: makeNumber(14, '%'), | ||
purchasePrice: makeNumber(0.77, 'eth'), | ||
shareChange: makeNumber(0.107, 'eth'), | ||
totalCost: makeNumber(12555, 'eth'), | ||
netChange: makeNumber(3344, 'eth') | ||
purchasePrice: makeNumber(0.77, ' ETH'), | ||
shareChange: makeNumber(0.107, ' ETH'), | ||
totalCost: makeNumber(12555, ' ETH'), | ||
netChange: makeNumber(3344, ' ETH') | ||
}; | ||
@@ -125,8 +125,8 @@ const randomPositionOutcome2 = m.outcomes[randomInt(0, m.outcomes.length - 1)]; | ||
qtyShares: makeNumber(16898, 'shares'), | ||
totalValue: makeNumber(14877, 'eth'), | ||
totalValue: makeNumber(14877, ' ETH'), | ||
gainPercent: makeNumber(14, '%'), | ||
purchasePrice: makeNumber(0.77, 'eth'), | ||
shareChange: makeNumber(0.107, 'eth'), | ||
totalCost: makeNumber(12555, 'eth'), | ||
netChange: makeNumber(3344, 'eth') | ||
purchasePrice: makeNumber(0.77, ' ETH'), | ||
shareChange: makeNumber(0.107, ' ETH'), | ||
totalCost: makeNumber(12555, ' ETH'), | ||
netChange: makeNumber(3344, ' ETH') | ||
}; | ||
@@ -144,6 +144,6 @@ m.myPositionOutcomes = [randomPositionOutcome, randomPositionOutcome2]; | ||
endDate: makeDate(new Date('2017/12/12')), | ||
fees: makeNumber(Math.random() * 10, 'eth'), | ||
fees: makeNumber(Math.random() * 10, ' ETH'), | ||
volume: makeNumber(Math.floor(Math.random() * 100), null, true), | ||
numberOfTrades: makeNumber(Math.floor(Math.random() * 1000), null, true), | ||
averageTradeSize: makeNumber(Math.random() * 100, 'eth', true), | ||
averageTradeSize: makeNumber(Math.random() * 100, ' ETH', true), | ||
openVolume: makeNumber(Math.floor(Math.random() * 10000), null, true) | ||
@@ -250,3 +250,3 @@ }; | ||
const finalLastPrice = (outcome.lastPricePercent.value + percentLeft) / 100; | ||
outcome.lastPrice = makeNumber(finalLastPrice, 'eth'); | ||
outcome.lastPrice = makeNumber(finalLastPrice, ' ETH'); | ||
outcome.lastPricePercent = makeNumber(finalLastPrice * 100, '%'); | ||
@@ -268,3 +268,3 @@ | ||
name: makeName(index), | ||
lastPrice: makeNumber(lastPrice, 'eth'), | ||
lastPrice: makeNumber(lastPrice, ' ETH'), | ||
lastPricePercent: makeNumber(lastPrice * 100, '%'), | ||
@@ -297,5 +297,5 @@ trade: { | ||
const totEth = outcome.trade.numShares * finalLimitPrice * negater; | ||
outcome.trade.totalFee = makeNumber(Math.round(m.takerFeePercent.value / 100 * finalLimitPrice * outcome.trade.numShares * 100) / 100, 'eth'); | ||
outcome.trade.totalFee = makeNumber(Math.round(m.takerFeePercent.value / 100 * finalLimitPrice * outcome.trade.numShares * 100) / 100, ' ETH'); | ||
const feeFortotalEth = -1 * outcome.trade.totalFee.value; | ||
outcome.trade.totalCost = makeNumber(Math.round((totEth + feeFortotalEth) * 100) / 100, 'eth'); | ||
outcome.trade.totalCost = makeNumber(Math.round((totEth + feeFortotalEth) * 100) / 100, ' ETH'); | ||
@@ -319,8 +319,8 @@ m.outcomes = m.outcomes.map(currentOutcome => { | ||
shares: makeNumber(outcome.trade.numShares, 'shares'), | ||
gas: makeNumber(gas, 'eth'), | ||
ether: makeNumber(outcome.trade.totalCost.value - gas, 'eth'), | ||
gas: makeNumber(gas, ' ETH'), | ||
ether: makeNumber(outcome.trade.totalCost.value - gas, ' ETH'), | ||
data: { | ||
outcomeName: outcome.name, | ||
marketDescription: m.description, | ||
avgPrice: makeNumber(Math.round((outcome.trade.totalCost.value / outcome.trade.numShares) * 100) / 100, 'eth'), | ||
avgPrice: makeNumber(Math.round((outcome.trade.totalCost.value / outcome.trade.numShares) * 100) / 100, ' ETH'), | ||
} | ||
@@ -360,3 +360,3 @@ }); | ||
marketID: m.id, | ||
avgPrice: makeNumber(parseFloat(Math.random().toFixed(2)), 'eth'), | ||
avgPrice: makeNumber(parseFloat(Math.random().toFixed(2)), ' ETH'), | ||
unmatchedShares: makeNumber(parseInt(Math.random() * 10, 10), 'shares'), | ||
@@ -363,0 +363,0 @@ outcome: outcomeID, |
@@ -9,6 +9,6 @@ import { makeNumber } from '../utils/make-number'; | ||
endDate: makeDate(new Date('2017/12/12')), | ||
fees: makeNumber(Math.random() * 10, 'eth', true), | ||
fees: makeNumber(Math.random() * 10, ' ETH', true), | ||
volume: makeNumber(Math.floor(Math.random() * 100), null, true), | ||
numberOfTrades: makeNumber(Math.floor(Math.random() * 1000), null, true), | ||
averageTradeSize: makeNumber(Math.random() * 100, 'eth'), | ||
averageTradeSize: makeNumber(Math.random() * 100, ' ETH'), | ||
openVolume: makeNumber(Math.floor(Math.random() * 10000), null, true) | ||
@@ -20,6 +20,6 @@ }, | ||
endDate: makeDate(new Date('2017/12/12')), | ||
fees: makeNumber(Math.random() * 10, 'eth', true), | ||
fees: makeNumber(Math.random() * 10, ' ETH', true), | ||
volume: makeNumber(Math.floor(Math.random() * 100), null, true), | ||
numberOfTrades: makeNumber(Math.floor(Math.random() * 1000), null, true), | ||
averageTradeSize: makeNumber(Math.random() * 100, 'eth', true), | ||
averageTradeSize: makeNumber(Math.random() * 100, ' ETH', true), | ||
openVolume: makeNumber(Math.floor(Math.random() * 10000), null, true) | ||
@@ -31,8 +31,8 @@ }, | ||
endDate: makeDate(new Date('2017/12/12')), | ||
fees: makeNumber(Math.random() * 10, 'eth'), | ||
fees: makeNumber(Math.random() * 10, ' ETH'), | ||
volume: makeNumber(Math.floor(Math.random() * 100), null, true), | ||
numberOfTrades: makeNumber(Math.floor(Math.random() * 1000), null, true), | ||
averageTradeSize: makeNumber(Math.random() * 100, 'eth', true), | ||
averageTradeSize: makeNumber(Math.random() * 100, ' ETH', true), | ||
openVolume: makeNumber(Math.floor(Math.random() * 10000), null, true) | ||
} | ||
]; |
@@ -19,3 +19,3 @@ import links from '../selectors/links'; | ||
trailingTitle: 'Total Gain/Loss', | ||
trailingValue: makeNumber(randomSign() * Math.random() * 3.7, 'eth') | ||
trailingValue: makeNumber(randomSign() * Math.random() * 3.7, ' ETH') | ||
}, | ||
@@ -29,3 +29,3 @@ { | ||
trailingTitle: 'Total Gain/Loss', | ||
trailingValue: makeNumber(Math.random() * 1.3, 'eth') | ||
trailingValue: makeNumber(Math.random() * 1.3, ' ETH') | ||
}, | ||
@@ -39,4 +39,4 @@ { | ||
trailingTitle: 'Total Gain/Loss', | ||
trailingValue: makeNumber(randomSign() * Math.random() * 1.3, 'rep') | ||
trailingValue: makeNumber(randomSign() * Math.random() * 1.3, ' REP') | ||
} | ||
]; |
@@ -6,4 +6,4 @@ import { makeNumber } from '../../src/utils/make-number'; | ||
export default { | ||
totalValue: makeNumber(Math.random() * 1000, 'eth'), | ||
netChange: makeNumber(randomSign * Math.random() * 10, 'eth') | ||
totalValue: makeNumber(Math.random() * 1000, ' ETH'), | ||
netChange: makeNumber(randomSign * Math.random() * 10, ' ETH') | ||
}; |
@@ -14,10 +14,10 @@ import { makeNumber } from '../utils/make-number'; | ||
qtyShares: makeNumber(50, 'shares'), | ||
purchasePrice: makeNumber(0.2, 'eth'), | ||
shareChange: makeNumber(-0.1, 'eth'), | ||
totalCost: makeNumber(1000, 'eth'), | ||
totalValue: makeNumber(100, 'eth'), | ||
netChange: makeNumber(-900, 'eth'), | ||
purchasePrice: makeNumber(0.2, ' ETH'), | ||
shareChange: makeNumber(-0.1, ' ETH'), | ||
totalCost: makeNumber(1000, ' ETH'), | ||
totalValue: makeNumber(100, ' ETH'), | ||
netChange: makeNumber(-900, ' ETH'), | ||
gainPercent: makeNumber(-9, '%') | ||
}, | ||
lastPrice: makeNumber(0.1, 'eth') | ||
lastPrice: makeNumber(0.1, ' ETH') | ||
}, | ||
@@ -30,10 +30,10 @@ { | ||
qtyShares: makeNumber(50, 'shares'), | ||
purchasePrice: makeNumber(0.2, 'eth'), | ||
shareChange: makeNumber(-0.1, 'eth'), | ||
totalCost: makeNumber(1000, 'eth'), | ||
totalValue: makeNumber(100, 'eth'), | ||
netChange: makeNumber(-900, 'eth'), | ||
purchasePrice: makeNumber(0.2, ' ETH'), | ||
shareChange: makeNumber(-0.1, ' ETH'), | ||
totalCost: makeNumber(1000, ' ETH'), | ||
totalValue: makeNumber(100, ' ETH'), | ||
netChange: makeNumber(-900, ' ETH'), | ||
gainPercent: makeNumber(-9, '%') | ||
}, | ||
lastPrice: makeNumber(0.1, 'eth') | ||
lastPrice: makeNumber(0.1, ' ETH') | ||
} | ||
@@ -52,10 +52,10 @@ ] | ||
qtyShares: makeNumber(50, 'shares'), | ||
purchasePrice: makeNumber(0.2, 'eth'), | ||
shareChange: makeNumber(-0.1, 'eth'), | ||
totalCost: makeNumber(1000, 'eth'), | ||
totalValue: makeNumber(100, 'eth'), | ||
netChange: makeNumber(-900, 'eth'), | ||
purchasePrice: makeNumber(0.2, ' ETH'), | ||
shareChange: makeNumber(-0.1, ' ETH'), | ||
totalCost: makeNumber(1000, ' ETH'), | ||
totalValue: makeNumber(100, ' ETH'), | ||
netChange: makeNumber(-900, ' ETH'), | ||
gainPercent: makeNumber(-9, '%') | ||
}, | ||
lastPrice: makeNumber(0.1, 'eth') | ||
lastPrice: makeNumber(0.1, ' ETH') | ||
}, | ||
@@ -68,10 +68,10 @@ { | ||
qtyShares: makeNumber(50, 'shares'), | ||
purchasePrice: makeNumber(0.2, 'eth'), | ||
shareChange: makeNumber(-0.1, 'eth'), | ||
totalCost: makeNumber(1000, 'eth'), | ||
totalValue: makeNumber(100, 'eth'), | ||
netChange: makeNumber(-900, 'eth'), | ||
purchasePrice: makeNumber(0.2, ' ETH'), | ||
shareChange: makeNumber(-0.1, ' ETH'), | ||
totalCost: makeNumber(1000, ' ETH'), | ||
totalValue: makeNumber(100, ' ETH'), | ||
netChange: makeNumber(-900, ' ETH'), | ||
gainPercent: makeNumber(-9, '%') | ||
}, | ||
lastPrice: makeNumber(0.1, 'eth') | ||
lastPrice: makeNumber(0.1, ' ETH') | ||
} | ||
@@ -78,0 +78,0 @@ ] |
@@ -6,8 +6,8 @@ import { makeNumber } from '../utils/make-number'; | ||
qtyShares: makeNumber(500, 'shares'), | ||
purchasePrice: makeNumber(20, 'eth'), | ||
totalValue: makeNumber(1000, 'eth'), | ||
totalCost: makeNumber(10000, 'eth'), | ||
shareChange: makeNumber(-18, 'eth'), | ||
purchasePrice: makeNumber(20, ' ETH'), | ||
totalValue: makeNumber(1000, ' ETH'), | ||
totalCost: makeNumber(10000, ' ETH'), | ||
shareChange: makeNumber(-18, ' ETH'), | ||
gainPercent: makeNumber(-90, '%'), | ||
netChange: makeNumber(-9000, 'eth') | ||
netChange: makeNumber(-9000, ' ETH') | ||
}; |
@@ -26,8 +26,8 @@ export default [ | ||
minimized: '0.36', | ||
denomination: 'eth', | ||
full: '0.36eth' | ||
denomination: ' ETH', | ||
full: '0.36 ETH' | ||
} | ||
}, | ||
status: 'processing buy...', | ||
message: 'buying 10 shares @ 0.67eth', | ||
message: 'buying 10 shares @ 0.67 ETH', | ||
id: '1385867-1469682892056' | ||
@@ -59,4 +59,4 @@ }, | ||
minimized: '0.68', | ||
denomination: 'eth', | ||
full: '0.68eth' | ||
denomination: ' ETH', | ||
full: '0.68 ETH' | ||
} | ||
@@ -92,4 +92,4 @@ }, | ||
minimized: '0.01', | ||
denomination: 'eth', | ||
full: '0.01eth' | ||
denomination: ' ETH', | ||
full: '0.01 ETH' | ||
} | ||
@@ -96,0 +96,0 @@ }, |
Sorry, the diff of this file is too big to display
1212475