ArduinoPlayground/server/public/index.html

66 lines
2.5 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Arduino Playground</title>
<link rel="stylesheet" href="/styles.css">
</head>
<body>
<main>
<header>
<div>
<p class="eyebrow">Arduino UNO R4 WiFi</p>
<h1>Server activity</h1>
<p>Live overview of REST API traffic from Arduino boards.</p>
</div>
<div id="health" class="status">Connecting…</div>
</header>
<section class="metrics">
<article><span>Stored payloads</span><strong id="payloadCount">–</strong></article>
<article><span>API events</span><strong id="apiCount">–</strong></article>
<article><span>Server events</span><strong id="serverCount">–</strong></article>
</section>
<section class="panel">
<div class="panel-heading">
<div><p class="eyebrow">Activity</p><h2>Latest requests</h2></div>
<button id="refresh" type="button">Refresh</button>
</div>
<fieldset class="column-picker">
<legend>Visible columns</legend>
<label><input type="checkbox" data-column-toggle="deviceId" checked> Device ID</label>
<label><input type="checkbox" data-column-toggle="clientName" checked> Client name</label>
<label><input type="checkbox" data-column-toggle="path" checked> Path</label>
<label><input type="checkbox" data-column-toggle="method" checked> Method</label>
<label><input type="checkbox" data-column-toggle="status" checked> Status</label>
</fieldset>
<div class="activity-wrap">
<table class="activity-table">
<thead>
<tr>
<th>Time</th>
<th data-column="deviceId">Device ID</th>
<th data-column="clientName">Client name</th>
<th data-column="path">Path</th>
<th data-column="method">Method</th>
<th data-column="status">Status</th>
</tr>
</thead>
<tbody id="activity"></tbody>
</table>
</div>
</section>
<section class="panel">
<div class="panel-heading">
<div><p class="eyebrow">API</p><h2>Payloads</h2></div>
<code>GET /api/payloads</code>
</div>
<pre id="payloads">Loading…</pre>
</section>
</main>
<script src="/app.js"></script>
</body>
</html>