const Component = require('react').Component const h = require('react-hyperscript') const inherits = require('util').inherits const EthBalance = require('./eth-balance') const addressSummary = require('../util').addressSummary const explorerLink = require('etherscan-link').createExplorerLink const CopyButton = require('./copyButton') const vreme = new (require('vreme'))() const Tooltip = require('./tooltip') const numberToBN = require('number-to-bn') const TransactionIcon = require('./transaction-list-item-icon') const ShiftListItem = require('./shift-list-item') module.exports = TransactionListItem inherits(TransactionListItem, Component) function TransactionListItem () { Component.call(this) } TransactionListItem.prototype.render = function () { const { transaction, network, conversionRate, currentCurrency } = this.props if (transaction.key === 'shapeshift') { if (network === '1') return h(ShiftListItem, transaction) } var date = formatDate(transaction.time) let isLinkable = false const numericNet = parseInt(network) isLinkable = numericNet === 1 || numericNet === 3 || numericNet === 4 || numericNet === 42 var isMsg = ('msgParams' in transaction) var isTx = ('txParams' in transaction) var isPending = transaction.status === 'unapproved' let txParams if (isTx) { txParams = transaction.txParams } else if (isMsg) { txParams = transaction.msgParams } const nonce = txParams.nonce ? numberToBN(txParams.nonce).toString(10) : '' const isClickable = ('hash' in transaction && isLinkable) || isPending return ( h(`.transaction-list-item.flex-row.flex-space-between${isClickable ? '.pointer' : ''}`, { onClick: (event) => { if (isPending) { this.props.showTx(transaction.id) } event.stopPropagation() if (!transaction.hash || !isLinkable) return var url = explorerLink(transaction.hash, parseInt(network)) global.platform.openWindow({ url }) }, style: { padding: '20px 0', display: 'flex', justifyContent: 'space-between', }, }, [ h('.identicon-wrapper.flex-column.flex-center.select-none', [ h(TransactionIcon, { txParams, transaction, isTx, isMsg }), ]), h(Tooltip, { title: 'Transaction Number', position: 'right', }, [ h('span', { style: { display: 'flex', cursor: 'normal', flexDirection: 'column', alignItems: 'center', justifyContent: 'center', }, }, nonce), ]), h('.flex-column', {style: {width: '150px', overflow: 'hidden'}}, [ domainField(txParams), h('div', date), recipientField(txParams, transaction, isTx, isMsg), ]), // Places a copy button if tx is successful, else places a placeholder empty div. transaction.hash ? h(CopyButton, { value: transaction.hash }) : h('div', {style: { display: 'flex', alignItems: 'center', width: '26px' }}), isTx ? h(EthBalance, { value: txParams.value, conversionRate, currentCurrency, shorten: true, showFiat: false, style: {fontSize: '15px'}, }) : h('.flex-column'), ]) ) } function domainField (txParams) { return h('div', { style: { fontSize: 'x-small', color: '#ABA9AA', overflow: 'hidden', textOverflow: 'ellipsis', width: '100%', }, }, [ txParams.origin, ]) } function recipientField (txParams, transaction, isTx, isMsg) { let message if (isMsg) { message = 'Signature Requested' } else if (txParams.to) { message = addressSummary(txParams.to) } else { message = 'Contract Published' } return h('div', { style: { fontSize: 'x-small', color: '#ABA9AA', }, }, [ message, renderErrorOrWarning(transaction), ]) } function formatDate (date) { return vreme.format(new Date(date), 'March 16 2014 14:30') } function renderErrorOrWarning (transaction) { const { status, err, warning } = transaction // show rejected if (status === 'rejected') { return h('span.error', ' (Rejected)') } // show error if (err) { const message = err.message || '' return ( h(Tooltip, { title: message, position: 'bottom', }, [ h(`span.error`, ` (Failed)`), ]) ) } // show warning if (warning) { const message = warning.message return h(Tooltip, { title: message, position: 'bottom', }, [ h(`span.warning`, ` (Warning)`), ]) } } n> FreeBSD Ports (https://github.com/freebsd/freebsd-ports)
aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/kdemultimedia-ffmpegthumbs
Commit message (Expand)AuthorAgeFilesLines
* Mk/Uses: always use colon for build/run suffixFelix Palmen2022-09-111-1/+1
* KDE: Update KDE Gear to 22.08.1Tobias C. Berner2022-09-082-4/+3
* Remove WWW entries moved into port MakefilesStefan Eßer2022-09-081-2/+0
* Add WWW entries to port MakefilesStefan Eßer2022-09-081-0/+1
* multimedia/kdemultimedia-ffmpegthumbs: pet stage-qaDima Panov2022-09-061-1/+3
* KDE: Update KDE Gear to 22.08Tobias C. Berner2022-08-191-3/+3
* KDE: Update KDE Gear to 22.04.3Tobias C. Berner2022-07-081-3/+3
* KDE: Update KDE Gear to 22.04.2 (June bugfix release)Tobias C. Berner2022-06-111-3/+3
* KDE: Update KDE Gear to 22.04.1 (bug fix & translation release)Tobias C. Berner2022-05-131-3/+3
* KDE: Update KDE Gear to 22.04Tobias C. Berner2022-04-211-3/+3
* KDE: Update KDE Gear to 21.12.3Tobias C. Berner2022-03-041-3/+3
* KDE: Update KDE Gear to 21.12.2 (bug fix release)Tobias C. Berner2022-02-081-3/+3
* KDE: Update KDE Gear to 21.12.1Tobias C. Berner2022-01-061-3/+3
* KDE: Update KDE Gear to 21.12Tobias C. Berner2021-12-102-35/+3
* KDE: Update KDE Gear to 21.08.3Tobias C. Berner2021-11-051-3/+3
* KDE: Update KDE Gear to 21.08.2Tobias C. Berner2021-10-081-3/+3
* KDE: Update KDE Gear to 21.08.1Tobias C. Berner2021-09-021-3/+3
* KDE: Update KDE Gear to 21.08.0Tobias C. Berner2021-08-132-4/+5
* */*: Update KDE Gear to 21.04.3Tobias C. Berner2021-07-101-3/+3
* */*: Zpdate KDE Gear to 21.04.2Tobias C. Berner2021-06-131-3/+3
* Update KDE Gear to 21.04.1Tobias C. Berner2021-05-141-3/+3
* Update KDE Gear to 21.04Tobias C. Berner2021-04-232-3/+4
* KDE Applications: sanitize DOCS optionAdriaan de Groot2021-04-221-2/+0
* One more small cleanup, forgotten yesterday.Mathieu Arnold2021-04-071-1/+0
* Remove # $FreeBSD$ from Makefiles.Mathieu Arnold2021-04-061-1/+0
* Update KDE Release-Service releases to 20.12.3Tobias C. Berner2021-03-051-3/+3
* Update KDE Release-Service to 20.12.2Tobias C. Berner2021-02-052-5/+6
* Update KDE Release Service ports to 20.12.1Tobias C. Berner2021-01-091-3/+3
* Update KDE Applications to 20.12Tobias C. Berner2020-12-123-4/+6
* Update KDE Apps to 20.08.3Tobias C. Berner2020-11-061-3/+3
* KDE Release Service 20.08.2 updateTobias C. Berner2020-10-102-3/+4
* Update KDE Applications (release-service) to 20.08.1Tobias C. Berner2020-09-031-3/+3
* KDE's August 2020 Apps UpdateTobias C. Berner2020-08-142-3/+4
* Update KDE's Application (release-service) to 20.04.3Tobias C. Berner2020-07-101-3/+3
* Update KDE's Application (release-service) to 20.04.2Tobias C. Berner2020-06-132-3/+4
* Update KDE's Applications to 20.04.1Tobias C. Berner2020-05-161-3/+3
* Update KDE Applications (release-service) to 20.04Tobias C. Berner2020-04-242-4/+5
* KDE Applications: update to 19.12.3Tobias C. Berner2020-03-071-3/+3
* Update KDE's Applications to 19.12.2Tobias C. Berner2020-02-072-3/+4
* Update KDE's App Bundle to 19.12.1Tobias C. Berner2020-01-101-3/+3
* KDE's December 2019 Apps UpdateTobias C. Berner2019-12-132-4/+6
* KDE Applications: update to 19.08.3Tobias C. Berner2019-11-091-3/+3
* KDE Applications: update to 19.08.2Tobias C. Berner2019-10-161-3/+3
* KDE Applications: update to 19.08.1Tobias C. Berner2019-09-061-3/+3
* Update KDE Applications to latest upstream release, 19.08Adriaan de Groot2019-08-153-4/+5
* multimedia/ffmpeg: update to 4.2Jan Beich2019-08-061-1/+1
* Bump PORTREVISION for ports depending on the canonical version of GCCGerald Pfeifer2019-07-271-1/+1
* KDE Applications: update to 19.04.3Tobias C. Berner2019-07-122-3/+4
* KDE Applications: complete dependency listsTobias C. Berner2019-06-231-1/+2
* Update KDE Applications to 19.04.2Tobias C. Berner2019-06-071-3/+3
* Update KDE Applications to 19.04.1Tobias C. Berner2019-05-102-3/+4
* Update KDE Applications to 19.04.0Tobias C. Berner2019-04-192-3/+7
* Update KDE Applications to 18.12.3Tobias C. Berner2019-03-081-3/+3
* Update KDE Applications to 18.12.2Tobias C. Berner2019-02-083-4/+6
* Fix Qt5 symbol version scripts to put the catch-all clause first. WhenTijl Coosemans2019-01-161-0/+1
* Update KDE Applications to 18.12.1Tobias C. Berner2019-01-112-3/+16
* Change cmake default behaviour to outsource.Tobias C. Berner2018-12-261-1/+1
* Update KDE Applications to 18.12.0Tobias C. Berner2018-12-142-4/+3
* Bump PORTREVISION for ports depending on the canonical version of GCCGerald Pfeifer2018-12-121-1/+1
* Fix build for some more kde@ ports on GCC-architecturesTobias C. Berner2018-11-101-1/+1
* Update KDE Applications to 18.09.3Tobias C. Berner2018-11-101-3/+3
* multimedia/ffmpeg: update to 4.1Jan Beich2018-11-061-0/+1
* Update KDE Applications to 18.08.2Tobias C. Berner2018-10-121-3/+3
* Add DOCS options to ports that should have one.Mathieu Arnold2018-09-101-0/+2
* Update the current KDE Applications to 18.08.1, the latest release.Adriaan de Groot2018-09-071-3/+3
* Update KDE Applications to 18.08Tobias C. Berner2018-08-253-5/+6
* Update KDE Applications to 18.04.3Tobias C. Berner2018-07-141-3/+3
* Replace bsd.qt.mk by Uses/qt.mk and Uses/qt-dist.mkTobias C. Berner2018-06-291-2/+2
* Update KDE Applications to 18.04.2Tobias C. Berner2018-06-101-3/+3
* Update KDE Applications to 18.04.1Tobias C. Berner2018-05-112-4/+3
* multimedia/ffmpeg: update to 4.0Jan Beich2018-05-021-0/+1
* Update KDE Applications to 18.04.0Tobias C. Berner2018-04-291-3/+3