2018-09-08 21:01:59 +08:00
|
|
|
<template>
|
|
|
|
|
<div class="d2-badge">
|
2019-12-14 12:38:29 +08:00
|
|
|
<p v-for="(group, groupIndex) of badges" :key="groupIndex" align="center">
|
|
|
|
|
<a v-for="(badge, badgeIndex) of group" :key="badgeIndex" :href="badge.link" target="_blank">
|
|
|
|
|
<img :src="badge.img"/>
|
|
|
|
|
</a>
|
2018-09-08 21:01:59 +08:00
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
2019-12-14 12:38:29 +08:00
|
|
|
<script>
|
|
|
|
|
const linkD2Admin = 'https://github.com/d2-projects/d2-admin'
|
|
|
|
|
const linkD2AdminAction = 'https://github.com/d2-projects/d2-admin/actions'
|
|
|
|
|
export default {
|
|
|
|
|
data () {
|
|
|
|
|
return {
|
|
|
|
|
badges: [
|
|
|
|
|
[
|
|
|
|
|
{ img: 'https://img.shields.io/github/stars/d2-projects/d2-admin.svg', link: `${linkD2Admin}/stargazers` },
|
|
|
|
|
{ img: 'https://img.shields.io/github/forks/d2-projects/d2-admin.svg', link: `${linkD2Admin}/network/members` },
|
|
|
|
|
{ img: 'https://img.shields.io/github/issues/d2-projects/d2-admin.svg', link: `${linkD2Admin}/issues` },
|
|
|
|
|
{ img: 'https://img.shields.io/github/issues-closed/d2-projects/d2-admin.svg', link: `${linkD2Admin}/issues?q=is%3Aissue+is%3Aclosed` },
|
|
|
|
|
{ img: 'https://img.shields.io/github/issues-pr/d2-projects/d2-admin.svg', link: `${linkD2Admin}/pulls` },
|
|
|
|
|
{ img: 'https://img.shields.io/github/issues-pr-closed/d2-projects/d2-admin.svg', link: `${linkD2Admin}/pulls?q=is%3Apr+is%3Aclosed` }
|
|
|
|
|
],
|
|
|
|
|
[
|
|
|
|
|
{ img: 'https://img.shields.io/github/last-commit/d2-projects/d2-admin.svg', link: linkD2Admin },
|
|
|
|
|
{ img: 'https://github.com/d2-projects/d2-admin/workflows/Deploy%20https%3A%2F%2Fd2.pub/badge.svg', link: 'https://d2.pub' },
|
|
|
|
|
{ img: 'https://github.com/d2-projects/d2-admin/workflows/Deploy%20Github/badge.svg', link: 'https://d2-projects.github.io/d2-admin/' }
|
|
|
|
|
],
|
|
|
|
|
[
|
|
|
|
|
{ img: 'https://visitor-count-badge.herokuapp.com/today.svg?repo_id=d2-projects.d2-admin', link: linkD2Admin },
|
|
|
|
|
{ img: 'https://visitor-count-badge.herokuapp.com/total.svg?repo_id=d2-projects.d2-admin', link: linkD2Admin },
|
2019-12-14 12:48:01 +08:00
|
|
|
{ img: 'https://img.shields.io/github/release/d2-projects/d2-admin.svg', link: `${linkD2Admin}/releases` }
|
2019-12-14 12:38:29 +08:00
|
|
|
]
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
2018-09-08 21:01:59 +08:00
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
.d2-badge {
|
|
|
|
|
margin-bottom: 20px;
|
|
|
|
|
p {
|
|
|
|
|
margin: 0px;
|
|
|
|
|
margin-bottom: 2px;
|
2019-04-25 11:06:08 +08:00
|
|
|
&:last-child {
|
2018-09-08 21:01:59 +08:00
|
|
|
margin-bottom: 0px;
|
|
|
|
|
}
|
2019-12-14 12:38:29 +08:00
|
|
|
img {
|
2018-09-08 21:01:59 +08:00
|
|
|
display: inline-block;
|
|
|
|
|
margin: 0px 2px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|