Client - minor refactor

This commit is contained in:
Sam
2021-09-25 11:28:40 +02:00
parent 060c5d42d9
commit 146899c269
12 changed files with 19 additions and 21 deletions

View File

@ -17,7 +17,8 @@
import { BarChart, useBarChart } from 'vue-chart-3'
import { useI18n } from 'vue-i18n'
import { IStatisticsChartDataset, TDatasetKeys } from '@/types/statistics'
import { IChartDataset } from '@/types/chart'
import { TDatasetKeys } from '@/types/statistics'
import { formatTooltipValue } from '@/utils/tooltip'
Chart.register(...registerables)
@ -30,7 +31,7 @@
},
props: {
datasets: {
type: Object as PropType<IStatisticsChartDataset[]>,
type: Object as PropType<IChartDataset[]>,
required: true,
},
labels: {

View File

@ -27,7 +27,7 @@
import { ComputedRef, PropType, defineComponent, computed } from 'vue'
import { useI18n } from 'vue-i18n'
import UserStatCard from '@/components/Dashboard/UserStartsCards/UserStatCard.vue'
import UserStatCard from '@/components/Dashboard/UserStatsCards/UserStatCard.vue'
import { IAuthUserProfile } from '@/types/user'
export default defineComponent({