From 22af59eede1ba071159120ed3135c3adb00178c8 Mon Sep 17 00:00:00 2001 From: Dominik Korsa Date: Mon, 25 Feb 2019 21:36:47 +0100 Subject: [PATCH] Add dev commit links --- src/components/HomeDownloadDev.vue | 8 ++++++-- src/components/HomeDownloadDevItem.vue | 16 +++++++++++++++- src/components/HomeDownloadDevMaster.vue | 16 +++++++++++++++- 3 files changed, 36 insertions(+), 4 deletions(-) diff --git a/src/components/HomeDownloadDev.vue b/src/components/HomeDownloadDev.vue index e608e15..b354822 100644 --- a/src/components/HomeDownloadDev.vue +++ b/src/components/HomeDownloadDev.vue @@ -4,7 +4,8 @@ v-if="master" :released="master.released" :download="master.download" - :build="master.build" /> + :build="master.build" + :commit-url="master.commitUrl" /> + :build="version.build" + :commit="version.commit" />
Loading
@@ -39,6 +41,7 @@ export default { released: build.body.finished_at, download: build.body.public_install_page_url, build: build.body.build_number, + commitUrl: build.body.commit_view_url, }; }, async versions() { @@ -55,6 +58,7 @@ export default { build: build.body.build_number, avatar: release.user.avatar_url, user: release.user.login, + commit: release.head.sha, id: release.id, }; }))).sort((a, b) => { diff --git a/src/components/HomeDownloadDevItem.vue b/src/components/HomeDownloadDevItem.vue index 57ba14f..afa0421 100644 --- a/src/components/HomeDownloadDevItem.vue +++ b/src/components/HomeDownloadDevItem.vue @@ -8,7 +8,13 @@
{{ build }} - {{ releasedRelativeString }} + + {{ releasedRelativeString }} + {{ user }}
@@ -55,6 +61,9 @@ export default { user: { type: String, }, + commit: { + type: String, + }, }, computed: { releasedString() { @@ -133,6 +142,11 @@ export default { .released { margin-left: 4px; color: #0006; + text-decoration: none; + + &:hover { + text-decoration: underline; + } } .avatar { diff --git a/src/components/HomeDownloadDevMaster.vue b/src/components/HomeDownloadDevMaster.vue index a8dc847..07ffbba 100644 --- a/src/components/HomeDownloadDevMaster.vue +++ b/src/components/HomeDownloadDevMaster.vue @@ -3,7 +3,13 @@
Najnowsza stabilna wersja DEV
{{ build }} - {{ releasedRelativeString }} + + {{ releasedRelativeString }} +