diff options
author | Santo Cariotti <santo@dcariotti.me> | 2021-03-19 20:27:26 +0100 |
---|---|---|
committer | Santo Cariotti <santo@dcariotti.me> | 2021-03-19 20:27:26 +0100 |
commit | 5c29f010cf52f3ba5ee597a50df97219d8dc04a7 (patch) | |
tree | 447f697a5cafda82e57ffc7b98c5360c48c9076b /src/views | |
parent | a70a62d2f7188a36a08314ac2151dec7152fffa7 (diff) |
feat: commits list
Diffstat (limited to 'src/views')
-rw-r--r-- | src/views/Home.vue | 17 |
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; }, } |