[mod] sites
This commit is contained in:
parent
0a51710752
commit
16785767fa
7 changed files with 77 additions and 1 deletions
27
caddy/site/orlop/index.js
Normal file
27
caddy/site/orlop/index.js
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
// 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()
|
||||
}
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue