|
|
|
@ -1,10 +1,14 @@
|
|
|
|
<script lang="ts">
|
|
|
|
<script setup>
|
|
|
|
|
|
|
|
const currentWorkingCategory = defineModel('currentWorkingCategory')
|
|
|
|
|
|
|
|
const currentWorkingInstrument = defineModel('currentWorkingInstrument')
|
|
|
|
|
|
|
|
const props = defineProps(['categories', 'instruments'])
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import axios from 'axios';
|
|
|
|
import axios from 'axios';
|
|
|
|
import CategoryChooser from './category_chooser.vue'
|
|
|
|
import CategoryChooser from './category_chooser.vue'
|
|
|
|
import { getHours, getMinutes, createTimeObj, getAccumulatedSeconds, formatSeconds } from '../libs/time.js'
|
|
|
|
import { getHours, getMinutes, createTimeObj, getAccumulatedSeconds, formatSeconds } from '../libs/time.js'
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
props: ['categories', 'currentWorkingCategory', 'instruments'],
|
|
|
|
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
running: false,
|
|
|
|
running: false,
|
|
|
|
@ -186,8 +190,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
<label>Practice Category</label>
|
|
|
|
<label>Practice Category</label>
|
|
|
|
<CategoryChooser
|
|
|
|
<CategoryChooser
|
|
|
|
@update="handleCategoryChange"
|
|
|
|
v-model:currentWorkingCategory="currentWorkingCategory"
|
|
|
|
:currentWorkingCategory="currentWorkingCategory"
|
|
|
|
v-model:currentWorkingInstrument="currentWorkingInstrument"
|
|
|
|
:instruments="instruments"
|
|
|
|
:instruments="instruments"
|
|
|
|
:categories="categories" />
|
|
|
|
:categories="categories" />
|
|
|
|
<input type="Submit"/>
|
|
|
|
<input type="Submit"/>
|
|
|
|
|