thedocks/caddy/site/quodatum/index.js

28 lines
542 B
JavaScript
Raw Normal View History

2022-04-13 21:51:42 +01:00
// app
var app = new Vue({
el: '#app',
vuetify: new Vuetify(),
data: {
message: 'Hello Vue!',
links: null,
hits:0,
loaded: null,
target: "caddy",
targets: ["srv","top","new"]
},
methods:{
load() {
this.loaded = new Date()
this.hits += 1
fetch("links.json")
.then(response => response.json())
.then(data => (this.links = data));
}
},
mounted () {
this.load()
}
});