blob: 8a7f59ffcb6aeaf88637b033cd376ec6ee6cfc64 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
<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>
|