mirror of
https://github.com/oxen-io/oxen-electron-gui-wallet.git
synced 2023-12-14 06:13:02 +01:00
Main screen redesign Removed dark mode styling and made it all dark. Fix large button styling on navigation Receive page styling Startup pages redesign Updating field stylings. Fix value display in recieve Updated footer. Added service node page. Added wallet settings. Added disable prop to loki field. Update settings page. Added merging config with default daemon option incase user provides invalid port (empty, null, etc...) Removed theme selection Update wallet-select pages Fixed converting numbers to string Update layout on address page Added loki logo. Made header a bit smaller. Updated wallet init styling. Highlight primary address in receive. updated packages. Updated transaction styling. Simpler tx json handling. Added address validation Fixed up wallet restoration Default node to remote. Added drop down button to the remote node input instead of having it as a seperate field. Removed review page. Center align welcome page. Replaced ryo wallet images with loki image. Updated transaction styling. Fix wallet errors only showing once which causes the next error to just show the loading overlay. Added staking Fix up status display in footer. remove is_ready as lokid doesn't return it. Fixed balance display in receive. Center unlock in wallet details. Updated README other updates.
171 lines
5.9 KiB
Vue
171 lines
5.9 KiB
Vue
<template>
|
|
<q-modal v-model="isVisible" maximized>
|
|
<q-modal-layout>
|
|
<q-toolbar slot="header" color="dark" inverted>
|
|
<q-btn
|
|
flat
|
|
round
|
|
dense
|
|
@click="isVisible = false"
|
|
icon="reply"
|
|
/>
|
|
<q-toolbar-title>
|
|
Address details
|
|
</q-toolbar-title>
|
|
<q-btn flat @click="isQRCodeVisible = true" label="Show QR Code" />
|
|
<q-btn class="q-ml-sm" color="primary" @click="copyAddress()" label="Copy address" />
|
|
</q-toolbar>
|
|
|
|
<div class="layout-padding">
|
|
|
|
<template v-if="address != null">
|
|
|
|
<AddressHeader :address="address.address"
|
|
:title="address.address_index == 0 ? 'Primary address' : 'Sub-address (Index '+address.address_index+')'"
|
|
:extra="'You have '+(address.used?'used':'not used')+' this address'"
|
|
:showCopy="false"
|
|
/>
|
|
|
|
|
|
<template v-if="address.used">
|
|
<div class="row justify-between" style="max-width: 768px">
|
|
|
|
<div class="infoBox">
|
|
<div class="infoBoxContent">
|
|
<div class="text"><span>Balance</span></div>
|
|
<div class="value"><span><FormatLoki :amount="address.balance" /></span></div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="infoBox">
|
|
<div class="infoBoxContent">
|
|
<div class="text"><span>Unlocked balance</span></div>
|
|
<div class="value"><span><FormatLoki :amount="address.unlocked_balance" /></span></div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="infoBox">
|
|
<div class="infoBoxContent">
|
|
<div class="text"><span>Number of unspent outputs</span></div>
|
|
<div class="value"><span>{{ address.num_unspent_outputs }}</span></div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</template>
|
|
<template v-else>
|
|
<div class="row justify-between" style="max-width: 768px">
|
|
|
|
<div class="infoBox">
|
|
<div class="infoBoxContent">
|
|
<div class="text"><span>Balance</span></div>
|
|
<div class="value"><span>N/A</span></div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="infoBox">
|
|
<div class="infoBoxContent">
|
|
<div class="text"><span>Unlocked balance</span></div>
|
|
<div class="value"><span>N/A</span></div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="infoBox">
|
|
<div class="infoBoxContent">
|
|
<div class="text"><span>Number of unspent outputs</span></div>
|
|
<div class="value"><span>N/A</span></div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</template>
|
|
|
|
<div class="q-mt-sm">
|
|
|
|
<div class="non-selectable">
|
|
<q-icon name="history" size="24px" />
|
|
<span class="vertical-middle q-ml-xs">Recent incoming transactions to this address</span>
|
|
</div>
|
|
|
|
<div style="margin: 0 -16px;">
|
|
<TxList type="all_in" :limit="5" :to-incoming-address-index="address.address_index" :key="address.address"/>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</div>
|
|
|
|
</q-modal-layout>
|
|
|
|
<template v-if="address != null">
|
|
<q-modal v-model="isQRCodeVisible" minimized :content-css="{padding: '25px'}">
|
|
|
|
<div class="text-center q-mb-sm q-pa-md" style="background: white;">
|
|
<qrcode-vue :value="address.address" size="240" ref="qr">
|
|
</qrcode-vue>
|
|
<q-context-menu>
|
|
<q-list link separator style="min-width: 150px; max-height: 300px;">
|
|
<q-item v-close-overlay @click.native="saveQR()">
|
|
<q-item-main label="Save QR code to file" />
|
|
</q-item>
|
|
</q-list>
|
|
</q-context-menu>
|
|
</div>
|
|
|
|
<q-btn
|
|
color="primary"
|
|
@click="isQRCodeVisible = false"
|
|
label="Close"
|
|
/>
|
|
</q-modal>
|
|
</template>
|
|
|
|
</q-modal>
|
|
</template>
|
|
|
|
<script>
|
|
import { mapState } from "vuex"
|
|
const {clipboard} = require("electron")
|
|
import AddressHeader from "components/address_header"
|
|
import FormatLoki from "components/format_loki"
|
|
import QrcodeVue from "qrcode.vue";
|
|
import TxList from "components/tx_list"
|
|
export default {
|
|
name: "AddressDetails",
|
|
computed: mapState({
|
|
}),
|
|
data () {
|
|
return {
|
|
isVisible: false,
|
|
isQRCodeVisible: false,
|
|
address: null
|
|
}
|
|
},
|
|
methods: {
|
|
saveQR() {
|
|
let img = this.$refs.qr.$el.childNodes[0].toDataURL()
|
|
this.$gateway.send("core", "save_png", {img, type: "QR Code"})
|
|
},
|
|
copyAddress() {
|
|
clipboard.writeText(this.address.address)
|
|
this.$q.notify({
|
|
type: "positive",
|
|
timeout: 1000,
|
|
message: "Address copied to clipboard"
|
|
})
|
|
}
|
|
},
|
|
components: {
|
|
AddressHeader,
|
|
TxList,
|
|
FormatLoki,
|
|
QrcodeVue
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style>
|
|
</style>
|