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 @@ + + + Widget Test + + + +
+
+ +
+
+ + +
+
+ + \ No newline at end of file diff --git a/src/layouts/components/DefaultLayout.vue b/src/layouts/components/DefaultLayout.vue index 5476038c..cc84ccf9 100644 --- a/src/layouts/components/DefaultLayout.vue +++ b/src/layouts/components/DefaultLayout.vue @@ -13,6 +13,7 @@ import { useDashboard } from '@/stores/useDashboard'; import NavBarI18n from './NavBarI18n.vue'; import NavBarWallet from './NavBarWallet.vue'; import { useBlockchain } from '@/stores'; +import { computed } from 'vue'; const { appRouteTransition } = useThemeConfig(); @@ -34,6 +35,7 @@ const changeOpen = (index: Number) => { sidebarOpen.value = !sidebarOpen.value; } }; +const showDiscord = window.location.host.search("ping.pub") > -1