mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-13 15:13:09 +02:00
25 lines
457 B
Vue
25 lines
457 B
Vue
<template>
|
|
<component :is="page"></component>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import Vue from 'vue';
|
|
import Home from './home.vue';
|
|
import Welcome from './welcome.vue';
|
|
import Deck from './deck/deck.vue';
|
|
|
|
export default Vue.extend({
|
|
components: {
|
|
Home,
|
|
Deck,
|
|
Welcome
|
|
},
|
|
|
|
computed: {
|
|
page(): string {
|
|
if (!this.$store.getters.isSignedIn) return 'welcome';
|
|
return this.$store.state.device.deckDefault ? 'deck' : 'home';
|
|
}
|
|
}
|
|
});
|
|
</script>
|