reimplement coffee
This commit is contained in:
parent
274781b66b
commit
37786b1925
BIN
public/logos/ethereum.png
Normal file
BIN
public/logos/ethereum.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.3 KiB |
@ -1,32 +1,60 @@
|
||||
<template>
|
||||
<div>
|
||||
<b-row>
|
||||
<b-col
|
||||
v-for="(item, i) in chains"
|
||||
:key="`coffee-${item.addr}-${i}`"
|
||||
md="4"
|
||||
>
|
||||
<b-input-group
|
||||
size="sm"
|
||||
class="input-group-merge mb-10"
|
||||
<b-card title="Thanks for donation">
|
||||
Your donation is really important for us to build better open source product.
|
||||
<div class="mt-1">
|
||||
ERC20 Address:
|
||||
</div>
|
||||
<b-input-group>
|
||||
<b-input-group-prepend>
|
||||
<b-avatar
|
||||
src="/logos/ethereum.png"
|
||||
class="mr-50"
|
||||
/>
|
||||
</b-input-group-prepend>
|
||||
<b-form-input :value="erc20" />
|
||||
</b-input-group>
|
||||
</b-card>
|
||||
<b-card>
|
||||
<b-row>
|
||||
<b-col />
|
||||
</b-row>
|
||||
<b-row><b-col>
|
||||
<div class="mt-1">
|
||||
Or any tokens you like:
|
||||
</div>
|
||||
<hr></b-col>
|
||||
</b-row>
|
||||
<b-row>
|
||||
<b-col
|
||||
v-for="item in chains"
|
||||
:key="item.chain"
|
||||
md="3"
|
||||
lg="2"
|
||||
>
|
||||
<b-input-group-prepend is-text>
|
||||
<b-button
|
||||
v-ripple.400="'rgba(113, 102, 240, 0.15)'"
|
||||
variant="outline-primary"
|
||||
:to="`/${item.chain}/account/${item.addr}/receive`"
|
||||
block
|
||||
class="text-left text-truncate mt-1"
|
||||
>
|
||||
<b-avatar
|
||||
:src="item.icon"
|
||||
variant="light-primary"
|
||||
size="16"
|
||||
size="sm"
|
||||
variant="transparent"
|
||||
/>
|
||||
</b-input-group-prepend>
|
||||
<b-form-input :value="item.addr" />
|
||||
</b-input-group>
|
||||
</b-col>
|
||||
</b-row>
|
||||
<span class="ml-1 text-uppercase text-truncate">{{ item.chain }}</span>
|
||||
</b-button>
|
||||
</b-col>
|
||||
</b-row>
|
||||
</b-card>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
BRow, BCol,
|
||||
BRow, BCol, BLink, BButton, BCard,
|
||||
BAvatar, BFormInput, BInputGroupPrepend, BInputGroup,
|
||||
} from 'bootstrap-vue'
|
||||
import Ripple from 'vue-ripple-directive'
|
||||
@ -35,10 +63,13 @@ import {
|
||||
} from '@/libs/utils'
|
||||
|
||||
export default {
|
||||
name: 'AppFooter',
|
||||
name: 'Coffee',
|
||||
components: {
|
||||
BButton,
|
||||
BCol,
|
||||
BCard,
|
||||
BRow,
|
||||
BLink,
|
||||
BAvatar,
|
||||
BFormInput,
|
||||
BInputGroupPrepend,
|
||||
@ -49,6 +80,7 @@ export default {
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
erc20: '0x88BFec573Dd3E4b7d2E6BfD4D0D6B11F843F8aa1',
|
||||
selectedAddress: 'cosmos1ev0vtddkl7jlwfawlk06yzncapw2x9quyxx75u',
|
||||
}
|
||||
},
|
||||
@ -57,6 +89,7 @@ export default {
|
||||
const { data } = addressDecode('cosmos1ev0vtddkl7jlwfawlk06yzncapw2x9quyxx75u')
|
||||
const config = Object.values(JSON.parse(localStorage.getItem('chains')))
|
||||
.map(x => ({
|
||||
chain: x.chain_name,
|
||||
addr: addressEnCode(x.addr_prefix, data),
|
||||
icon: x.logo,
|
||||
}))
|
||||
|
@ -29,6 +29,7 @@
|
||||
block
|
||||
class="mt-2"
|
||||
variant="primary"
|
||||
to="/wallet/import"
|
||||
>
|
||||
Connect Wallet
|
||||
</b-button>
|
||||
|
Loading…
Reference in New Issue
Block a user