From 56ff86fbeda3fa3c5f1bd21fb65849773d24caf4 Mon Sep 17 00:00:00 2001 From: Pranav Date: Thu, 6 Nov 2025 19:28:07 +0530 Subject: [PATCH] Set the mint module as disabled by default --- src/layouts/components/Sponsors.vue | 2 +- src/modules/[chain]/indexStore.ts | 36 ++++++++++++----------------- src/plugins/i18n/locales/de.json | 2 +- src/plugins/i18n/locales/id.json | 2 +- src/plugins/i18n/locales/ja.json | 2 +- src/plugins/i18n/locales/ko.json | 2 +- src/plugins/i18n/locales/zh.json | 2 +- src/stores/useMintStore.ts | 4 ++-- 8 files changed, 23 insertions(+), 29 deletions(-) diff --git a/src/layouts/components/Sponsors.vue b/src/layouts/components/Sponsors.vue index 2dbe163a..a3cb37e1 100644 --- a/src/layouts/components/Sponsors.vue +++ b/src/layouts/components/Sponsors.vue @@ -6,7 +6,7 @@
- Laconic Network + Zenith Network
diff --git a/src/modules/[chain]/indexStore.ts b/src/modules/[chain]/indexStore.ts index 50162967..c2cd39c5 100644 --- a/src/modules/[chain]/indexStore.ts +++ b/src/modules/[chain]/indexStore.ts @@ -152,7 +152,7 @@ export const useIndexModule = defineStore('module-index', { const mintStore = useMintStore(); const formatter = useFormatter(); - const statsArray = [ + return [ { title: 'Height', color: 'primary', @@ -185,31 +185,25 @@ export const useIndexModule = defineStore('module-index', { }), change: 0, }, - ]; - - // Only show Inflation if mint module is enabled - if (mintStore.mintModuleEnabled) { - statsArray.push({ + // Only show Inflation if mint module is enabled + ...(mintStore.mintModuleEnabled ? [{ title: 'Inflation', color: 'success', icon: 'mdi-chart-multiple', stats: formatter.formatDecimalToPercent(mintStore.inflation), change: 0, - }); - } - - statsArray.push({ - title: 'Community Pool', - color: 'primary', - icon: 'mdi-bank', - stats: formatter.formatTokens( - // @ts-ignore - this.communityPool?.filter((x: Coin) => x.denom === staking.params.bond_denom) - ), - change: 0, - }); - - return statsArray; + }] : []), + { + title: 'Community Pool', + color: 'primary', + icon: 'mdi-bank', + stats: formatter.formatTokens( + // @ts-ignore + this.communityPool?.filter((x: Coin) => x.denom === staking.params.bond_denom) + ), + change: 0, + }, + ]; }, coingeckoId() { diff --git a/src/plugins/i18n/locales/de.json b/src/plugins/i18n/locales/de.json index 32fa894e..d6042035 100644 --- a/src/plugins/i18n/locales/de.json +++ b/src/plugins/i18n/locales/de.json @@ -23,7 +23,7 @@ "links": "Links" }, "pages": { - "title": "Ping Dashboard", + "title": "Zenith Dashboard", "title_all": "404", "tag": "Beta", "tag_all": "Seite nicht gefunden", diff --git a/src/plugins/i18n/locales/id.json b/src/plugins/i18n/locales/id.json index 261eadcd..07efe4e3 100644 --- a/src/plugins/i18n/locales/id.json +++ b/src/plugins/i18n/locales/id.json @@ -21,7 +21,7 @@ "links": "Tautan" }, "pages": { - "title": "Laconic Explorer", + "title": "Zenith Explorer", "title_all": "404", "tag": "Beta", "tag_all": "Halaman Tidak Ditemukan", diff --git a/src/plugins/i18n/locales/ja.json b/src/plugins/i18n/locales/ja.json index c0ac1c8a..d3d46f24 100644 --- a/src/plugins/i18n/locales/ja.json +++ b/src/plugins/i18n/locales/ja.json @@ -23,7 +23,7 @@ "links": "リンク" }, "pages": { - "title": "Ping ダッシュボード", + "title": "Zenith ダッシュボード", "title_all": "404", "tag": "ベータ", "tag_all": "ページが見つかりません", diff --git a/src/plugins/i18n/locales/ko.json b/src/plugins/i18n/locales/ko.json index 8fe5b77b..02aee007 100644 --- a/src/plugins/i18n/locales/ko.json +++ b/src/plugins/i18n/locales/ko.json @@ -23,7 +23,7 @@ "links": "링크" }, "pages": { - "title": "핑 대시보드", + "title": "제니스 대시보드", "title_all": "404", "tag": "베타", "tag_all": "페이지를 찾을 수 없습니다", diff --git a/src/plugins/i18n/locales/zh.json b/src/plugins/i18n/locales/zh.json index 7627ceac..41069407 100644 --- a/src/plugins/i18n/locales/zh.json +++ b/src/plugins/i18n/locales/zh.json @@ -22,7 +22,7 @@ "links": "链接" }, "pages": { - "title": "Laconic Explorer", + "title": "Zenith Explorer", "slogan": "Ping Dashboard 是一个区块链浏览器,也是一个网页钱包,还有更多 ... 🛠", "description": "Cosmos Ecosystem Blockchains 🚀", "search_placeholder": "搜索区块链", diff --git a/src/stores/useMintStore.ts b/src/stores/useMintStore.ts index e2f86c23..cd8a720e 100644 --- a/src/stores/useMintStore.ts +++ b/src/stores/useMintStore.ts @@ -5,7 +5,7 @@ export const useMintStore = defineStore('mintStore', { state: () => { return { inflation: '0', - mintModuleEnabled: true, + mintModuleEnabled: false, }; }, getters: { @@ -31,7 +31,7 @@ export const useMintStore = defineStore('mintStore', { // Module not enabled this.mintModuleEnabled = false; } else { - console.log(e); + console.error('Mint module error:', errorMessage); } } },