From d6b4e97c4f65cbe8aa2ebc6783c6271a7818305b Mon Sep 17 00:00:00 2001 From: apb Date: Fri, 7 Jan 2022 20:48:31 +0000 Subject: [PATCH 1/3] [add] vuetify --- caddy/site/links/index.html | 22 ++++++++++++++++------ caddy/site/links/index.js | 4 +++- 2 files changed, 19 insertions(+), 7 deletions(-) diff --git a/caddy/site/links/index.html b/caddy/site/links/index.html index 1658d25..856274b 100644 --- a/caddy/site/links/index.html +++ b/caddy/site/links/index.html @@ -1,13 +1,21 @@ -Caddy test - + + + + Caddy test + + + + + - This is a test - Page loaded at: {{now | date "Mon Jan 2 15:04:05 MST 2006"}} +
+ This is a test + Page loaded at: {{ loaded }} @@ -15,7 +23,9 @@
{{ message }}
{{ json  }}
-
- + + + + \ No newline at end of file diff --git a/caddy/site/links/index.js b/caddy/site/links/index.js index b1a8968..910d461 100644 --- a/caddy/site/links/index.js +++ b/caddy/site/links/index.js @@ -4,7 +4,8 @@ var app = new Vue({ data: { message: 'Hello Vue!', json: null, - hits:0 + hits:0, + loaded: null }, filters: { pretty: function(value) { @@ -13,6 +14,7 @@ var app = new Vue({ }, methods:{ load() { + this.loaded = new Date() this.hits += 1 fetch("links.json") .then(response => response.json()) From 57ad9dfc66123f2c8483ef57328d78e18025a4ed Mon Sep 17 00:00:00 2001 From: apb Date: Fri, 7 Jan 2022 20:55:01 +0000 Subject: [PATCH 2/3] [fix] css --- caddy/site/links/index.html | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/caddy/site/links/index.html b/caddy/site/links/index.html index 856274b..706c7a0 100644 --- a/caddy/site/links/index.html +++ b/caddy/site/links/index.html @@ -6,10 +6,9 @@ Caddy test - - - - + + + From 00e654dc2d300b0b552e7ff8c8f7e36aca965381 Mon Sep 17 00:00:00 2001 From: apb Date: Fri, 7 Jan 2022 21:15:08 +0000 Subject: [PATCH 3/3] [mod] --- caddy/site/links/index.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/caddy/site/links/index.html b/caddy/site/links/index.html index 706c7a0..7ed9e58 100644 --- a/caddy/site/links/index.html +++ b/caddy/site/links/index.html @@ -13,8 +13,7 @@
- This is a test - Page loaded at: {{ loaded }} + Loaded at: {{ loaded }}