fixes and polish on shortcodes

This commit is contained in:
Nuno Coração
2024-03-06 22:12:58 +00:00
parent 317245e67d
commit 7c0eacf44f
6 changed files with 30 additions and 465 deletions

View File

@@ -39,7 +39,6 @@
</div>
<script>
console.log({{ $gitlabURL }})
fetch({{ $gitlabURL }}, {
headers: new Headers({
'User-agent': 'Mozilla/4.0 Custom User Agent'
@@ -47,7 +46,6 @@
})
.then(response => response.json())
.then(data => {
console.log(data)
document.getElementById('{{ $id }}-name_with_namespace').innerHTML = data.name_with_namespace;
document.getElementById('{{ $id }}-description').innerHTML = data.description;
document.getElementById('{{ $id }}-star_count').innerHTML = data.star_count;