forked from sameerdhoot/wolweb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
127 lines (123 loc) · 5.95 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
116
117
118
119
120
121
122
123
124
125
126
127
<!DOCTYPE html>
<html lang="en" data-bs-theme="auto">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
<meta name="description" content="Wake up computers on your local network remotely">
<meta name="theme-color" content="#212529">
<meta name="apple-mobile-web-app-title" content="WOL Service">
<meta name="apple-mobile-web-app-capable" content="yes">
<title>Wake-on-LAN Service</title>
<link type="image/x-icon" rel="shortcut icon" href="static/favicon.ico"/>
<link type="text/css" rel="stylesheet" href="static/bootstrap/css/[email protected]">
<link type="text/css" rel="stylesheet" href="static/css/[email protected]" />
<link type="text/css" rel="stylesheet" href="static/css/wolweb.css" />
<link rel="preload" href="static/css/[email protected]" as="style" onload="this.onload=null;this.rel='stylesheet'" />
<link rel="preload" href="static/bootstrap/css/[email protected]" as="style" onload="this.onload=null;this.rel='stylesheet'" />
<link rel="preload" href="static/css/jsgrid-theme-custom.css" as="style" onload="this.onload=null;this.rel='stylesheet'" />
<link rel="preload" href="static/css/Navbar-Right-Links-Dark-icons.css" as="style" onload="this.onload=null;this.rel='stylesheet'" />
<link rel="preload" href="static/css/[email protected]" as="style" onload="this.onload=null;this.rel='stylesheet'" />
</head>
<body data-read-only="{{ .ReadOnly }}">
<nav class="navbar navbar-dark navbar-expand-md py-3">
<div class="container">
<a class="navbar-brand d-flex align-items-center">
<span class="bs-icon-sm bs-icon-rounded bs-icon-primary d-flex justify-content-center align-items-center me-2 bs-icon">
<i class="bi bi-power" style="font-size: 19px;"></i>
</span>
<span class="fw-bold">Wake-on-LAN Service</span>
</a>
</div>
</nav>
<div class="container">
<div class="section-header">
<h3>Devices</h3>
<div class="table-controls">
<div class="btn-group">
{{ if not .ReadOnly }}
<button id="device-insert-btn" class="btn btn-sm btn-outline-success" type="button" title="Add new device">
<i class="bi bi-plus-lg" style="margin-right: 6px;"></i>NEW
</button>
{{ end }}
<button id="device-filter-btn" class="btn btn-sm btn-outline-secondary" type="button" title="Filter devices">
<i class="bi bi-filter" style="margin-right: 6px;"></i>FILTER
</button>
</div>
</div>
</div>
<div id="GridDevices"></div>
<hr>
<div class="section-header">
<h3>Wake-up directly using HTTP Requests</h3>
</div>
<h6 style="margin-top: -4px; display: flex;">
<span id="app-vdir"></span>
<span class="text-secondary"><Device Name></span> - Returns a JSON object
</h6>
<div class="code-container ">
<pre>
<code id="code-element" class="language-json"></code>
</pre>
</div>
<div class="table-responsive">
<table class="table">
<thead>
<tr>
<th>Parameter</th>
<th>Value</th>
<th>Type</th>
</tr>
</thead>
<tbody>
<tr>
<td>Method</td>
<td>
<div class="api-method-pill">
<p>GET</p>
</div>
</td>
<td></td>
</tr>
<tr>
<td>Success</td>
<td>Returns a value based on whether the magic packet was sent</td>
<td>Boolean</td>
</tr>
<tr>
<td>Message</td>
<td>Returns a description of any action taken</td>
<td>String</td>
</tr>
<tr>
<td>Error</td>
<td>Returns errors as a JSON, converted from any raised GOLANG Error Objects</td>
<td>JSONObject</td>
</tr>
</tbody>
</table>
</div>
<hr>
<p style="font-size: 13px;">
<i class="bi bi-github" style="margin-right: 4px;"></i>
Project Page: <a href="https://github.com/ellisdickinson46/wolweb">https://github.com/ellisdickinson46/wolweb</a>
</p>
</div>
<script type="text/javascript" src="static/js/[email protected]"></script>
<script type="text/javascript" src="static/js/[email protected]"></script>
<script type="text/javascript" src="static/js/[email protected]"></script>
<script type="text/javascript" src="static/js/wolweb.js"></script>
<script type="text/javascript" src="static/bootstrap/js/[email protected]"></script>
<script type="text/javascript" src="static/bootstrap/js/bootstrap-auto-dark-mode.js"></script>
<script type="text/javascript" src="static/js/[email protected]"></script>
<script type="text/javascript" src="static/js/[email protected]"></script>
<script type="text/javascript" src="static/js/[email protected]"></script>
<script>
window.vDir = "{{$.VDir}}"
window.bCastIP = "{{$.BCastIP}}"
$( "#code-element" ).load( "static/api-sample.txt" , function() {
hljs.highlightAll();
});
document.getElementById("app-vdir").innerHTML = window.vDir + "/wake/"
</script>
</body>
</html>