From e6f32d6716facc7445a765033571d5e4581a9e80 Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Tue, 14 Feb 2023 09:58:28 +0800 Subject: [PATCH] add i18n for index, improve chain profile --- .../dashboard/src/components/ChainSummary.vue | 2 +- .../src/layouts/components/ChainProfile.vue | 2 +- .../src/layouts/components/DefaultLayout.vue | 3 ++- packages/dashboard/src/pages/index.vue | 6 +++--- .../dashboard/src/plugins/i18n/locales/cn.json | 5 +++++ .../dashboard/src/plugins/i18n/locales/en.json | 6 ++++++ packages/dashboard/src/stores/useBlockchain.ts | 16 +++++++++++++--- packages/dashboard/src/stores/useDashboard.ts | 4 ++-- 8 files changed, 33 insertions(+), 11 deletions(-) diff --git a/packages/dashboard/src/components/ChainSummary.vue b/packages/dashboard/src/components/ChainSummary.vue index 0b9c088a..46f9a512 100644 --- a/packages/dashboard/src/components/ChainSummary.vue +++ b/packages/dashboard/src/components/ChainSummary.vue @@ -47,7 +47,7 @@ const logoPath = computed(() => { activator="parent" location="top" > - Add to favorite + {{ $t('index.add_to_favorite') }} diff --git a/packages/dashboard/src/layouts/components/ChainProfile.vue b/packages/dashboard/src/layouts/components/ChainProfile.vue index 7299d4dd..e4cdfa3f 100644 --- a/packages/dashboard/src/layouts/components/ChainProfile.vue +++ b/packages/dashboard/src/layouts/components/ChainProfile.vue @@ -34,7 +34,7 @@ const chainStore = useBlockchain() - {{ i.provider }} + {{ i.provider }} {{ i.address }} diff --git a/packages/dashboard/src/layouts/components/DefaultLayout.vue b/packages/dashboard/src/layouts/components/DefaultLayout.vue index 80fbdc54..3925c1af 100644 --- a/packages/dashboard/src/layouts/components/DefaultLayout.vue +++ b/packages/dashboard/src/layouts/components/DefaultLayout.vue @@ -13,6 +13,7 @@ import { VerticalNavLayout } from '@layouts' import NavBarI18n from './NavBarI18n.vue' import NavSearchBar from './NavSearchBar.vue' import NavBarNotifications from './NavBarNotifications.vue' +import TheCustomizer from '@/plugins/vuetify/@core/components/TheCustomizer.vue' const { appRouteTransition, isLessThanOverlayNavBreakpoint, isVerticalNavCollapsed } = useThemeConfig() const { width: windowWidth } = useWindowSize() @@ -63,7 +64,7 @@ dashboard.initial() - + diff --git a/packages/dashboard/src/pages/index.vue b/packages/dashboard/src/pages/index.vue index d38a34cd..3ff74cab 100644 --- a/packages/dashboard/src/pages/index.vue +++ b/packages/dashboard/src/pages/index.vue @@ -20,7 +20,7 @@ const chains = computed(()=> {