-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
80 lines (77 loc) · 4.44 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<!DOCTYPE html>
<html>
<head>
<title>bugjang-status</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Concise Mojang Services Status | super-coffee/bugjang-status">
<link rel="icon" href="./favicon.png" type="image/png">
<link rel="stylesheet"
href="https://cdn.jsdelivr.net/combine/npm/bootstrap@4.5.0/dist/css/bootstrap.min.css,npm/toastr@2.1.4/build/toastr.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css">
</head>
<body class="bg-primary">
<div class="container">
<div class="row justify-content-center">
<div class="col-md-9 col-lg-12 col-xl-10">
<div class="card shadow-lg o-hidden border-0 my-5">
<div class="card-body p-3">
<div id="bugjangStatus" class="row">
<div class="col-12">
<div v-if="isLoading">
<div class="col-md-12 text-center">
<h4>
<div class="card-body">Loading ...</div>
</h4>
</div>
</div>
<div v-if="checkApiAlive" class="row m-0 mt-2">
<div class="col-md-4" v-for="service in servicesList">
<div v-for="(status, sName, _) in service">
<div v-bind:class="styleClassMap.card[status]">
<div class="card-body">{{ sName }}</div>
</div>
</div>
</div>
</div>
<div v-else class="col-12 m-0 mt-2">
<div class="col-md-12 text-center">
<h4>
Unable to get status from <a target="_blank"
href="https://status.mojang.com/check">Mojang API</a>
</h4>
</div>
</div>
<hr>
<div class="col-12 text-center copyright">
<div class="btn-group copyright">
<a class="btn btn-primary" target="_blank"
href="https://github.com/super-coffee/bugjang-status" title="view on GitHub"
data-toggle="tooltip">
<i class="fa fa-github"></i> bugjang-status
</a>
<button type="button" class="btn btn-primary">
<i class="fa fa-clock-o"></i> {{ responseTime }}
</button>
<button type="button" class="btn btn-primary" v-bind:disabled="disableLoadButton" v-on:click="refreshStatus">
<i v-bind:class="styleClassMap.loadButton[loadButtonStatus]"></i>
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- production environment -->
<script
src="https://cdn.jsdelivr.net/combine/npm/axios@0.19.2/dist/axios.min.js,npm/vue@2.6.11/dist/vue.min.js,npm/jquery@3.5.1,npm/bootstrap@4.5.0,npm/popper.js@1.16.1/dist/umd/popper.min.js,npm/toastr@2.1.4/build/toastr.min.js"></script>
<!-- development environment -->
<!-- <script
src="https://cdn.jsdelivr.net/combine/npm/axios@0.19.2/dist/axios.min.js,npm/vue@2.6.11/dist/vue.js,npm/jquery@3.5.1,npm/bootstrap@4.5.0,npm/popper.js@1.16.1/dist/umd/popper.min.js,npm/toastr@2.1.4/build/toastr.min.js"></script> -->
<script src="./formatTime.js"></script>
<script src="./index.js"></script>
</body>
</html>