* feat: add `Share PSBT` button with options * feat: add basic communication via the serial port * chore: code format * feat: send data to and from serial port * fix: port disconnect * feat: handle psbt extract * feat: show signed transaction details * fix: handle Connect/Disconnect failure state * feat:small UI improvements * feat: broadcast transaction (partial solution) * feat: integrate psbt response from HWW * feat: login and send commands to HWW * feat: ui improvements * feat: ui/ux improvements * feat: more small UI impreovemsnts * feat: simplify UI * feat: add `help` command * feat: add wipe command * feet: add `seed` command * feat: add `restore` command * feat: always show PSBT input text (for outside PSBTs) * feat: show spinner while signing tx * feat: hide panels after transaction is broadcast * feat: basic use of custom components * refactor: move components one folder up * refactor: extract wallet-config * refactor: extract `wallet-list` component * refactor: clean-up * chore: code format html component files * refactor: extract address-list component * refactor: extract `history` component * refactor: extract `utxo-list` component * feat: UI/UX improvements * feat: partial payment redesign * refactor: rename `fee` to `fee-rate` * refactor: rename component * refactor: extract `send-to` component * refactor: payment: first migration * fix: init `sendToList` * fix: change address * fix: change address and `Select All` coins * feat: show custom fees & two way binding for addresses * fix: scanAddressesWithAmount * fix: max amount * fix: coin selection mode * chore: code clean-up * feat: shuffle the UI * fix: change amount * feat: update tx size in real time * fix: coin selection * fix: show erro messages * fix: psbt generation * refactor: move serial port logic * refactor: payment component * refactor: code clean-up; use `slot` for `serial-signer` * feat: toggle serial port * feat: add Disconnect command * feat: prompt for `Connect` and `Login` before signing * refactor: send psbt to device * feat: extract signed transaction * refactor: code clean-up * feat: show auth green icon * chore: code clean-up * feat: show console * feat: allow `Connect` from dropdown menu * fix: stop if serial port cannot be open * feat: confirm outputs and fee * feat: add cancel command * fix: add `sats-denominated` for confirmations * feat: wait for HWW to authenticate, then open dialog * feat: share PSBT as text * refactor: extract `refreshAddresses` * feat: small UI improvements * feat: add default `Mainnet` network * feat: fix mempool endpint * feat: propagate config update only when explicitly updated * feat: add network for wallet accounts * fix: stop scanning when network changed * chore: code clean-up * chore: code clean-up * feat: show hardware device Xpub option * fix: handle failed to parse psbt * feat: add accounts using the HWW * fix: testnet is in the bip32 derivation path * feat: add spinner while wallet account is created * fix: check network and masterpub for duplicate accounts * feat: integrate transaction broadcast * feat: add password confirmation for `Wipe` and `Restore` * fix: fingerprint is not unique per account (it is the fingerprint of the master) * chore: code clean-up, remove `masterpub_fingerprint` * fix: account name diplay * chore: code format * fix: memppol links * fix: shortcut buttons * fix: note update * chore: code format * chore: clean-up rebase left overs * chore: clean-up * feat: less technical labels for addresses * feat: add serial port config params * fix: address type selection * chore: drop `mempool` table * fix: change & fee value * fix: handle no input signed scenario * fix: sat/btc unit * fix: small UI stuff * doc: update the readme * Update README.md
136 lines
3.9 KiB
HTML
136 lines
3.9 KiB
HTML
<q-card>
|
|
<q-card-section>
|
|
<div class="row items-center no-wrap q-mb-md">
|
|
<div v-if="selectable" class="col-3 q-pr-lg">
|
|
<q-select
|
|
filled
|
|
dense
|
|
emit-value
|
|
v-model="utxoSelectionMode"
|
|
:options="utxoSelectionModes"
|
|
label="Selection Mode"
|
|
@input="updateUtxoSelection"
|
|
></q-select>
|
|
</div>
|
|
<div v-if="selectable" class="col-1 q-pr-lg">
|
|
<q-btn
|
|
outline
|
|
icon="refresh"
|
|
color="grey"
|
|
@click="updateUtxoSelection"
|
|
class="q-ml-sm"
|
|
></q-btn>
|
|
</div>
|
|
<div v-if="selectable" class="col-5 q-pr-lg"></div>
|
|
<div v-if="!selectable" class="col-9 q-pr-lg"></div>
|
|
<div class="col-3 float-right">
|
|
<q-input
|
|
borderless
|
|
dense
|
|
debounce="300"
|
|
v-model="filter"
|
|
placeholder="Search"
|
|
>
|
|
<template v-slot:append>
|
|
<q-icon name="search"></q-icon>
|
|
</template>
|
|
</q-input>
|
|
</div>
|
|
</div>
|
|
|
|
<q-table
|
|
flat
|
|
dense
|
|
:data="utxos"
|
|
row-key="id"
|
|
:columns="columns"
|
|
:pagination.sync="utxosTable.pagination"
|
|
:filter="filter"
|
|
>
|
|
<template v-slot:body="props">
|
|
<q-tr :props="props">
|
|
<q-td auto-width>
|
|
<q-btn
|
|
size="sm"
|
|
color="accent"
|
|
round
|
|
dense
|
|
@click="props.row.expanded= !props.row.expanded"
|
|
:icon="props.row.expanded? 'remove' : 'add'"
|
|
/>
|
|
</q-td>
|
|
|
|
<q-td v-if="selectable" key="selected" :props="props">
|
|
<div>
|
|
<q-checkbox v-model="props.row.selected"></q-checkbox>
|
|
</div>
|
|
</q-td>
|
|
<q-td key="status" :props="props">
|
|
<div>
|
|
<q-badge
|
|
v-if="props.row.confirmed"
|
|
@click="props.row.expanded = !props.row.expanded"
|
|
color="green"
|
|
class="q-mr-md cursor-pointer"
|
|
>
|
|
Confirmed
|
|
</q-badge>
|
|
<q-badge
|
|
v-if="!props.row.confirmed"
|
|
@click="props.row.expanded = !props.row.expanded"
|
|
color="orange"
|
|
class="q-mr-md cursor-pointer"
|
|
>
|
|
Pending
|
|
</q-badge>
|
|
</div>
|
|
</q-td>
|
|
<q-td key="address" :props="props">
|
|
<div>
|
|
<a
|
|
style="color: unset"
|
|
:href="'https://' + mempoolEndpoint + '/address/' + props.row.address"
|
|
target="_blank"
|
|
>
|
|
{{props.row.address}}</a
|
|
>
|
|
<q-badge v-if="props.row.isChange" color="orange" class="q-mr-md">
|
|
change
|
|
</q-badge>
|
|
</div>
|
|
</q-td>
|
|
|
|
<q-td
|
|
key="amount"
|
|
:props="props"
|
|
class="text-green-13 text-weight-bold"
|
|
>
|
|
<div>{{satBtc(props.row.amount)}}</div>
|
|
</q-td>
|
|
|
|
<q-td key="date" :props="props"> {{ props.row.date }} </q-td>
|
|
<q-td key="wallet" :props="props" :class="">
|
|
<div>{{getWalletName(props.row.wallet)}}</div>
|
|
</q-td>
|
|
</q-tr>
|
|
<q-tr v-show="props.row.expanded" :props="props">
|
|
<q-td colspan="100%">
|
|
<div class="row items-center q-mb-md">
|
|
<div class="col-2 q-pr-lg">Transaction Id</div>
|
|
<div class="col-10 q-pr-lg">
|
|
<a
|
|
style="color: unset"
|
|
:href="'https://' + mempoolEndpoint + '/tx/' + props.row.txId"
|
|
target="_blank"
|
|
>
|
|
{{props.row.txId}}</a
|
|
>
|
|
</div>
|
|
</div>
|
|
</q-td>
|
|
</q-tr>
|
|
</template>
|
|
</q-table>
|
|
</q-card-section></q-card
|
|
>
|