mirror of
https://github.com/oxen-io/oxen-electron-gui-wallet.git
synced 2023-12-14 06:13:02 +01:00
bcf21c3804
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.
107 lines
2.8 KiB
Vue
107 lines
2.8 KiB
Vue
<template>
|
|
<div class="column wallet-info">
|
|
<div class="row justify-between items-center wallet-header loki-green">
|
|
<div class="title">{{ info.name }}</div>
|
|
<WalletSettings />
|
|
</div>
|
|
<div class="wallet-content">
|
|
<div class="row justify-center">
|
|
<div class="funds column items-center">
|
|
<div class="balance">
|
|
<div class="text"><span>Balance</span></div>
|
|
<div class="value"><span><FormatLoki :amount="info.balance" /></span></div>
|
|
</div>
|
|
<div class="row unlocked">
|
|
<span>Unlocked: <FormatLoki :amount="info.unlocked_balance" /></span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="wallet-address row justify-center items-center">
|
|
<div class="address">{{ info.address }}</div>
|
|
<q-btn
|
|
color="primary" style="width:25px;"
|
|
size="sm" icon="file_copy"
|
|
ref="copy"
|
|
@click="copyAddress">
|
|
<q-tooltip anchor="center right" self="center left" :offset="[5, 10]">
|
|
Copy address
|
|
</q-tooltip>
|
|
</q-btn>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
const { clipboard } = require("electron")
|
|
import { mapState } from "vuex"
|
|
import FormatLoki from "components/format_loki"
|
|
import WalletSettings from "components/wallet_settings"
|
|
export default {
|
|
name: "WalletDetails",
|
|
computed: mapState({
|
|
theme: state => state.gateway.app.config.appearance.theme,
|
|
info: state => state.gateway.wallet.info,
|
|
}),
|
|
methods: {
|
|
copyAddress () {
|
|
this.$refs.copy.$el.blur()
|
|
clipboard.writeText(this.info.address)
|
|
this.$q.notify({
|
|
type: "positive",
|
|
timeout: 1000,
|
|
message: "Address copied to clipboard"
|
|
})
|
|
},
|
|
},
|
|
components: {
|
|
FormatLoki,
|
|
WalletSettings
|
|
},
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss">
|
|
.wallet-info {
|
|
.wallet-header {
|
|
padding: 0.8rem 1.5rem;
|
|
.title {
|
|
font-weight: bold;
|
|
}
|
|
}
|
|
|
|
.wallet-content {
|
|
text-align: center;
|
|
background-color: #0A0A0A;
|
|
padding: 2em;
|
|
|
|
.balance {
|
|
.text {
|
|
font-size: 16px;
|
|
}
|
|
.value {
|
|
font-size: 35px;
|
|
}
|
|
}
|
|
|
|
.wallet-address {
|
|
margin-top: 12px;
|
|
.address {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
margin: 4px 0;
|
|
}
|
|
.q-btn {
|
|
margin-left: 8px;
|
|
}
|
|
}
|
|
|
|
.unlocked {
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
}
|
|
}
|
|
}
|
|
</style>
|
|
|