summaryrefslogtreecommitdiff
path: root/src/views
diff options
context:
space:
mode:
Diffstat (limited to 'src/views')
-rw-r--r--src/views/Home.vue17
1 files changed, 14 insertions, 3 deletions
diff --git a/src/views/Home.vue b/src/views/Home.vue
index b5fbda0..c1d9420 100644
--- a/src/views/Home.vue
+++ b/src/views/Home.vue
@@ -2,26 +2,37 @@
main
header-blue
b-container
- h2 List of commits
+ b-row
+ b-col(md="8" sm="12")
+ h2 List of commits
+ section#commits
+ commit-card(
+ v-for="i in commits" :key="i.hash" :data="i"
+ :author="emails[i.author_email]"
+ :committer="emails[i.committer_email]"
+ )
+ b-col
</template>
<script>
import HeaderBlue from '@/components/HeaderBlue';
+import Commit from '@/components/Commit';
export default {
name: "Home",
components: {
'header-blue': HeaderBlue,
+ 'commit-card': Commit,
},
mounted() {
this.$store.dispatch('get_commits');
this.$store.dispatch('get_emails');
},
computed: {
- commits: () => {
+ commits: function() {
return this.$store.getters.commits;
},
- emails: () => {
+ emails: function() {
return this.$store.getters.emails;
},
}