diff --git a/caddy/site/links/icon.png b/caddy/site/links/icon.png
new file mode 100644
index 0000000..91e72cf
Binary files /dev/null and b/caddy/site/links/icon.png differ
diff --git a/caddy/site/links/index.html b/caddy/site/links/index.html
index bd4c20d..bfe5a6c 100644
--- a/caddy/site/links/index.html
+++ b/caddy/site/links/index.html
@@ -18,8 +18,9 @@
{{ item.text }}
-
+ hits {{ hits }}
{{ message }}
+
diff --git a/caddy/site/links/index.js b/caddy/site/links/index.js
index 910d461..95fcb56 100644
--- a/caddy/site/links/index.js
+++ b/caddy/site/links/index.js
@@ -1,24 +1,21 @@
// app
+Vue.use(Vuetify);
var app = new Vue({
el: '#app',
data: {
message: 'Hello Vue!',
- json: null,
+ json: links,
hits:0,
loaded: null
},
- filters: {
- pretty: function(value) {
- return JSON.stringify(JSON.parse(value), null, 2);
- }
- },
+
methods:{
load() {
this.loaded = new Date()
this.hits += 1
fetch("links.json")
.then(response => response.json())
- .then(data => (this.json = data));
+ .then(data => (this.links = data));
}
},
mounted () {