<template>
  <q-page class="row q-pa-md q-gutter-md column">
    <q-card v-for="(workout, index) in history" :key="index">
      <q-card-section>
        {{ workout.type }}
        {{ workout.total_time }} minutes
        {{ workout.distance }} miles
        {{ workout.calories }} calories
      </q-card-section>
    </q-card>
  </q-page>
</template>

<script>
import { defineComponent, ref } from 'vue'
import {
} from '../api.js'

export default defineComponent({
  name: 'WorkoutPage',
  setup(){
    let history = ref([
      {
        "created": Date.now(),
        "type": "stationary bike",
        "total_time": 29,
        "distance": 8.0,
        "calories": 270,
      },
    ])
    return {
      history
    }
  }
})
</script>
