Commit 056026ca authored by svilayphiou's avatar svilayphiou
Browse files

some cleaning in the vue test

parent 53a39f16
......@@ -11,7 +11,7 @@
<body>
<div id="repos">
<div class="repo" v-for="repo in repos" v-bind:class="repo.archived" v-bind:key="repo.id">
<div class="repo" v-for="repo in repos" v-bind:class="repo.archived">
<h2>{{repo.name}}</h2>
<div class='iceberg'>
<h3>Iceberg</h3>
......@@ -19,6 +19,13 @@
<img v-bind:src="image.src">
</div>
</div>
<!--<div class='processus'>-->
<!--<h3>Processus</h3>-->
<!--<img v-for="image in processus">-->
......@@ -37,15 +44,15 @@
getMetadata(reposList[i]);
getIceberg(i, reposList[i]);
}
document.addEventListener('DOMContentLoaded', function(){
console.log(repos);
var reposApp = new Vue({
el: '#repos',
data: {
repos
}
})
}, false);
console.log(repos);
var reposApp = new Vue({
el: '#repos',
data: {
repos
}
})
// METADATA ///////////////////////////////
function getMetadata(repoID) {
let repo_url = "https://gitlab.constantvzw.org/api/v4/projects/" + repoID;
......@@ -85,6 +92,6 @@
</script>
<script type="text/javascript" charset="utf-8" src="pad.js"> </script>
<script type="text/javascript" charset="utf-8" src="generator/templates/static/pad.js"> </script>
</body>
</html>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment