From cfa8d0704568338e1032a015c9ad769555065611 Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Sun, 12 Feb 2023 20:09:10 +0800 Subject: [PATCH] finish home page --- packages/dashboard/package.json | 1 + .../dashboard/src/components/ChainSummary.vue | 57 ++++++ .../src/layouts/components/DefaultLayout.vue | 11 +- packages/dashboard/src/main.ts | 8 +- .../dashboard/src/modules/[chain]/index.vue | 3 + packages/dashboard/src/pages/index.vue | 54 +++-- .../@core/scss/template/_variables.scss | 7 +- .../@layouts/components/VerticalNav.vue | 2 + .../@layouts/components/VerticalNavGroup.vue | 8 +- .../src/plugins/vuetify/@layouts/utils.ts | 7 +- packages/dashboard/src/router/index.ts | 13 ++ packages/dashboard/src/stores/option.ts | 0 .../dashboard/src/stores/useBlockchain.ts | 12 ++ packages/dashboard/src/stores/useDashboard.ts | 191 ++++++++++++++++++ packages/dashboard/themeConfig.ts | 4 +- yarn.lock | 27 +++ 16 files changed, 368 insertions(+), 37 deletions(-) create mode 100644 packages/dashboard/src/components/ChainSummary.vue create mode 100644 packages/dashboard/src/modules/[chain]/index.vue create mode 100644 packages/dashboard/src/stores/option.ts create mode 100644 packages/dashboard/src/stores/useBlockchain.ts create mode 100644 packages/dashboard/src/stores/useDashboard.ts diff --git a/packages/dashboard/package.json b/packages/dashboard/package.json index 4dd1b7e8..007a405a 100644 --- a/packages/dashboard/package.json +++ b/packages/dashboard/package.json @@ -15,6 +15,7 @@ "@casl/vue": "^2.2.1", "@floating-ui/dom": "^1.2.0", "@iconify/vue": "^4.1.0", + "@ping-pub/chain-registry-client": "^0.0.25", "@vitejs/plugin-vue-jsx": "^3.0.0", "@vueuse/core": "^9.12.0", "@vueuse/math": "^9.12.0", diff --git a/packages/dashboard/src/components/ChainSummary.vue b/packages/dashboard/src/components/ChainSummary.vue new file mode 100644 index 00000000..0b9c088a --- /dev/null +++ b/packages/dashboard/src/components/ChainSummary.vue @@ -0,0 +1,57 @@ + + \ No newline at end of file diff --git a/packages/dashboard/src/layouts/components/DefaultLayout.vue b/packages/dashboard/src/layouts/components/DefaultLayout.vue index 8b7e4557..5f41012f 100644 --- a/packages/dashboard/src/layouts/components/DefaultLayout.vue +++ b/packages/dashboard/src/layouts/components/DefaultLayout.vue @@ -1,5 +1,4 @@