mirror of
https://github.com/GuerillaStudio/souvenir.git
synced 2025-01-21 07:30:21 +00:00
36 lines
683 B
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>
|