i18n: update add en src/modules/[chain]/cosmwasm/

const radioContent = [}; > not changes

Author: Salman Wahib <hello@sxlmnwb.xyz>
Co-authored-by: liangping <18786721@qq.com>
This commit is contained in:
Salman Wahib 2023-06-21 01:08:00 +07:00
parent 488a9c2d37
commit 665ea0c17b
3 changed files with 43 additions and 23 deletions

View File

@ -113,14 +113,14 @@ const result = ref('');
<div> <div>
<div class="bg-base-100 px-4 pt-3 pb-4 rounded mb-4 shadow"> <div class="bg-base-100 px-4 pt-3 pb-4 rounded mb-4 shadow">
<h2 class="card-title truncate w-full"> <h2 class="card-title truncate w-full">
Contract List of Code: {{ props.code_id }} {{ $t('cosmwasm.contract_list_code') }}: {{ props.code_id }}
</h2> </h2>
<div class="overflow-x-auto"> <div class="overflow-x-auto">
<table class="table table-compact w-full mt-4"> <table class="table table-compact w-full mt-4">
<thead> <thead>
<tr> <tr>
<th style="position: relative; z-index: 2">Contract List</th> <th style="position: relative; z-index: 2">{{ $t('cosmwasm.contract_list') }}</th>
<th>Actions</th> <th>{{ $t('account.action') }}</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@ -135,34 +135,34 @@ const result = ref('');
@click="showInfo(v)" @click="showInfo(v)"
for="modal-contract-detail" for="modal-contract-detail"
class="btn btn-primary btn-xs text-xs mr-2" class="btn btn-primary btn-xs text-xs mr-2"
>Contract</label >{{ $t('cosmwasm.btn_contract') }}</label
> >
<label <label
@click="showFunds(v)" @click="showFunds(v)"
for="modal-contract-funds" for="modal-contract-funds"
class="btn btn-primary btn-xs text-xs mr-2" class="btn btn-primary btn-xs text-xs mr-2"
>Funds</label >{{ $t('cosmwasm.btn_funds') }}</label
> >
<label <label
class="btn btn-primary btn-xs text-xs mr-2" class="btn btn-primary btn-xs text-xs mr-2"
for="modal-contract-states" for="modal-contract-states"
@click="showState(v)" @click="showState(v)"
> >
States {{ $t('cosmwasm.btn_states') }}
</label> </label>
<label <label
for="modal-contract-query" for="modal-contract-query"
class="btn btn-primary btn-xs text-xs mr-2" class="btn btn-primary btn-xs text-xs mr-2"
@click="showQuery(v)" @click="showQuery(v)"
> >
Query {{ $t('cosmwasm.btn_query') }}
</label> </label>
<label <label
for="wasm_execute_contract" for="wasm_execute_contract"
class="btn btn-primary btn-xs text-xs" class="btn btn-primary btn-xs text-xs"
@click="dialog.open('wasm_execute_contract', { contract: v })" @click="dialog.open('wasm_execute_contract', { contract: v })"
> >
Execute {{ $t('cosmwasm.btn_execute') }}
</label> </label>
</td> </td>
</tr> </tr>
@ -182,7 +182,7 @@ const result = ref('');
codeId: props.code_id, codeId: props.code_id,
}) })
" "
>Instantiate Contract</label >{{ $t('cosmwasm.instantiate_contract') }}</label
> >
</div> </div>
</div> </div>
@ -193,7 +193,7 @@ const result = ref('');
<label class="modal-box !w-11/12 !max-w-5xl relative p-2" for=""> <label class="modal-box !w-11/12 !max-w-5xl relative p-2" for="">
<div> <div>
<div class="flex items-center justify-between px-3 pt-2"> <div class="flex items-center justify-between px-3 pt-2">
<div class="text-lg">Contract Detail</div> <div class="text-lg">{{ $t('cosmwasm.contract_detail') }}</div>
<label <label
@click="infoDialog = false" @click="infoDialog = false"
for="modal-contract-detail" for="modal-contract-detail"
@ -213,7 +213,7 @@ const result = ref('');
<label class="modal-box relative p-2" for=""> <label class="modal-box relative p-2" for="">
<div> <div>
<div class="flex items-center justify-between px-3 pt-2"> <div class="flex items-center justify-between px-3 pt-2">
<div class="text-lg">Contract Balances</div> <div class="text-lg">{{ $t('cosmwasm.contract_balances') }}</div>
<label <label
for="modal-contract-funds" for="modal-contract-funds"
class="btn btn-sm btn-circle" class="btn btn-sm btn-circle"
@ -224,7 +224,7 @@ const result = ref('');
<li v-for="b in balances.balances" > <li v-for="b in balances.balances" >
<a class="flex justify-between"><span>{{ format.formatToken(b) }}</span> {{ b.amount }} </a> <a class="flex justify-between"><span>{{ format.formatToken(b) }}</span> {{ b.amount }} </a>
</li> </li>
<li v-if="balances.pagination?.total === '0'" class="my-10 text-center"> No Escrowed Assets</li> <li v-if="balances.pagination?.total === '0'" class="my-10 text-center">{{ $t('cosmwasm.no_escrowed_assets') }}</li>
</ul> </ul>
</div> </div>
</label> </label>
@ -235,7 +235,7 @@ const result = ref('');
<label class="modal-box !w-11/12 !max-w-5xl" for=""> <label class="modal-box !w-11/12 !max-w-5xl" for="">
<div> <div>
<div class="flex items-center justify-between px-3 pt-2 mb-4"> <div class="flex items-center justify-between px-3 pt-2 mb-4">
<div class="text-lg">Contract States</div> <div class="text-lg">{{ $t('cosmwasm.contract_states') }}</div>
<label <label
for="modal-contract-states" for="modal-contract-states"
class="btn btn-sm btn-circle" class="btn btn-sm btn-circle"
@ -271,7 +271,7 @@ const result = ref('');
<label class="modal-box !w-11/12 !max-w-5xl" for=""> <label class="modal-box !w-11/12 !max-w-5xl" for="">
<div> <div>
<div class="flex items-center justify-between px-3 pt-2 mb-4"> <div class="flex items-center justify-between px-3 pt-2 mb-4">
<div class="text-lg font-semibold">Query Contract</div> <div class="text-lg font-semibold">{{ $t('cosmwasm.query_contract') }}</div>
<label <label
for="modal-contract-query" for="modal-contract-query"
class="btn btn-sm btn-circle" class="btn btn-sm btn-circle"
@ -315,7 +315,7 @@ const result = ref('');
class="btn btn-primary px-4 text-white" class="btn btn-primary px-4 text-white"
@click="queryContract()" @click="queryContract()"
> >
Query Contract {{ $t('cosmwasm.query_contract') }}
</button> </button>
</div> </div>
</div> </div>

