Skip to content

Commit

Permalink
fixes after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
janmichek committed Feb 5, 2025
1 parent 5bfe022 commit c7edd5d
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 13 deletions.
5 changes: 2 additions & 3 deletions src/components/AccountsChartPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,19 @@
:interval-by="selectedScope.intervalBy"/>

<chart-controls
v-model="selectedScope"
v-model="range"
class="accounts-chart-panel__controls u-hidden-desktop"/>
</app-panel>
</template>

<script setup>
import { chartsHints } from '@/utils/hints/chartsHints'
import { CHART_INTERVALS_PRESETS_OPTIONS } from '@/utils/constants'
import { CHART_SCOPE_PRESETS_OPTIONS } from '@/utils/constants'
const { accountsStatistics } = storeToRefs(useChartsStore())
const { fetchAccountsStatistics } = useChartsStore()
const selectedScope = ref(CHART_SCOPE_PRESETS_OPTIONS[4])
await useAsyncData(async() => {
await loadAccountStatistics()
return true
Expand Down
5 changes: 2 additions & 3 deletions src/components/ContractsChartPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
:interval-by="selectedScope.intervalBy"/>

<chart-controls
v-model="selectedScope"
v-model="range"
class="contracts-chart-panel__controls u-hidden-desktop"/>
</app-panel>
</template>
Expand All @@ -30,13 +30,12 @@ const props = defineProps({
scope: {
required: true,
type: Object,
default: CHART_INTERVALS_PRESETS_OPTIONS[4],
default: CHART_SCOPE_PRESETS_OPTIONS[4],
},
})
// todo is props needed?
// todo directly bind props
const selectedScope = ref(props.scope)
await useAsyncData(async() => {
await loadContractsStatistics()
return true
Expand Down
2 changes: 1 addition & 1 deletion src/components/HashrateChartPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

<chart-controls
v-model="selectedScope"
class="hashrate-chart-panel__controls u-hidden-desktop"/>
class="hashrate-chart-panel__controls u-hidden-desktop"/>

Check failure on line 18 in src/components/HashrateChartPanel.vue

View workflow job for this annotation

GitHub Actions / lint

Expected indentation of 6 spaces but found 4 spaces
</app-panel>
</template>

Expand Down
5 changes: 2 additions & 3 deletions src/components/TransactionsChartPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
</template>

<script setup>
import { CHART_INTERVALS_PRESETS_OPTIONS } from '@/utils/constants'
import { CHART_SCOPE_PRESETS_OPTIONS } from '@/utils/constants'
const { transactionsStatistics } = storeToRefs(useChartsStore())
const { fetchTransactionsStatistics } = useChartsStore()
Expand All @@ -46,13 +46,12 @@ const props = defineProps({
scope: {
required: true,
type: Object,
default: CHART_INTERVALS_PRESETS_OPTIONS[4],
default: CHART_SCOPE_PRESETS_OPTIONS[4],
},
})
const selectedScope = ref(props.scope)
const selectedTxType = ref(TX_TYPES_OPTIONS[0])
await useAsyncData(async() => {
await loadTransactionStatistics()
return true
Expand Down
2 changes: 1 addition & 1 deletion src/pages/accounts/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<accounts-statistics class="accounts-panel"/>
<accounts-chart-panel
class="accounts-panel"
:preselected-range="CHART_INTERVALS_PRESETS_OPTIONS[0]"/>
:preselected-range="CHART_SCOPE_PRESETS_OPTIONS[0]"/>
<top-accounts-panel v-if="!isLoading"/>
<loader-panel v-else/>
</template>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/contracts/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<template v-if="!isLoading">
<contracts-chart-panel
class="contracts-panel"
:scope="CHART_SCOPE_PRESETS_OPTIONS[0]"/>
:preselected-range="CHART_SCOPE_PRESETS_OPTIONS[0]"/>
<contracts-panel class="contracts-panel"/>
</template>
<loader-panel v-else/>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/transactions/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<transactions-statistics class="transactions-panel"/>
<transactions-chart-panel
:has-select="false"
:scope="CHART_SCOPE_PRESETS_OPTIONS[0]"
:preselected-range="CHART_SCOPE_PRESETS_OPTIONS[0]"
class="transactions-panel"/>
<transactions-panel
v-if="!isLoading"
Expand Down

0 comments on commit c7edd5d

Please sign in to comment.