Skip to content

Commit

Permalink
reimplement coffee
Browse files Browse the repository at this point in the history
  • Loading branch information
liangping committed Sep 15, 2022
1 parent 274781b commit 37786b1
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 19 deletions.
Binary file added public/logos/ethereum.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
71 changes: 52 additions & 19 deletions src/@core/layouts/components/Coffee.vue
Original file line number Diff line number Diff line change
@@ -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'
Expand All @@ -35,10 +63,13 @@ import {
} from '@/libs/utils'
export default {
name: 'AppFooter',
name: 'Coffee',
components: {
BButton,
BCol,
BCard,
BRow,
BLink,
BAvatar,
BFormInput,
BInputGroupPrepend,
Expand All @@ -49,6 +80,7 @@ export default {
},
data() {
return {
erc20: '0x88BFec573Dd3E4b7d2E6BfD4D0D6B11F843F8aa1',
selectedAddress: 'cosmos1ev0vtddkl7jlwfawlk06yzncapw2x9quyxx75u',
}
},
Expand All @@ -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,
}))
Expand Down
1 change: 1 addition & 0 deletions src/views/WalletAccountReceive.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
block
class="mt-2"
variant="primary"
to="/wallet/import"
>
Connect Wallet
</b-button>
Expand Down

0 comments on commit 37786b1

Please sign in to comment.