-
-
Notifications
You must be signed in to change notification settings - Fork 48
/
index.html
115 lines (108 loc) · 3.73 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="content-language" content="en" />
<meta name="description" content="Actionhero.js" />
<link rel="stylesheet" href="/public/css/cosmo.css" type="text/css" />
<link rel="icon" href="/public/favicon.ico" />
<title>Actionhero.js</title>
</head>
<body>
<div
class="alert alert-warning"
style="
display: none;
font-weight: bold;
position: fixed;
top: 0px;
left: 0px;
width: 100%;
z-index: 9999;
"
id="error-container"
>
<p id="error" />
</div>
<div class="container">
<br />
<div class="jumbotron">
<div class="row">
<div class="col-md-4">
<img src="/public/logo/actionhero.png" style="max-width: 100%" />
</div>
<div class="col-md-8">
<h1>Your Actionhero Server is working.</h1>
<h2>Congratulations!</h2>
<br />
<br />
<p>
Actionhero is a multi-transport API Server with integrated cluster
capabilities and delayed tasks.
</p>
<p>
Actionhero was built from the ground up to include all the
features you expect from a modern API framework. This includes all
the features listed below and more. Actionhero also knows when to
get out of the way to allow you to customize your stack to fit
your needs.
</p>
<br />
<br />
<div class="row">
<div class="col-md-4">
<a href="/swagger.html" class="btn btn-primary"
>API Documentation</a
>
</div>
<div class="col-md-4">
<a href="/chat.html" class="btn btn-primary">Real-Time Chat</a>
</div>
<div class="col-md-4">
<a
href="http://www.actionherojs.com"
target="_blank"
class="btn btn-outline-success"
>Learn More</a
>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="card border-primary">
<div class="card-header">This Server</div>
<div class="card-body">
<pre class="card-text">
Server Name: <span class="right" id="serverName">...</span>
Server ID: <span class="right" id="serverId">...</span>
API Version: <span class="right" id="serverVersion">...</span>
Actionhero Version <span class="right" id="actionheroVersion">...</span>
Uptime (min): <span class="right" id="uptime">...</span>
Memory Consumed: <span class="right" id="consumedMemoryMB">...</span>
</pre>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
var populateStatus = function (data) {
document.getElementById("serverVersion").innerHTML = data.version;
document.getElementById("serverName").innerHTML = data.name;
document.getElementById("serverId").innerHTML = data.id;
document.getElementById("actionheroVersion").innerHTML =
data.actionheroVersion;
document.getElementById("uptime").innerHTML = Math.round(
data.uptime / 1000 / 60
);
document.getElementById("consumedMemoryMB").innerHTML =
data.consumedMemoryMB + "MB";
};
fetch("/api/status")
.then((response) => response.json())
.then((data) => populateStatus(data));
</script>
</body>
</html>