mirror of https://github.com/Lissy93/dashy.git
Update GitHubTrending.vue
This commit is contained in:
parent
80eaea069e
commit
b4bf81fe3c
|
@ -6,7 +6,6 @@
|
||||||
<p class="repo-name">{{ repo.name }}</p>
|
<p class="repo-name">{{ repo.name }}</p>
|
||||||
<div class="star-wrap">
|
<div class="star-wrap">
|
||||||
<p class="all-stars" v-if="repo.stars">{{ repo.stars | formatStars }}</p>
|
<p class="all-stars" v-if="repo.stars">{{ repo.stars | formatStars }}</p>
|
||||||
<p class="new-stars" v-if="repo.newStars">↑{{ repo.newStars | formatStars }}</p>
|
|
||||||
</div>
|
</div>
|
||||||
<a class="repo-link" :href="repo.link">{{ repo.slug }}</a>
|
<a class="repo-link" :href="repo.link">{{ repo.slug }}</a>
|
||||||
<p class="repo-desc">{{ repo.desc }}</p>
|
<p class="repo-desc">{{ repo.desc }}</p>
|
||||||
|
@ -77,11 +76,10 @@ export default {
|
||||||
slug: repo.repo,
|
slug: repo.repo,
|
||||||
desc: repo.desc,
|
desc: repo.desc,
|
||||||
lang: repo.lang,
|
lang: repo.lang,
|
||||||
link: repo.repo_link,
|
link: "https://github.com" + repo.repo_link,
|
||||||
stars: repo.stars,
|
stars: repo.stars,
|
||||||
forks: repo.forks,
|
forks: repo.forks,
|
||||||
newStars: parseInt(repo.added_stars, 10),
|
avatar: repo.build_by[0] || 'https://github.com/fluidicon.png',
|
||||||
avatar: repo.avatars[0] || 'https://github.com/fluidicon.png',
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
if (this.limit && this.limit < results.length) {
|
if (this.limit && this.limit < results.length) {
|
||||||
|
@ -140,11 +138,6 @@ export default {
|
||||||
font-size: 1.2rem;
|
font-size: 1.2rem;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
&.new-stars {
|
|
||||||
font-size: 0.8rem;
|
|
||||||
color: var(--success);
|
|
||||||
opacity: var(--dimming-factor);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue