diff --git a/src/components/AccountCard.vue b/src/components/AccountCard.vue index 6d3057b2..bf0c8082 100644 --- a/src/components/AccountCard.vue +++ b/src/components/AccountCard.vue @@ -15,6 +15,7 @@ import { useRouter } from 'vue-router'; import { TableIndexType } from 'src/types/Api'; import { API, UInt64 } from '@greymass/eosio'; import { formatCurrency } from 'src/utils/string-utils'; +import ConfigManager from 'src/config/ConfigManager'; const chain = getChain(); export default defineComponent({ @@ -37,6 +38,8 @@ export default defineComponent({ const router = useRouter(); const store = useAntelopeStore(); + const accountPageSettings = computed(() => ConfigManager.get().getCurrentChain().getUiCustomization().accountPageSettings); + const createTime = ref('2019-01-01T00:00:00.000'); const createTransaction = ref(''); const creatingAccount = ref(''); @@ -369,6 +372,7 @@ export default defineComponent({ ); return { + accountPageSettings, MICRO_UNIT, KILO_UNIT, stakedCPU, @@ -467,6 +471,7 @@ export default defineComponent({
-
+
RAM USED: {{ ram_used }} kb
-
+
-
+
-
+
LIQUID (Telos native) {{ formatAsset(liquidNative) }} - + REX staked (includes savings) {{ formatAsset(rexStaked) }} - + REX liquid deposits {{ formatAsset(rexDeposits) }} - + STAKED for CPU {{ formatAsset(stakedCPU) }} - + STAKED for NET {{ formatAsset(stakedNET) }} - + REFUNDING from staking {{ formatAsset(stakedRefund) }} - + DELEGATED to others {{ formatAsset(delegatedToOthers) }} - + DELEGATED by others {{ formatAsset(delegatedByOthers) }} diff --git a/src/components/Header.vue b/src/components/Header.vue index 507d2a00..6ebae832 100644 --- a/src/components/Header.vue +++ b/src/components/Header.vue @@ -7,6 +7,7 @@ import ChainsMenu from 'components/ChainsMenu.vue'; import ConfigManager, { getChain } from 'src/config/ConfigManager'; import { useStore } from 'src/store'; import { useRouteDataNetwork } from 'src/router'; +import { HeaderSettings } from 'src/types/UiCustomization'; export default defineComponent({ name: 'AppHeader', @@ -18,7 +19,7 @@ export default defineComponent({ setup() { const $q = useQuasar(); const store = useStore(); - const headerSettings = computed(() => ConfigManager.get().getCurrentChain().getUiCustomization().headerSettings); + const headerSettings = computed(() : HeaderSettings => ConfigManager.get().getCurrentChain().getUiCustomization().headerSettings); const account = computed(() => store.state.account.accountName); const isLarge = computed((): boolean => $q.screen.gt.sm); diff --git a/src/config/BaseChain.ts b/src/config/BaseChain.ts index 658cdb00..fe34f1a2 100644 --- a/src/config/BaseChain.ts +++ b/src/config/BaseChain.ts @@ -100,13 +100,7 @@ export default abstract class BaseChain implements Chain { abstract getTheme(): Theme; getUiCustomization(): UiCustomization { - return { - footerLinks: [ - { label: 'LEGAL', url: 'https://telos.net/legal' }, - { label: 'PRIVACY', url: 'https://telos.net/privacy-policy' }, - { label: 'REPOSITORY', url: 'https://github.com/telosnetwork/open-block-explorer' }, - ], - }; + return baseUiConfiguration; } abstract getFiltersSupported(prop: string): boolean; diff --git a/src/pages/Account.vue b/src/pages/Account.vue index 05f27d88..89d1ce86 100644 --- a/src/pages/Account.vue +++ b/src/pages/Account.vue @@ -9,6 +9,7 @@ import ContractTabs from 'components/contract/ContractTabs.vue'; import { api } from 'src/api'; import { useRoute, useRouter } from 'vue-router'; import { useStore } from 'src/store'; +import ConfigManager from 'src/config/ConfigManager'; export default defineComponent({ name: 'AccountPage', @@ -24,6 +25,8 @@ export default defineComponent({ const store = useStore(); const route = useRoute(); const router = useRouter(); + const accountPageSettings = computed(() => ConfigManager.get().getCurrentChain().getUiCustomization().accountPageSettings); + const tab = ref((route.query['tab'] as string) || 'transactions'); const account = computed(() => (route.params.account as string) || ''); const abi = computed(() => store.state.account.abi.abi); @@ -47,6 +50,7 @@ export default defineComponent({ account, abi, tokenList, + accountPageSettings, }; }, }); @@ -59,27 +63,27 @@ export default defineComponent({
- + - + - + - + - +