oxen-electron-gui-wallet/src/components/wallet_details.vue

94 lines
2.1 KiB
Vue
Raw Normal View History

<template>
2020-03-03 04:16:23 +01:00
<div class="column wallet-info">
2021-01-06 06:26:42 +01:00
<div class="row justify-between items-center wallet-header oxen-teal">
2020-03-03 04:16:23 +01:00
<div class="title">{{ info.name }}</div>
<WalletSettings />
</div>
2021-01-06 06:26:42 +01:00
<div class="wallet-content oxen-navy">
2020-03-03 04:16:23 +01:00
<div class="row justify-center">
<div class="funds column items-center">
<div class="balance">
<div class="text">
2021-01-06 06:26:42 +01:00
<span>{{ $t("strings.oxenBalance") }}</span>
</div>
2020-03-03 04:16:23 +01:00
<div class="value">
2021-01-06 06:26:42 +01:00
<span><FormatOxen :amount="info.balance"/></span>
2020-03-03 04:16:23 +01:00
</div>
</div>
<div class="row unlocked">
2021-01-06 06:26:42 +01:00
<span
>{{ $t("strings.oxenUnlockedShort") }}:
<FormatOxen :amount="info.unlocked_balance"
/></span>
2020-03-03 04:16:23 +01:00
</div>
</div>
2020-03-03 04:16:23 +01:00
</div>
<div class="wallet-address row justify-center items-center">
<div class="address">{{ info.address }}</div>
UI upgrade (#155) * followed upgrade instructions on quasar site * followed upgrade instructions on quasar site * debug messages now show * Fix template error mode undefined * building and working, UI broken, need to move to new quasar components * move collapsible to expansion-item * moving over components to quasar v1+ * items to labels * items and item side to quasar v1 * fix label typo * item main to item label * q-section to q-item-section * popover to menu * modals to v1 quasar * Remove debug lines, use new dialog methods * move static folder up a dir and rename to public. Change paths accordingly * Exit modal fixed with v1 quasar * UI fixes for v1 quasar * remove link styles * some field updates * Fix more fields and modals for v1 * more fields updated * more fields changed over * wallet settings modals * Fix password confirm dialog issue w/ refactor * begin generalising a copy component * Receive item looking better * Index view vixed for v1 quasar * fix export/import keys modal * tx styles and some others * bunch of small style changes * Fix date display on restore page * completed upgrade to v1 quasar (I think) * lns list fixed, stake buttons fixed * fix favourite checkbox with v1 quasar * Address book fixes * Fix the context menus * clean up * remove mixin from copyicon * Fix webpack * fix QR code view on address detail page * Fix welcome stepper and default to blink * Fix some style issues * radio buttons w/ white circles * clean up * sn style fixes, and other fixes * style fixes and unlock bug fixed * fix daemon typo * Fix some style things * fix button colour Co-authored-by: Kyle Zsembery <zsembery.kyle@gmail.com>
2020-08-31 07:26:06 +02:00
<CopyIcon :content="info.address" />
2020-03-03 04:16:23 +01:00
</div>
</div>
2020-03-03 04:16:23 +01:00
</div>
</template>
<script>
2020-03-03 04:16:23 +01:00
import { mapState } from "vuex";
2021-01-06 06:26:42 +01:00
import FormatOxen from "components/format_oxen";
2020-09-03 03:18:40 +02:00
import WalletSettings from "components/menus/wallet_settings";
UI upgrade (#155) * followed upgrade instructions on quasar site * followed upgrade instructions on quasar site * debug messages now show * Fix template error mode undefined * building and working, UI broken, need to move to new quasar components * move collapsible to expansion-item * moving over components to quasar v1+ * items to labels * items and item side to quasar v1 * fix label typo * item main to item label * q-section to q-item-section * popover to menu * modals to v1 quasar * Remove debug lines, use new dialog methods * move static folder up a dir and rename to public. Change paths accordingly * Exit modal fixed with v1 quasar * UI fixes for v1 quasar * remove link styles * some field updates * Fix more fields and modals for v1 * more fields updated * more fields changed over * wallet settings modals * Fix password confirm dialog issue w/ refactor * begin generalising a copy component * Receive item looking better * Index view vixed for v1 quasar * fix export/import keys modal * tx styles and some others * bunch of small style changes * Fix date display on restore page * completed upgrade to v1 quasar (I think) * lns list fixed, stake buttons fixed * fix favourite checkbox with v1 quasar * Address book fixes * Fix the context menus * clean up * remove mixin from copyicon * Fix webpack * fix QR code view on address detail page * Fix welcome stepper and default to blink * Fix some style issues * radio buttons w/ white circles * clean up * sn style fixes, and other fixes * style fixes and unlock bug fixed * fix daemon typo * Fix some style things * fix button colour Co-authored-by: Kyle Zsembery <zsembery.kyle@gmail.com>
2020-08-31 07:26:06 +02:00
import CopyIcon from "components/icons/copy_icon";
export default {
2020-03-03 04:16:23 +01:00
name: "WalletDetails",
components: {
2021-01-06 06:26:42 +01:00
FormatOxen,
UI upgrade (#155) * followed upgrade instructions on quasar site * followed upgrade instructions on quasar site * debug messages now show * Fix template error mode undefined * building and working, UI broken, need to move to new quasar components * move collapsible to expansion-item * moving over components to quasar v1+ * items to labels * items and item side to quasar v1 * fix label typo * item main to item label * q-section to q-item-section * popover to menu * modals to v1 quasar * Remove debug lines, use new dialog methods * move static folder up a dir and rename to public. Change paths accordingly * Exit modal fixed with v1 quasar * UI fixes for v1 quasar * remove link styles * some field updates * Fix more fields and modals for v1 * more fields updated * more fields changed over * wallet settings modals * Fix password confirm dialog issue w/ refactor * begin generalising a copy component * Receive item looking better * Index view vixed for v1 quasar * fix export/import keys modal * tx styles and some others * bunch of small style changes * Fix date display on restore page * completed upgrade to v1 quasar (I think) * lns list fixed, stake buttons fixed * fix favourite checkbox with v1 quasar * Address book fixes * Fix the context menus * clean up * remove mixin from copyicon * Fix webpack * fix QR code view on address detail page * Fix welcome stepper and default to blink * Fix some style issues * radio buttons w/ white circles * clean up * sn style fixes, and other fixes * style fixes and unlock bug fixed * fix daemon typo * Fix some style things * fix button colour Co-authored-by: Kyle Zsembery <zsembery.kyle@gmail.com>
2020-08-31 07:26:06 +02:00
WalletSettings,
CopyIcon
2020-03-03 04:16:23 +01:00
},
computed: mapState({
theme: state => state.gateway.app.config.appearance.theme,
info: state => state.gateway.wallet.info
UI upgrade (#155) * followed upgrade instructions on quasar site * followed upgrade instructions on quasar site * debug messages now show * Fix template error mode undefined * building and working, UI broken, need to move to new quasar components * move collapsible to expansion-item * moving over components to quasar v1+ * items to labels * items and item side to quasar v1 * fix label typo * item main to item label * q-section to q-item-section * popover to menu * modals to v1 quasar * Remove debug lines, use new dialog methods * move static folder up a dir and rename to public. Change paths accordingly * Exit modal fixed with v1 quasar * UI fixes for v1 quasar * remove link styles * some field updates * Fix more fields and modals for v1 * more fields updated * more fields changed over * wallet settings modals * Fix password confirm dialog issue w/ refactor * begin generalising a copy component * Receive item looking better * Index view vixed for v1 quasar * fix export/import keys modal * tx styles and some others * bunch of small style changes * Fix date display on restore page * completed upgrade to v1 quasar (I think) * lns list fixed, stake buttons fixed * fix favourite checkbox with v1 quasar * Address book fixes * Fix the context menus * clean up * remove mixin from copyicon * Fix webpack * fix QR code view on address detail page * Fix welcome stepper and default to blink * Fix some style issues * radio buttons w/ white circles * clean up * sn style fixes, and other fixes * style fixes and unlock bug fixed * fix daemon typo * Fix some style things * fix button colour Co-authored-by: Kyle Zsembery <zsembery.kyle@gmail.com>
2020-08-31 07:26:06 +02:00
})
2020-03-03 04:16:23 +01:00
};
</script>
<style lang="scss">
.wallet-info {
2020-03-03 04:16:23 +01:00
.wallet-header {
padding: 0.8rem 1.5rem;
.title {
font-weight: bold;
}
2020-03-03 04:16:23 +01:00
}
2020-03-03 04:16:23 +01:00
.wallet-content {
text-align: center;
padding: 2em;
2020-03-03 04:16:23 +01:00
.balance {
.text {
font-size: 16px;
}
.value {
font-size: 35px;
}
}
2020-03-03 04:16:23 +01:00
.wallet-address {
margin-top: 12px;
.address {
overflow: hidden;
text-overflow: ellipsis;
margin: 4px 0;
}
.q-btn {
margin-left: 8px;
}
}
2020-03-03 04:16:23 +01:00
.unlocked {
font-size: 14px;
font-weight: 500;
}
2020-03-03 04:16:23 +01:00
}
}
</style>