thedocks/caddy/site/quodatum/index.js

31 lines
691 B
JavaScript
Raw Permalink 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",
2022-11-28 11:10:43 +00:00
targets: ["srv","top","new"],
caddy: null
2022-04-13 21:51:42 +01:00
},
methods:{
load() {
this.loaded = new Date()
this.hits += 1
fetch("links.json")
.then(response => response.json())
.then(data => (this.links = data));
2024-04-26 22:45:32 +01:00
fetch(":2015/config/")
2022-11-28 11:10:43 +00:00
.then(response => response.json())
.then(data => (this.caddy = data));
2022-04-13 21:51:42 +01:00
}
},
mounted () {
this.load()
}
});