Client - minor refactor
This commit is contained in:
parent
262f01a055
commit
03241cfe83
@ -27,11 +27,11 @@
|
|||||||
import { ComputedRef, PropType, defineComponent, computed } from 'vue'
|
import { ComputedRef, PropType, defineComponent, computed } from 'vue'
|
||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
|
|
||||||
import UserStatCard from '@/components/Dashboard/UserStatCard.vue'
|
import UserStatCard from '@/components/Dashboard/UserStartsCards/UserStatCard.vue'
|
||||||
import { IAuthUserProfile } from '@/types/user'
|
import { IAuthUserProfile } from '@/types/user'
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: 'UserStats',
|
name: 'UserStatsCards',
|
||||||
components: {
|
components: {
|
||||||
UserStatCard,
|
UserStatCard,
|
||||||
},
|
},
|
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div id="dashboard" v-if="authUser.username">
|
<div id="dashboard" v-if="authUser.username">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<UserStats :user="authUser" />
|
<UserStatsCards :user="authUser" />
|
||||||
</div>
|
</div>
|
||||||
<div class="container dashboard-container">
|
<div class="container dashboard-container">
|
||||||
<div class="left-container dashboard-sub-container">
|
<div class="left-container dashboard-sub-container">
|
||||||
@ -23,7 +23,7 @@
|
|||||||
import UserCalendar from '@/components/Dashboard/UserCalendar/index.vue'
|
import UserCalendar from '@/components/Dashboard/UserCalendar/index.vue'
|
||||||
import UserMonthStats from '@/components/Dashboard/UserMonthStats.vue'
|
import UserMonthStats from '@/components/Dashboard/UserMonthStats.vue'
|
||||||
import UserRecords from '@/components/Dashboard/UserRecords.vue'
|
import UserRecords from '@/components/Dashboard/UserRecords.vue'
|
||||||
import UserStats from '@/components/Dashboard/UserStats.vue'
|
import UserStatsCards from '@/components/Dashboard/UserStartsCards/index.vue'
|
||||||
import { USER_STORE } from '@/store/constants'
|
import { USER_STORE } from '@/store/constants'
|
||||||
import { IAuthUserProfile } from '@/types/user'
|
import { IAuthUserProfile } from '@/types/user'
|
||||||
import { useStore } from '@/use/useStore'
|
import { useStore } from '@/use/useStore'
|
||||||
@ -35,7 +35,7 @@
|
|||||||
UserCalendar,
|
UserCalendar,
|
||||||
UserMonthStats,
|
UserMonthStats,
|
||||||
UserRecords,
|
UserRecords,
|
||||||
UserStats,
|
UserStatsCards,
|
||||||
},
|
},
|
||||||
setup() {
|
setup() {
|
||||||
const store = useStore()
|
const store = useStore()
|
||||||
|
Loading…
Reference in New Issue
Block a user