Skip to content

Instantly share code, notes, and snippets.

@douggrubba
Created August 28, 2021 17:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save douggrubba/eb5433023b93f6fda03998a810945a04 to your computer and use it in GitHub Desktop.
Save douggrubba/eb5433023b93f6fda03998a810945a04 to your computer and use it in GitHub Desktop.
HomeScreen.vue
<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