summaryrefslogtreecommitdiff
path: root/src/views
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2021-03-19 20:27:26 +0100
committerSanto Cariotti <santo@dcariotti.me>2021-03-19 20:27:26 +0100
commit5c29f010cf52f3ba5ee597a50df97219d8dc04a7 (patch)
tree447f697a5cafda82e57ffc7b98c5360c48c9076b /src/views
parenta70a62d2f7188a36a08314ac2151dec7152fffa7 (diff)
feat: commits list
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;
},
}