feat: add embedded web dashboard for remote server
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>agent-notify</title>
|
||||
<link rel="stylesheet" href="/style.css">
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<h1>agent-notify</h1>
|
||||
<button type="button" id="btn-token" title="Change API token">Token</button>
|
||||
</header>
|
||||
<div class="layout">
|
||||
<aside class="sidebar">
|
||||
<label>Host
|
||||
<select id="filter-host"><option value="">All</option></select>
|
||||
</label>
|
||||
<label>Agent
|
||||
<select id="filter-agent"><option value="">All</option></select>
|
||||
</label>
|
||||
<label>Status
|
||||
<select id="filter-status">
|
||||
<option value="">All</option>
|
||||
<option value="waiting">waiting</option>
|
||||
<option value="running">running</option>
|
||||
<option value="tool">tool</option>
|
||||
<option value="idle">idle</option>
|
||||
<option value="offline">offline</option>
|
||||
</select>
|
||||
</label>
|
||||
<label>CWD
|
||||
<select id="filter-cwd"><option value="">All</option></select>
|
||||
</label>
|
||||
</aside>
|
||||
<main>
|
||||
<p id="error" class="error hidden"></p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Machine</th>
|
||||
<th>Directory</th>
|
||||
<th>Agent</th>
|
||||
<th>Status</th>
|
||||
<th>Updated</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="sessions"></tbody>
|
||||
</table>
|
||||
</main>
|
||||
</div>
|
||||
<script src="/app.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user