souvenir/src/App.vue

37 lines
683 B
Vue
Raw Normal View History

2019-03-08 22:17:59 +00:00
<template>
2019-03-09 02:04:31 +00:00
<div class="layout">
2019-03-10 01:28:07 +00:00
<welcome-screen v-if="!mediaStream && !downloading.status"/>
<capture-screen v-if="mediaStream && !downloading.status"/>
2019-03-09 23:55:37 +00:00
<download-screen v-if="downloading.status"/>
2019-03-08 22:17:59 +00:00
</div>
</template>
<script>
import welcomeScreen from '/views/welcome'
import captureScreen from '/views/capture'
import downloadScreen from '/views/download'
2019-03-09 21:54:07 +00:00
import { mapState } from 'vuex'
2019-03-08 22:17:59 +00:00
export default {
2019-03-09 02:04:31 +00:00
name: 'souvenir',
components: {
2019-03-09 21:54:07 +00:00
welcomeScreen,
2019-03-09 23:55:37 +00:00
captureScreen,
downloadScreen
2019-03-09 21:54:07 +00:00
},
computed: {
...mapState([
2019-03-10 01:28:07 +00:00
'mediaStream',
2019-03-09 23:55:37 +00:00
'downloading'
2019-03-09 21:54:07 +00:00
])
2019-03-09 02:04:31 +00:00
}
2019-03-08 22:17:59 +00:00
}
</script>
<style lang="css">
@import '/assets/css/style.css';
</style>