From a25dde89f56e61e1c8b4c2caaa459cfdc8e86add Mon Sep 17 00:00:00 2001
From: liangping <18786721@qq.com>
Date: Thu, 8 Jun 2023 10:02:47 +0800
Subject: [PATCH] fix all build checks
---
index.html | 2 +-
package.json | 1 +
src/components/CardStatisticsVertical.vue | 1 +
src/components/PaginationBar.vue | 9 ++--
src/components/dynamic/UInt8Array.vue | 1 +
src/layouts/blank.vue | 2 +
src/layouts/components/DefaultLayout.vue | 17 +++++--
src/layouts/components/NavBarI18n.vue | 4 +-
src/layouts/types.d.ts | 58 +++++++++++++++++++++
src/libs/utils.ts | 61 ++---------------------
src/modules/[chain]/consensus/index.vue | 17 +++++--
src/modules/[chain]/indexStore.ts | 7 ++-
src/router/index.ts | 4 +-
src/stores/useBankStore.ts | 1 +
src/stores/useBlockchain.ts | 2 +-
src/stores/useFormatter.ts | 3 +-
src/stores/useWalletStore.ts | 8 +--
yarn.lock | 5 ++
18 files changed, 123 insertions(+), 80 deletions(-)
create mode 100644 src/layouts/types.d.ts
diff --git a/index.html b/index.html
index 60c4a6e7..61a6a5b1 100644
--- a/index.html
+++ b/index.html
@@ -4,7 +4,7 @@
-
Ping Dashboard
+ Ping Dashboard - Cosmos Blockchain Explorer And Web Wallet
diff --git a/package.json b/package.json
index 73838e94..c0c6ba6c 100644
--- a/package.json
+++ b/package.json
@@ -55,6 +55,7 @@
"@types/marked": "^4.0.8",
"@types/node": "^18.11.12",
"@types/numeral": "^2.0.2",
+ "@types/semver": "7.5.0",
"@vitejs/plugin-vue": "^4.0.0",
"@vue/tsconfig": "^0.1.3",
"npm-run-all": "^4.1.5",
diff --git a/src/components/CardStatisticsVertical.vue b/src/components/CardStatisticsVertical.vue
index 50a66408..5b5494fe 100644
--- a/src/components/CardStatisticsVertical.vue
+++ b/src/components/CardStatisticsVertical.vue
@@ -1,5 +1,6 @@
@@ -62,7 +73,7 @@ const showDiscord = window.location.host.search('ping.pub') > -1;
class="px-2"
>
@@ -183,7 +194,7 @@ const showDiscord = window.location.host.search('ping.pub') > -1;
{{ item?.heading }}
diff --git a/src/layouts/components/NavBarI18n.vue b/src/layouts/components/NavBarI18n.vue
index f52d50ac..02355e83 100644
--- a/src/layouts/components/NavBarI18n.vue
+++ b/src/layouts/components/NavBarI18n.vue
@@ -1,6 +1,8 @@