Compare commits

..

No commits in common. "00e654dc2d300b0b552e7ff8c8f7e36aca965381" and "f73523c327ad45fd99bb46d2369ac30686020d1a" have entirely different histories.

2 changed files with 7 additions and 17 deletions

View file

@ -1,19 +1,13 @@
<html> <html>
<head> <head>
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" /> <title>Caddy test</title>
<meta name="description" content="caddy test" /> <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<meta name="author" content="andy bunce." />
<title>Caddy test</title>
<link rel="shortcut icon" href="icon.png"/>
<link href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/@mdi/font@6.x/css/materialdesignicons.min.css" rel="stylesheet">
<link href="//unpkg.com/vuetify@2.6.2/dist/vuetify.min.css" rel="stylesheet" type="text/css"/>
</head> </head>
<body> <body>
This is a test
<span>Page loaded at: {{now | date "Mon Jan 2 15:04:05 MST 2006"}}</span>
<div id="app"> <div id="app">
<span>Loaded at: {{ loaded }}</span>
<ul> <ul>
<li v-for="item in json"><a :href="item.href">{{ item.text }}</a></li> <li v-for="item in json"><a :href="item.href">{{ item.text }}</a></li>
</ul> </ul>
@ -22,8 +16,6 @@
<div> {{ message }}</div> <div> {{ message }}</div>
<pre>{{ json }}</pre> <pre>{{ json }}</pre>
</div> </div>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js" crossorigin="anonymous"></script>
<script src="//unpkg.com/vuetify@2.6.2/dist/vuetify.min.js" crossorigin="anonymous"></script>
<script src="index.js"></script> <script src="index.js"></script>
</body> </body>
</html> </html>

View file

@ -4,8 +4,7 @@ var app = new Vue({
data: { data: {
message: 'Hello Vue!', message: 'Hello Vue!',
json: null, json: null,
hits:0, hits:0
loaded: null
}, },
filters: { filters: {
pretty: function(value) { pretty: function(value) {
@ -14,7 +13,6 @@ var app = new Vue({
}, },
methods:{ methods:{
load() { load() {
this.loaded = new Date()
this.hits += 1 this.hits += 1
fetch("links.json") fetch("links.json")
.then(response => response.json()) .then(response => response.json())