souvenir/src/App.vue

36 lines
743 B
Vue
Raw Normal View History

<template lang="html">
2019-03-09 02:04:31 +00:00
<div class="layout">
<welcome-screen v-if="!mediaStream && !downloading.status"></welcome-screen>
<capture-screen v-if="mediaStream && !downloading.status"></capture-screen>
<download-screen v-if="downloading.status"></download-screen>
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>