From 32014f4a24b775ef998be6e1c76918cf86bb958a Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Sat, 20 May 2023 08:07:36 +0800 Subject: [PATCH] improve UX & adding links --- public/test.html | 17 ++++++ src/layouts/components/DefaultLayout.vue | 47 ++++++++++++++-- src/modules/[chain]/block/index.vue | 54 +++++++++---------- src/modules/[chain]/uptime/index.vue | 23 ++++---- src/modules/[chain]/widget/index.vue | 9 ++-- .../@layouts/components/VerticalNav.vue | 1 + src/plugins/vuetify/@layouts/utils.ts | 1 + src/stores/useBaseStore.ts | 2 +- src/stores/useBlockchain.ts | 2 +- 9 files changed, 110 insertions(+), 46 deletions(-) create mode 100644 public/test.html diff --git a/public/test.html b/public/test.html new file mode 100644 index 00000000..6b46c576 --- /dev/null +++ b/public/test.html @@ -0,0 +1,17 @@ + +
+Height | -Hash | -Proposer | -Txs | -Time | -
---|---|---|---|---|
- |
- {{ item.block_id?.hash }} | -- {{ format.validator(item.block?.header?.proposer_address) }} - | -{{ item.block?.data?.txs.length }} | -{{ format.toDay(item.block?.header?.time, 'from') }} | -
<script 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">
<ping-connect-wallet chain-id="{{ chainId }}" hd-path="{{ hdPath }}"/>
+ <ping-connect-wallet chain-id="{{ chainId }}" hd-path="{{ hdPath }}"/>
<ping-token-convert chain-name="{{ chainName }}" endpoint="{{endpoint}}" hd-path="hdPath"/>
+ <ping-token-convert chain-name="{{ chainName }}" endpoint="{{endpoint}}" hd-path="{{hdPath}}"/>
+ <label for="PingTokenConvert" class="btn btn-sm">Buy {{chainName.toUpperCase()}}</label>