feat: ibc style

This commit is contained in:
Alisa | Side.one 2023-05-15 18:50:11 +08:00
parent f5ac321b8b
commit ff335d4f0b

View File

@ -83,24 +83,53 @@ function color(v: string) {
</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">IBC Client State</h2> <h2 class="card-title mb-4">IBC Client State</h2>
<div class="text-sm"> <div class="overflow-x-auto">
<br />update after expiry: <table class="table text-sm w-full">
{{ clientState.client_state?.allow_update_after_expiry }} <tbody>
<br />allow_update_after_misbehaviour: <tr>
{{ clientState.client_state?.allow_update_after_misbehaviour }} <td class="w-52">update after expiry:</td>
<br />trust_level: <td>{{ clientState.client_state?.allow_update_after_expiry }}</td>
{{ clientState.client_state?.trust_level?.numerator }}/{{ </tr>
clientState.client_state?.trust_level?.denominator <tr>
}} <td class="w-52">allow_update_after_misbehaviour:</td>
<br />trusting_period: {{ clientState.client_state?.trusting_period }} <td>{{ clientState.client_state?.allow_update_after_misbehaviour }}</td>
<br />unbonding_period: </tr>
{{ clientState.client_state?.unbonding_period }} <br />frozen_height: <tr>
{{ clientState.client_state?.frozen_height }} <br />latest_height: <td class="w-52">trust_level:</td>
{{ clientState.client_state?.latest_height }} <br />type: <td> {{ clientState.client_state?.trust_level?.numerator }}/{{
{{ clientState.client_state?.['@type'] }} <br />upgrade_path: clientState.client_state?.trust_level?.denominator}}</td>
{{ clientState.client_state?.upgrade_path }} <br /> </tr>
{{ clientState.client_state?.max_clock_drift }} <tr>
<td class="w-52">trusting_period:</td>
<td>{{ clientState.client_state?.trusting_period }}</td>
</tr>
<tr>
<td class="w-52">unbonding_period:</td>
<td> {{ clientState.client_state?.unbonding_period }}</td>
</tr>
<tr>
<td class="w-52">frozen_height:</td>
<td>{{ clientState.client_state?.frozen_height }} </td>
</tr>
<tr>
<td class="w-52">latest_height:</td>
<td>{{ clientState.client_state?.latest_height }}</td>
</tr>
<tr>
<td class="w-52">type:</td>
<td>{{ clientState.client_state?.['@type'] }}</td>
</tr>
<tr>
<td class="w-52">upgrade_path:</td>
<td>{{ clientState.client_state?.upgrade_path }} </td>
</tr>
<tr>
<td class="w-52">max_clock_drift:</td>
<td>{{ clientState.client_state?.max_clock_drift }} </td>
</tr>
</tbody>
</table>
</div> </div>
</div> </div>