-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
63 lines (63 loc) · 2.24 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>PasteMe CI/D Status</title>
<script src="https://cdn.staticfile.org/vue/2.6.10/vue.min.js"></script>
<script src="https://cdn.staticfile.org/axios/0.19.0/axios.min.js"></script>
<style>pre { white-space: normal; }</style>
</head>
<body>
<div id="app">
<pre v-for="item in items" v-bind:key="item.id">
{{ item.name }} {{ item.date }}
</pre>
</div>
</body>
<script>
var app = new Vue({
el: "#app",
data: {
items: [
{
name: "Pub PasteMe Frontend",
url: "https://status.pasteme.lucien.ink/pasteme/frontend/pub",
date: ""
},
{
name: "Pub PasteMe Backend ",
url: "https://status.pasteme.lucien.ink/pasteme/frontend/pub",
date: ""
},
{
name: "Pre PasteMe Frontend",
url: "https://status.pasteme.lucien.ink/pasteme/frontend/pre",
date: ""
},
{
name: "Pre PasteMe Backend ",
url: "https://status.pasteme.lucien.ink/pasteme/backend/pre",
date: ""
},
{
name: "Dev PasteMe Frontend",
url: "https://status.pasteme.lucien.ink/pasteme/frontend/dev",
date: ""
},
{
name: "Dev PasteMe Backend ",
url: "https://status.pasteme.lucien.ink/pasteme/backend/dev",
date: ""
}
]
},
mounted() {
for (let i = 0; i < this.items.length; i++) {
axios.get(this.items[i].url).then(response => {
this.items[i].date = response.data.time;
})
}
}
})
</script>
</html>