Add statics

This commit is contained in:
Andros Fenollosa
2021-06-23 15:10:44 +02:00
parent a901b8d54a
commit 9f6fcf447d
171 changed files with 35808 additions and 14 deletions

21
static/js/home.js Normal file
View File

@ -0,0 +1,21 @@
new Vue({
el: '#app',
delimiters: ['[[', ']]'],
data: {
news: []
},
mounted: function () {
this.getNews();
},
methods: {
getNews: function () {
fetch('/api/v1/news/')
.then(function(response) {
return response.json();
})
.then((json) => {
this.news = json;
});
}
}
})

6
static/js/vue.min.js vendored Normal file

File diff suppressed because one or more lines are too long