View File

@ -24,15 +24,15 @@ pageload(1)
</script> </script>
<template> <template>
<div class="bg-base-100 px-4 pt-3 pb-4 rounded mb-4 shadow"> <div class="bg-base-100 px-4 pt-3 pb-4 rounded mb-4 shadow">
<h2 class="card-title truncate w-full">Cosmos Wasm Smart Contracts</h2> <h2 class="card-title truncate w-full">{{ $t('cosmwasm.title') }}</h2>
<div class="overflow-x-auto"> <div class="overflow-x-auto">
<table class="table table-compact w-full mt-4 text-sm"> <table class="table table-compact w-full mt-4 text-sm">
<thead> <thead>
<tr> <tr>
<th>Code Id</th> <th>{{ $t('cosmwasm.code_id') }}</th>
<th>Code Hash</th> <th>{{ $t('cosmwasm.code_hash') }}</th>
<th>Creator</th> <th>{{ $t('cosmwasm.creator') }}</th>
<th>Permissions</th> <th>{{ $t('cosmwasm.permissions') }}</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@ -55,9 +55,7 @@ pageload(1)
</table> </table>
<div class="flex justify-between"> <div class="flex justify-between">
<PaginationBar :limit="pageRequest.limit" :total="codes.pagination?.total" :callback="pageload" /> <PaginationBar :limit="pageRequest.limit" :total="codes.pagination?.total" :callback="pageload" />
<label for="wasm_store_code" class="btn btn-primary my-5" @click="dialog.open('wasm_store_code', {})">Upload <label for="wasm_store_code" class="btn btn-primary my-5" @click="dialog.open('wasm_store_code', {})">{{ $t('cosmwasm.btn_up_sc') }}</label>
Smart
Contract</label>
</div> </div>
</div> </div>
</div> </div>

View File

@ -97,5 +97,27 @@
"tips": "Tips", "tips": "Tips",
"tips_description_1": "This tool is useful for validators to monitor who is onboard during an upgrade", "tips_description_1": "This tool is useful for validators to monitor who is onboard during an upgrade",
"tips_description_2": "If you want to change the default rpc endpoint. make sure that `https` and `CORS` are enabled on your server." "tips_description_2": "If you want to change the default rpc endpoint. make sure that `https` and `CORS` are enabled on your server."
},
"cosmwasm": {
"title": "Cosmos Wasm Smart Contracts",
"code_id": "Code Id",
"code_hash": "Code Hash",
"creator": "Creator",
"permissions": "Permissions",
"btn_up_sc": "Upload Smart Contract",
"contract_list_code": "Contract List of Code",
"contract_list": "Contract List",
"btn_contract": "Contract",
"btn_funds": "Funds",
"btn_states": "States",
"btn_fees": "Fees",
"btn_query": "Query",
"btn_execute": "Execute",
"instantiate_contract": "Instantiate Contract",
"contract_detail": "Contract Detail",
"contract_balances": "Contract Balances",
"no_escrowed_assets": "No Escrowed Assets",
"contract_states": "Contract States",
"query_contract": "Query Contract"
} }
} }