Client - init workout chart (WIP)

This commit is contained in:
Sam
2021-09-26 08:59:17 +02:00
parent 146899c269
commit c50e74143e
19 changed files with 467 additions and 37 deletions

View File

@ -14,6 +14,11 @@
:sports="sports"
:authUser="authUser"
/>
<WorkoutChart
v-if="workout.chartData.length > 0"
:workout="workout"
:authUser="authUser"
/>
</div>
<div v-else>
<NotFound target="WORKOUT" />
@ -35,6 +40,7 @@
import Loader from '@/components/Common/Loader.vue'
import NotFound from '@/components/Common/NotFound.vue'
import WorkoutChart from '@/components/Workout/WorkoutChart/index.vue'
import WorkoutDetail from '@/components/Workout/WorkoutDetail/index.vue'
import { SPORTS_STORE, USER_STORE, WORKOUTS_STORE } from '@/store/constants'
import { IAuthUserProfile } from '@/types/user'
@ -46,6 +52,7 @@
components: {
Loader,
NotFound,
WorkoutChart,
WorkoutDetail,
},
setup() {
@ -78,6 +85,7 @@
@import '~@/scss/base';
#workout {
display: flex;
margin-bottom: 45px;
.container {
width: 100%;
padding: 0;