From 08febdd980c06d752d410be1fa982e5507279f6d Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Tue, 23 Mar 2021 15:14:32 +0100 Subject: feat: commit details page --- src/components/Commit.vue | 7 ++++-- src/router.js | 7 ++++++ src/sass/_commit.sass | 2 ++ src/store.js | 22 +++++++++++++++++++ src/views/Commit.vue | 54 +++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 90 insertions(+), 2 deletions(-) create mode 100644 src/views/Commit.vue diff --git a/src/components/Commit.vue b/src/components/Commit.vue index 63e1764..a60f40e 100644 --- a/src/components/Commit.vue +++ b/src/components/Commit.vue @@ -32,10 +32,13 @@ | <{{data.committer_email}}> .text - p + p(v-if="!expand") | {{ first_line(data.text) }} span.middot ยท span.date {{ data.date | moment("ddd, D MMM YYYY HH:mm:ss ZZ") }} + p(v-else) + pre {{ data.text }} + span.date {{ data.date | moment("ddd, D MMM YYYY HH:mm:ss ZZ") }} -- cgit v1.2.3-18-g5258