1
0
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:
Arturs Smirnovs 2023-11-20 20:46:31 +02:00 committed by GitHub
parent ccf6980836
commit 6f306e61fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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