|
|
|
@ -7,6 +7,13 @@
|
|
|
|
time_left:0
|
|
|
|
time_left:0
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
methods: {
|
|
|
|
|
|
|
|
refresh(){
|
|
|
|
|
|
|
|
axios.get(import.meta.env.VITE_PRACTICE_TRACKER_API_URL+'mins-left-to-practice-today').then((response)=>{
|
|
|
|
|
|
|
|
this.time_left= response.data.time_left;
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
mounted() {
|
|
|
|
mounted() {
|
|
|
|
axios.get(import.meta.env.VITE_PRACTICE_TRACKER_API_URL+'mins-left-to-practice-today').then((response)=>{
|
|
|
|
axios.get(import.meta.env.VITE_PRACTICE_TRACKER_API_URL+'mins-left-to-practice-today').then((response)=>{
|
|
|
|
this.time_left= response.data.time_left;
|
|
|
|
this.time_left= response.data.time_left;
|
|
|
|
@ -16,7 +23,7 @@
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
|
<h2>Mins Left to Practice Today</h2>
|
|
|
|
<h2 @click="refresh">Mins Left to Practice Today</h2>
|
|
|
|
{{time_left}}
|
|
|
|
{{time_left}}
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
|