mirror of
https://github.com/arturssmirnovs/github-profile-readme-generator.git
synced 2024-11-16 10:08:41 +02:00
✨ Added GitHub Activity Graph by @Ashutosh00710
This commit is contained in:
parent
a31fb66f16
commit
5aeedd46d6
@ -95,6 +95,7 @@
|
||||
"showViews": "Show profile views",
|
||||
"showLanguages": "Show most used languages",
|
||||
"showStats": "Show GitHub statistics",
|
||||
"activityGraph": "Show GitHub Activity Graph",
|
||||
"includePrivate": "Include private repositories"
|
||||
},
|
||||
"trophies": {
|
||||
|
@ -94,6 +94,7 @@
|
||||
"showViews": "Mostrar vistas de perfil",
|
||||
"showLanguages": "Mostrar lenguajes más utilizados",
|
||||
"showStats": "Mostrar estadísticas de GitHub",
|
||||
"activityGraph": "Mostrar gráfico de actividad de GitHub",
|
||||
"includePrivate": "Incluir repositorios privados"
|
||||
},
|
||||
"trophies": {
|
||||
|
10
index.html
10
index.html
@ -598,6 +598,16 @@
|
||||
>Show GitHub statistics</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12 col-md-6">
|
||||
<div class="custom-control custom-checkbox mb-2">
|
||||
<input type="checkbox" class="custom-control-input" id="activityStats" v-model="data.activityGraph" :disabled="!data.github">
|
||||
<label
|
||||
class="custom-control-label"
|
||||
for="activityStats"
|
||||
data-i18n="statistics.activityGraph"
|
||||
>Show GitHub Activity Graph</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12 col-md-6">
|
||||
<div class="custom-control custom-checkbox mb-2">
|
||||
<input type="checkbox" class="custom-control-input" id="customCheck3" v-model="data.languages" :disabled="!data.github">
|
||||
|
@ -59,6 +59,7 @@ new Vue({
|
||||
|
||||
views: false,
|
||||
stats: false,
|
||||
activityGraph: false,
|
||||
metrics: false,
|
||||
streak: false,
|
||||
|
||||
@ -126,6 +127,7 @@ new Vue({
|
||||
if (!github) {
|
||||
this.data.views = false;
|
||||
this.data.stats = false;
|
||||
this.data.activityGraph = false;
|
||||
this.data.private = false;
|
||||
this.data.metrics = false;
|
||||
this.data.streak = false;
|
||||
@ -340,6 +342,12 @@ new Vue({
|
||||
source += "\n";
|
||||
}
|
||||
|
||||
if (data.activityGraph && data.github) {
|
||||
source += `![GitHub Activity Graph](https://activity-graph.herokuapp.com/graph?username=${data.github}) `;
|
||||
source += "\n";
|
||||
source += "\n";
|
||||
}
|
||||
|
||||
if (data.metrics && data.github) {
|
||||
source += `![GitHub metrics](https://metrics.lecoq.io/${data.github}) `;
|
||||
source += "\n";
|
||||
|
Loading…
Reference in New Issue
Block a user