|
|
|
@ -7,15 +7,18 @@
|
|
|
|
import Timer from './components/timer.vue'
|
|
|
|
import Timer from './components/timer.vue'
|
|
|
|
import Status from './components/status.vue'
|
|
|
|
import Status from './components/status.vue'
|
|
|
|
|
|
|
|
|
|
|
|
import { currentWorkingCategory, currentWorkingInstrument } from './libs/state.js'
|
|
|
|
import {
|
|
|
|
|
|
|
|
currentWorkingCategory,
|
|
|
|
|
|
|
|
currentWorkingInstrument,
|
|
|
|
|
|
|
|
instruments,
|
|
|
|
|
|
|
|
categories
|
|
|
|
|
|
|
|
} from './libs/state.js'
|
|
|
|
|
|
|
|
|
|
|
|
const timerRunning = ref(false)
|
|
|
|
const timerRunning = ref(false)
|
|
|
|
const micThresholdExceeded = ref(false)
|
|
|
|
const micThresholdExceeded = ref(false)
|
|
|
|
const summaryRef = ref(null)
|
|
|
|
const summaryRef = ref(null)
|
|
|
|
const statusRef = ref(null)
|
|
|
|
const statusRef = ref(null)
|
|
|
|
const showCategoryRef = ref(null)
|
|
|
|
const showCategoryRef = ref(null)
|
|
|
|
const instruments = ref([])
|
|
|
|
|
|
|
|
const categories = ref([])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const refreshPage = (session) => {
|
|
|
|
const refreshPage = (session) => {
|
|
|
|
summaryRef.value.loadData()
|
|
|
|
summaryRef.value.loadData()
|
|
|
|
@ -64,18 +67,12 @@
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</section>
|
|
|
|
</section>
|
|
|
|
<section id="summary">
|
|
|
|
<section id="summary">
|
|
|
|
<Summary
|
|
|
|
<Summary ref="summaryRef" />
|
|
|
|
ref="summaryRef"
|
|
|
|
|
|
|
|
:instruments="instruments"
|
|
|
|
|
|
|
|
:categories="categories"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</section>
|
|
|
|
</section>
|
|
|
|
<section id="category">
|
|
|
|
<section id="category">
|
|
|
|
<ShowCategory
|
|
|
|
<ShowCategory
|
|
|
|
v-if="currentWorkingInstrument"
|
|
|
|
v-if="currentWorkingInstrument"
|
|
|
|
ref="showCategoryRef"
|
|
|
|
ref="showCategoryRef"
|
|
|
|
:instruments="instruments"
|
|
|
|
|
|
|
|
:categories="categories"
|
|
|
|
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</section>
|
|
|
|
</section>
|
|
|
|
<section id="songs">
|
|
|
|
<section id="songs">
|
|
|
|
|