Created
August 28, 2021 17:07
-
-
Save douggrubba/eb5433023b93f6fda03998a810945a04 to your computer and use it in GitHub Desktop.
HomeScreen.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div class="flex flex-col"> | |
<highlights title="Last 30 Days" /> | |
<div class="flex flex-row"> | |
<activities title="Activities" /> | |
<appointments title="Upcoming Appointments" /> | |
</div> | |
<div class="flex flex-col p-12"> | |
<online-teammates title="Teammates Online" /> | |
</div> | |
</div> | |
</template> | |
<script> | |
import { mapActions } from 'vuex' | |
import Highlights from '../compound/Highlights.vue' | |
import Activities from '../compound/Activities.vue' | |
import Appointments from '../compound/Appointments.vue' | |
import OnlineTeammates from '../compound/OnlineTeammates.vue' | |
export default { | |
name: 'home-screen', | |
components: { Highlights, Activities, Appointments, OnlineTeammates }, | |
methods: { | |
...mapActions({ | |
setUserData: 'user/setUserData' | |
}) | |
}, | |
mounted() { | |
this.setUserData({ | |
name: 'Tom Cook' | |
}) | |
} | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment