souvenir/src/App.vue

34 lines
671 B
Vue
Raw Normal View History

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