souvenir/src/App.vue

36 lines
683 B
Vue

<template>
<div class="layout">
<welcome-screen v-if="!mediaStream && !downloading.status"/>
<capture-screen v-if="mediaStream && !downloading.status"/>
<download-screen v-if="downloading.status"/>
</div>
</template>
<script>
import welcomeScreen from '/views/welcome'
import captureScreen from '/views/capture'
import downloadScreen from '/views/download'
import { mapState } from 'vuex'
export default {
name: 'souvenir',
components: {
welcomeScreen,
captureScreen,
downloadScreen
},
computed: {
...mapState([
'mediaStream',
'downloading'
])
}
}
</script>
<style lang="css">
@import '/assets/css/style.css';
</style>