Skip to content

Commit

Permalink
Remove game balance + Heist upd
Browse files Browse the repository at this point in the history
  • Loading branch information
2z2z2z committed Jul 25, 2023
1 parent e7662e5 commit cda04f9
Show file tree
Hide file tree
Showing 8 changed files with 50 additions and 27 deletions.
4 changes: 2 additions & 2 deletions components/CardMetagardenGame.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ export default defineComponent({
</nuxt-link>
<div class="card__content--small">
<h3 class="u-h4 u-mb-025">{{ game.title }}</h3>
<div class="u-h--uppercase u-flex u-flex--align-center">
<!--<div class="u-h--uppercase u-flex u-flex--align-center">
<img class="u-image--round u-mr-05 " :src="$store.getters['explorer/getCoinIcon'](game.coin)" alt="" role="presentation" width="16" height="16">
{{ pretty($store.getters.getBalanceAmount(game.coin)) }}
{{ game.coin }}
</div>
</div>-->
<!--<CardHead :card="card"/>-->
<!--<p class="card__action-description">{{ translate('description') }}</p>-->

Expand Down
15 changes: 5 additions & 10 deletions components/MetagardenGame.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,25 +40,20 @@ export default {
</div>
<template v-if="game">
<div class="u-h--uppercase-like u-mb-025">{{ translate('category') || 'Metagarden' }}</div>
<h1 class="u-h4 u-mb-05">{{ translate('title') }}</h1>
<p class="u-mb-10 u-text-medium">{{ translate('description') }}</p>
<div class="u-grid u-mb-10">
<div class="u-cell u-cell--1-2">
<div class="u-h--uppercase u-mb-05">{{ translate('category') || 'Metagarden' }}</div>
<h1 class="u-h4 u-mb-05">{{ translate('title') }}</h1>
</div>
<div class="u-cell u-cell--1-2">
<div class="u-h--uppercase u-mb-05">{{ $td('Game token', 'mg-games.game-token') }}</div>
<div class="u-flex u-flex--align-center u-fw-700">
<img class="u-image--round u-mr-05 " :src="$store.getters['explorer/getCoinIcon'](game.coin)" alt="" role="presentation" width="16" height="16">
{{ game.coin }}
</div>
</div>
<div class="u-cell u-cell--1-2">
<div class="u-h--uppercase u-mb-05">{{ $td('Your balance', 'mg-games.balance') }}</div>
<div class="u-fw-700">
{{ pretty($store.getters.getBalanceAmount(game.coin)) }}
</div>
</div>
</div>
<p class="u-mb-10 u-text-medium">{{ translate('description') }}</p>
<slot :game="game"/>
</template>
Expand Down
2 changes: 1 addition & 1 deletion components/TopupCoinEvm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default {
<template>
<div>
<p class="u-text-medium u-mb-10">
{{ $td(`Send from 0.01 BNB or more to this address to instantly receive MEGA tokens.`, 'todo') }}
{{ $td(`Send from 0.005 BNB or more to this address to instantly receive MEGA tokens. The price is 1 MEGA = $1. It will take 1 to 3 minutes to get credited to your game address. You can close this window and go play Heist.`, 'topup.deposit-coin-evm-description') }}
</p>

<FieldAddressDisplay
Expand Down
19 changes: 9 additions & 10 deletions data/metagarden-games.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@ export default [
description: 'Майнинг токенов платформы Metagarden — это увлекательный процесс в игровой форме. Купите майнер и получайте ежедневные вознаграждения с множеством других бонусов.',
},
},
{
title: 'Heist',
description: 'Pig hackers rob a piggy bank!',
coin: 'HEISTGAME',
slug: 'heist',
ru: {
description: 'Свиньи-хакеры грабят свинью-копилку!',
},
},
{
title: 'Wonder',
description: 'Win, collect and sell unique NFTs that can be found in different WonderBoxes!',
Expand All @@ -45,16 +54,6 @@ export default [
category: 'Лотерея',
},
},
{
title: 'Heist',
description: '',
coin: 'HEISTGAME',
slug: 'heist',
isComingSoon: true,
ru: {
description: '',
},
},
{
title: 'Chess',
description: 'Play classic chess against each other. Earn crypto by playing chess matches, climb the rankings to get rewards.',
Expand Down
2 changes: 2 additions & 0 deletions lang/ru.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,8 @@ export default {
'deposit-sw-balance-description': 'На вашем смарт-кошельке есть доступные средства. Хотите зачислить?',
'deposit-evm-balance-description': 'На вашем {network} адресе доступные средства. Хотите зачислить?',
'deposit-evm-balance-button': 'Зачислить',
'deposit-coin-evm-description': 'Отправьте на этот адрес то 0.005 BNB и более, чтобы мгновенно получить токены MEGA. Курс 1 MEGA = $1. Зачисление на ваш игровой адрес от 1 до 3 минут. Можете закрыть это окно и пойти играть в Heist.',

},
deposit: {
'title': 'Мгновенное пополнение',
Expand Down
27 changes: 27 additions & 0 deletions pages/metagarden/game/heist.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<script>
import {IS_SUBAPP_HONEE} from '~/assets/variables.js';
import MetagardenGame from '~/components/MetagardenGame.vue';
export default {
layout: IS_SUBAPP_HONEE ? 'metagarden' : undefined,
components: {
MetagardenGame,
},
data() {
return {
};
},
computed: {
},
};
</script>

<template>
<MetagardenGame v-slot="{game}">
<a class="button button--main button--full u-mb-10 u-mt-15" href="http://t.me/metagardenbot?start=heist" target="_blank">{{ $td('Play', 'mg-games.button-play') }}</a>
<!--<nuxt-link class="button button--ghost-main button--full u-mb-10" :to="$i18nGetPreferredPath('/swap/' + game.coin)">
{{ $t('action.title-buy-coin', {coin: game.coin}) }}
</nuxt-link>
<a class="button button--ghost-main button--full" :href="$i18nGetPreferredPath('/send/-/' + game.coin)">{{ $td('Send tokens to the Game', 'mg-games.button-send-tokens') }}</a>-->
</MetagardenGame>
</template>
4 changes: 2 additions & 2 deletions pages/metagarden/game/magic-box.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ export default {
<template>
<MetagardenGame v-slot="{game}">
<a class="button button--main button--full u-mb-10 u-mt-15" href="http://t.me/metagardenbot?start=wonder" target="_blank">{{ $td('Play', 'mg-games.button-play') }}</a>
<nuxt-link class="button button--ghost-main button--full u-mb-10" :to="$i18nGetPreferredPath('/swap/' + game.coin)">
<!--<nuxt-link class="button button--ghost-main button--full u-mb-10" :to="$i18nGetPreferredPath('/swap/' + game.coin)">
{{ $t('action.title-buy-coin', {coin: game.coin}) }}
</nuxt-link>
<a class="button button--ghost-main button--full" :href="$i18nGetPreferredPath('/withdraw?coin='+ game.coin +'&network=bsc')">{{ $td('Send tokens to the Game', 'mg-games.button-send-tokens') }}</a>
<a class="button button--ghost-main button--full" :href="$i18nGetPreferredPath('/withdraw?coin='+ game.coin +'&network=bsc')">{{ $td('Send tokens to the Game', 'mg-games.button-send-tokens') }}</a>-->
</MetagardenGame>
</template>
4 changes: 2 additions & 2 deletions pages/metagarden/game/snatch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ export default {
<template>
<MetagardenGame v-slot="{game}">
<a class="button button--main button--full u-mb-10 u-mt-15" href="http://t.me/metagardenbot?start=snatch" target="_blank">{{ $td('Play', 'mg-games.button-play') }}</a>
<nuxt-link class="button button--ghost-main button--full u-mb-10" :to="$i18nGetPreferredPath('/swap/' + game.coin)">
<!--<nuxt-link class="button button--ghost-main button--full u-mb-10" :to="$i18nGetPreferredPath('/swap/' + game.coin)">
{{ $t('action.title-buy-coin', {coin: game.coin}) }}
</nuxt-link>
<a class="button button--ghost-main button--full" :href="$i18nGetPreferredPath('/send/-/' + game.coin)">{{ $td('Send tokens to the Game', 'mg-games.button-send-tokens') }}</a>
<a class="button button--ghost-main button--full" :href="$i18nGetPreferredPath('/send/-/' + game.coin)">{{ $td('Send tokens to the Game', 'mg-games.button-send-tokens') }}</a>-->
</MetagardenGame>
</template>

0 comments on commit cda04f9

Please sign in to comment.