mirror of
https://github.com/arturssmirnovs/github-profile-readme-generator.git
synced 2024-11-16 10:08:41 +02:00
Update script.js
This commit is contained in:
parent
ccf6980836
commit
6f306e61fc
14
js/script.js
14
js/script.js
@ -57,9 +57,8 @@ new Vue({
|
||||
pronouns: "",
|
||||
fact: "",
|
||||
|
||||
views: false,
|
||||
stats: false,
|
||||
activityGraph: false,
|
||||
vauntBadge: false,
|
||||
metrics: false,
|
||||
streak: false,
|
||||
|
||||
@ -125,9 +124,8 @@ new Vue({
|
||||
methods: {
|
||||
githubWatcher(github) {
|
||||
if (!github) {
|
||||
this.data.views = false;
|
||||
this.data.stats = false;
|
||||
this.data.activityGraph = false;
|
||||
this.data.vauntBadge = false;
|
||||
this.data.private = false;
|
||||
this.data.metrics = false;
|
||||
this.data.streak = false;
|
||||
@ -342,8 +340,8 @@ new Vue({
|
||||
source += "\n";
|
||||
}
|
||||
|
||||
if (data.activityGraph && data.github) {
|
||||
source += `![GitHub Activity Graph](https://activity-graph.herokuapp.com/graph?username=${data.github}) `;
|
||||
if (data.vauntBadge && data.github) {
|
||||
source += `![Vaunt Badge](https://api.vaunt.dev/v1/github/entities/${data.github}/contributions?format=svg&private=${(data.private)}) `;
|
||||
source += "\n";
|
||||
source += "\n";
|
||||
}
|
||||
@ -359,10 +357,6 @@ new Vue({
|
||||
source += "\n";
|
||||
source += "\n";
|
||||
}
|
||||
|
||||
if (data.views && data.github) {
|
||||
source += `![Profile views](https://gpvc.arturio.dev/${data.github}) `;
|
||||
}
|
||||
}
|
||||
|
||||
return source;
|
||||
|
Loading…
Reference in New Issue
Block a user