Files
stream-capture/src/stores/analysis.ts
2025-12-02 10:29:39 -04:00

31 lines
719 B
TypeScript

// filepath: src/stores/analysis.ts
import { defineStore } from 'pinia'
import { ref } from 'vue'
export const useAnalysisStore = defineStore('analysis', () => {
const url = ref('')
const loading = ref(false)
const error = ref('')
const metadata = ref<any>(null)
// New state for mix detection
const isMix = ref(false)
const scanMix = ref(false)
const options = ref({
is_audio_only: false,
quality: 'best',
output_path: ''
})
function reset() {
url.value = ''
loading.value = false
error.value = ''
metadata.value = null
isMix.value = false
scanMix.value = false
}
return { url, loading, error, metadata, options, isMix, scanMix, reset }
})