Add dev commit links
This commit is contained in:
parent
d00737fd57
commit
22af59eede
3 changed files with 36 additions and 4 deletions
|
@ -4,7 +4,8 @@
|
||||||
v-if="master"
|
v-if="master"
|
||||||
:released="master.released"
|
:released="master.released"
|
||||||
:download="master.download"
|
:download="master.download"
|
||||||
:build="master.build" />
|
:build="master.build"
|
||||||
|
:commit-url="master.commitUrl" />
|
||||||
<home-download-dev-item
|
<home-download-dev-item
|
||||||
v-for="version in versions"
|
v-for="version in versions"
|
||||||
:key="version.id"
|
:key="version.id"
|
||||||
|
@ -15,7 +16,8 @@
|
||||||
:download="version.download"
|
:download="version.download"
|
||||||
:avatar="version.avatar"
|
:avatar="version.avatar"
|
||||||
:user="version.user"
|
:user="version.user"
|
||||||
:build="version.build" />
|
:build="version.build"
|
||||||
|
:commit="version.commit" />
|
||||||
<div v-if="versions === null" class="loading">Loading</div>
|
<div v-if="versions === null" class="loading">Loading</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -39,6 +41,7 @@ export default {
|
||||||
released: build.body.finished_at,
|
released: build.body.finished_at,
|
||||||
download: build.body.public_install_page_url,
|
download: build.body.public_install_page_url,
|
||||||
build: build.body.build_number,
|
build: build.body.build_number,
|
||||||
|
commitUrl: build.body.commit_view_url,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
async versions() {
|
async versions() {
|
||||||
|
@ -55,6 +58,7 @@ export default {
|
||||||
build: build.body.build_number,
|
build: build.body.build_number,
|
||||||
avatar: release.user.avatar_url,
|
avatar: release.user.avatar_url,
|
||||||
user: release.user.login,
|
user: release.user.login,
|
||||||
|
commit: release.head.sha,
|
||||||
id: release.id,
|
id: release.id,
|
||||||
};
|
};
|
||||||
}))).sort((a, b) => {
|
}))).sort((a, b) => {
|
||||||
|
|
|
@ -8,7 +8,13 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="subheader">
|
<div class="subheader">
|
||||||
<span class="build-number">{{ build }}</span>
|
<span class="build-number">{{ build }}</span>
|
||||||
<span class="released" :title="releasedString">{{ releasedRelativeString }}</span>
|
<a
|
||||||
|
class="released"
|
||||||
|
:title="releasedString"
|
||||||
|
:href="`https://github.com/wulkanowy/wulkanowy/pull/${number}/commits/${commit}`"
|
||||||
|
target="_blank">
|
||||||
|
{{ releasedRelativeString }}
|
||||||
|
</a>
|
||||||
<img class="avatar" :src="avatar" />
|
<img class="avatar" :src="avatar" />
|
||||||
<span class="user">{{ user }}</span>
|
<span class="user">{{ user }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -55,6 +61,9 @@ export default {
|
||||||
user: {
|
user: {
|
||||||
type: String,
|
type: String,
|
||||||
},
|
},
|
||||||
|
commit: {
|
||||||
|
type: String,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
releasedString() {
|
releasedString() {
|
||||||
|
@ -133,6 +142,11 @@ export default {
|
||||||
.released {
|
.released {
|
||||||
margin-left: 4px;
|
margin-left: 4px;
|
||||||
color: #0006;
|
color: #0006;
|
||||||
|
text-decoration: none;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.avatar {
|
.avatar {
|
||||||
|
|
|
@ -3,7 +3,13 @@
|
||||||
<div class="title">Najnowsza stabilna wersja DEV</div>
|
<div class="title">Najnowsza stabilna wersja DEV</div>
|
||||||
<div class="subheader">
|
<div class="subheader">
|
||||||
<span class="build-number">{{ build }}</span>
|
<span class="build-number">{{ build }}</span>
|
||||||
<span class="released" :title="releasedString">{{ releasedRelativeString }}</span>
|
<a
|
||||||
|
class="released"
|
||||||
|
:title="releasedString"
|
||||||
|
:href="commitUrl"
|
||||||
|
target="_blank">
|
||||||
|
{{ releasedRelativeString }}
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="buttons">
|
<div class="buttons">
|
||||||
<a class="download-button" :href="download" target="_blank" title="Download">
|
<a class="download-button" :href="download" target="_blank" title="Download">
|
||||||
|
@ -30,6 +36,9 @@ export default {
|
||||||
download: {
|
download: {
|
||||||
type: String,
|
type: String,
|
||||||
},
|
},
|
||||||
|
commitUrl: {
|
||||||
|
type: String,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
releasedString() {
|
releasedString() {
|
||||||
|
@ -90,6 +99,11 @@ export default {
|
||||||
.released {
|
.released {
|
||||||
margin-left: 4px;
|
margin-left: 4px;
|
||||||
color: #0006;
|
color: #0006;
|
||||||
|
text-decoration: none;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue