1
0
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:
max-programming 2021-01-19 12:49:48 +05:30
parent a31fb66f16
commit 5aeedd46d6
4 changed files with 20 additions and 0 deletions

View File

@ -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": {

View File

@ -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": {

View File

@ -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">

View File

@ -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";