From e9b4afd7fa042fce927506e2fdf244f5419c63bd Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Thu, 15 Jun 2023 12:05:35 +0800 Subject: [PATCH] improve background color --- src/modules/[chain]/statesync/index.vue | 28 ++++++++++++------------- src/modules/[chain]/widget/index.vue | 14 ++++++------- src/modules/wallet/accounts.vue | 2 +- tailwind.config.js | 1 + 4 files changed, 23 insertions(+), 22 deletions(-) diff --git a/src/modules/[chain]/statesync/index.vue b/src/modules/[chain]/statesync/index.vue index 57bd932e..c89de162 100644 --- a/src/modules/[chain]/statesync/index.vue +++ b/src/modules/[chain]/statesync/index.vue @@ -70,16 +70,16 @@ onMounted(() => { We can configure Tendermint to use state sync in $DAEMON_HOME/config/config.toml.

-
-
[state-sync]
-
enable = true
-
-
rpc_servers = "{{ rpcs }}"
-
trust_height = {{ height }} 
-
trust_hash = "{{hash}}"
-
+
+
[state-sync]
+
enable = true
+
+
rpc_servers = "{{ rpcs }}"
+
trust_height = {{ height }} 
+
trust_hash = "{{hash}}"
+
# 2/3 of unbonding time
-
trust_period = "168h"
+
trust_period = "168h"

3. Start the daemon: {{ appName }} start @@ -97,14 +97,14 @@ onMounted(() => { To make state sync works, we can enable snapshot in $DAEMON_HOME/config/app.toml

-
-
[state-sync]
+
+
[state-sync]
# snapshot-interval specifies the block interval at which local state sync snapshots are
# taken (0 to disable). Must be a multiple of pruning-keep-every.
-
snapshot-interval = 1000
-
+
snapshot-interval = 1000
+
# snapshot-keep-recent specifies the number of recent snapshots to keep and serve (0 to keep all). Each snapshot is about 500MiB
-
snapshot-keep-recent = 2
+
snapshot-keep-recent = 2
diff --git a/src/modules/[chain]/widget/index.vue b/src/modules/[chain]/widget/index.vue index d728df97..6f890a67 100644 --- a/src/modules/[chain]/widget/index.vue +++ b/src/modules/[chain]/widget/index.vue @@ -32,22 +32,22 @@ const hdPath = computed(() => { Import global script -
-
<script type="module" src="https://unpkg.com/ping-widget@latest/dist/ping-widget.js">
+
+
<script type="module" src="https://unpkg.com/ping-widget@latest/dist/ping-widget.js">

Widgets

1. Connect Wallet -
-
<ping-connect-wallet chain-id="{{ chainId }}" hd-path="{{ hdPath }}"/>
+
+
<ping-connect-wallet chain-id="{{ chainId }}" hd-path="{{ hdPath }}"/>
2. Osmosis Convert -
-
<ping-token-convert chain-name="{{ chainName }}" endpoint="{{endpoint}}" hd-path="{{hdPath}}"/>
-
<label for="PingTokenConvert" class="btn btn-sm">Buy {{chainName.toUpperCase()}}</label>
+
+
<ping-token-convert chain-name="{{ chainName }}" endpoint="{{endpoint}}" hd-path="{{hdPath}}"/>
+
<label for="PingTokenConvert" class="btn btn-sm">Buy {{chainName.toUpperCase()}}</label>
diff --git a/src/modules/wallet/accounts.vue b/src/modules/wallet/accounts.vue index 29adc483..ba7dd8bb 100644 --- a/src/modules/wallet/accounts.vue +++ b/src/modules/wallet/accounts.vue @@ -287,7 +287,7 @@ async function loadBalances(endpoint: string, address: string) {
-
{{ key }}
+
{{ key }}