2026-03-05 00:04:26 -06:00
|
|
|
<!doctype html>
|
|
|
|
|
<html lang="en">
|
|
|
|
|
<head>
|
|
|
|
|
<meta charset="UTF-8" />
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
|
|
|
<title>Overlord Dashboard</title>
|
2026-04-18 21:16:29 -05:00
|
|
|
<link rel="stylesheet" href="/vendor/inter/400.css" />
|
|
|
|
|
<link rel="stylesheet" href="/vendor/inter/600.css" />
|
|
|
|
|
<link rel="stylesheet" href="/vendor/inter/700.css" />
|
|
|
|
|
<link rel="stylesheet" href="/assets/tailwind.css" />
|
|
|
|
|
<link rel="stylesheet" href="/vendor/fontawesome/css/all.min.css" />
|
|
|
|
|
<link rel="stylesheet" href="/vendor/flag-icons/css/flag-icons.min.css" />
|
2026-03-05 15:25:52 -06:00
|
|
|
<link rel="icon" type="image/x-icon" href="/assets/favicon.ico" />
|
2026-03-05 00:04:26 -06:00
|
|
|
<link rel="stylesheet" href="/assets/main.css" />
|
2026-04-01 13:49:41 -05:00
|
|
|
<link rel="stylesheet" href="/assets/custom.css" />
|
2026-04-19 00:20:35 -05:00
|
|
|
<script defer src="/vendor/animejs/anime.min.js"></script>
|
|
|
|
|
<link rel="preload" href="/api/clients?page=1&pageSize=12&q=&sort=stable&status=all&os=all&country=all&group=all" as="fetch" crossorigin />
|
|
|
|
|
<link rel="preload" href="/api/auth/me" as="fetch" crossorigin />
|
|
|
|
|
<link rel="preload" href="/api/groups" as="fetch" crossorigin />
|
2026-03-05 00:04:26 -06:00
|
|
|
</head>
|
|
|
|
|
<body class="min-h-screen bg-slate-950 text-slate-100">
|
|
|
|
|
<header id="top-nav"></header>
|
|
|
|
|
<main class="px-5 py-6">
|
2026-04-05 22:12:41 -05:00
|
|
|
<div id="clients-shell" class="w-full flex flex-col gap-5">
|
2026-03-05 00:04:26 -06:00
|
|
|
<div class="flex items-center justify-between gap-3 flex-wrap">
|
|
|
|
|
<div>
|
|
|
|
|
<h1 class="text-2xl font-semibold">Clients</h1>
|
2026-03-05 18:16:41 -06:00
|
|
|
<p class="text-slate-400">KDOT wants YOU to have a good day!</p>
|
2026-03-12 12:05:42 -05:00
|
|
|
<p id="server-version-text" class="text-xs text-slate-500 mt-1">
|
|
|
|
|
Server version: loading...
|
|
|
|
|
</p>
|
2026-03-05 00:04:26 -06:00
|
|
|
</div>
|
|
|
|
|
<span
|
2026-04-18 00:51:37 -05:00
|
|
|
class="inline-flex items-center gap-2 px-3 py-2 rounded-full bg-slate-800/70 text-slate-300 border border-slate-600/60"
|
2026-03-05 00:04:26 -06:00
|
|
|
id="total-pill"
|
|
|
|
|
>0 online</span
|
|
|
|
|
>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="flex flex-wrap gap-3 items-center">
|
|
|
|
|
<label
|
|
|
|
|
id="search-shell"
|
2026-04-18 00:51:37 -05:00
|
|
|
class="flex items-center gap-2 bg-slate-800/70 border border-slate-700/60 rounded-lg px-3 py-2 w-full sm:w-auto flex-1"
|
2026-03-05 00:04:26 -06:00
|
|
|
>
|
|
|
|
|
<i class="fa-solid fa-magnifying-glass text-slate-500"></i>
|
|
|
|
|
<input
|
|
|
|
|
id="search"
|
|
|
|
|
class="bg-transparent outline-none w-full placeholder:text-slate-500"
|
|
|
|
|
type="search"
|
2026-03-10 19:30:51 -05:00
|
|
|
placeholder="Search by nickname, host, user, id"
|
2026-03-05 00:04:26 -06:00
|
|
|
/>
|
|
|
|
|
</label>
|
|
|
|
|
<label
|
2026-04-18 00:51:37 -05:00
|
|
|
class="inline-flex items-center gap-2 bg-slate-800/70 border border-slate-700/60 rounded-lg px-3 py-2 text-slate-300"
|
2026-03-05 00:04:26 -06:00
|
|
|
>
|
|
|
|
|
<input
|
|
|
|
|
id="toggle-offline"
|
|
|
|
|
type="checkbox"
|
|
|
|
|
class="h-4 w-4 rounded border-slate-600 bg-slate-800 text-blue-600 focus:ring-blue-600"
|
|
|
|
|
checked
|
|
|
|
|
/>
|
|
|
|
|
<span class="text-sm text-slate-300">Show offline</span>
|
|
|
|
|
</label>
|
|
|
|
|
<select
|
|
|
|
|
id="filter-status"
|
2026-04-18 00:51:37 -05:00
|
|
|
class="bg-slate-800/70 border border-slate-700/60 rounded-lg px-3 py-2 text-slate-300"
|
2026-03-05 00:04:26 -06:00
|
|
|
>
|
|
|
|
|
<option value="all">All Status</option>
|
|
|
|
|
<option value="online">Online Only</option>
|
|
|
|
|
<option value="offline">Offline Only</option>
|
|
|
|
|
</select>
|
|
|
|
|
<select
|
|
|
|
|
id="filter-os"
|
2026-04-18 00:51:37 -05:00
|
|
|
class="bg-slate-800/70 border border-slate-700/60 rounded-lg px-3 py-2 text-slate-300"
|
2026-03-05 00:04:26 -06:00
|
|
|
>
|
|
|
|
|
<option value="all">All OS</option>
|
|
|
|
|
</select>
|
2026-04-14 19:38:27 -05:00
|
|
|
<select
|
|
|
|
|
id="filter-group"
|
2026-04-18 00:51:37 -05:00
|
|
|
class="bg-slate-800/70 border border-slate-700/60 rounded-lg px-3 py-2 text-slate-300"
|
2026-04-14 19:38:27 -05:00
|
|
|
>
|
|
|
|
|
<option value="all">All Groups</option>
|
|
|
|
|
<option value="none">No Group</option>
|
|
|
|
|
</select>
|
2026-03-17 00:11:25 -05:00
|
|
|
<div id="country-picker-anchor" class="relative"></div>
|
2026-03-05 00:04:26 -06:00
|
|
|
<select
|
|
|
|
|
id="sort"
|
2026-04-18 00:51:37 -05:00
|
|
|
class="bg-slate-800/70 border border-slate-700/60 rounded-lg px-3 py-2 text-slate-300"
|
2026-03-05 00:04:26 -06:00
|
|
|
>
|
2026-03-17 00:42:57 -05:00
|
|
|
<option value="stable">Default</option>
|
2026-03-05 00:04:26 -06:00
|
|
|
<option value="last_seen_desc">Newest</option>
|
|
|
|
|
<option value="host_asc">Host A→Z</option>
|
|
|
|
|
<option value="ping_asc">Ping ↑</option>
|
|
|
|
|
<option value="ping_desc">Ping ↓</option>
|
2026-03-17 00:11:25 -05:00
|
|
|
<option value="country_asc">Country A→Z</option>
|
|
|
|
|
<option value="country_desc">Country Z→A</option>
|
2026-04-14 19:38:27 -05:00
|
|
|
<option value="group_asc">Group A→Z</option>
|
|
|
|
|
<option value="group_desc">Group Z→A</option>
|
2026-04-07 10:36:29 -05:00
|
|
|
<option value="admin_first">Admin first</option>
|
2026-03-05 00:04:26 -06:00
|
|
|
</select>
|
|
|
|
|
<button
|
|
|
|
|
id="select-all"
|
2026-04-18 00:51:37 -05:00
|
|
|
class="px-3 py-2 rounded-lg bg-slate-800/70 hover:bg-slate-700/70 text-slate-300 border border-slate-700/60 transition-colors"
|
2026-03-05 00:04:26 -06:00
|
|
|
>
|
|
|
|
|
<i class="fa-solid fa-check"></i> Select all
|
|
|
|
|
</button>
|
|
|
|
|
<button
|
|
|
|
|
id="clear-selection"
|
2026-04-18 00:51:37 -05:00
|
|
|
class="px-3 py-2 rounded-lg bg-slate-800/70 hover:bg-slate-700/70 text-slate-400 border border-slate-700/60 transition-colors"
|
2026-03-05 00:04:26 -06:00
|
|
|
>
|
|
|
|
|
Clear selection
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- Bulk Actions Toolbar -->
|
|
|
|
|
<div
|
|
|
|
|
id="bulk-toolbar"
|
2026-04-18 00:51:37 -05:00
|
|
|
class="hidden bg-slate-800/70 border border-slate-700/60 rounded-lg p-3 flex flex-wrap items-center justify-between gap-3"
|
2026-03-05 00:04:26 -06:00
|
|
|
>
|
|
|
|
|
<div class="flex items-center gap-2">
|
2026-04-18 00:51:37 -05:00
|
|
|
<i class="fa-solid fa-check-double text-slate-400"></i>
|
|
|
|
|
<span class="text-slate-300"
|
2026-03-05 00:04:26 -06:00
|
|
|
><span id="selected-count">0</span> selected</span
|
|
|
|
|
>
|
|
|
|
|
</div>
|
2026-03-16 14:42:18 +01:00
|
|
|
<div class="flex items-center gap-2 flex-wrap">
|
2026-03-05 00:04:26 -06:00
|
|
|
<button
|
|
|
|
|
id="bulk-screenshot"
|
2026-04-18 00:51:37 -05:00
|
|
|
class="px-3 py-2 rounded-lg bg-slate-800/70 hover:bg-slate-700/70 text-slate-300 border border-slate-600/60 transition-colors"
|
2026-03-05 00:04:26 -06:00
|
|
|
>
|
|
|
|
|
<i class="fa-solid fa-camera"></i> Screenshot
|
|
|
|
|
</button>
|
|
|
|
|
<button
|
|
|
|
|
id="bulk-disconnect"
|
2026-04-18 00:51:37 -05:00
|
|
|
class="px-3 py-2 rounded-lg bg-slate-800/70 hover:bg-red-950/60 text-red-300 border border-red-900/60 transition-colors"
|
2026-03-05 00:04:26 -06:00
|
|
|
>
|
|
|
|
|
<i class="fa-solid fa-plug-circle-xmark"></i> Disconnect
|
|
|
|
|
</button>
|
|
|
|
|
<button
|
|
|
|
|
id="bulk-uninstall"
|
2026-04-18 00:51:37 -05:00
|
|
|
class="px-3 py-2 rounded-lg bg-slate-800/70 hover:bg-rose-950/60 text-rose-300 border border-rose-900/60 transition-colors"
|
2026-03-05 00:04:26 -06:00
|
|
|
>
|
|
|
|
|
<i class="fa-solid fa-trash"></i> Uninstall
|
|
|
|
|
</button>
|
2026-04-14 21:56:18 -05:00
|
|
|
<button
|
|
|
|
|
id="bulk-group"
|
2026-04-18 00:51:37 -05:00
|
|
|
class="px-3 py-2 rounded-lg bg-slate-800/70 hover:bg-slate-700/70 text-slate-300 border border-slate-600/60 transition-colors"
|
2026-04-14 21:56:18 -05:00
|
|
|
>
|
|
|
|
|
<i class="fa-solid fa-layer-group"></i> Set Group
|
|
|
|
|
</button>
|
2026-03-05 00:04:26 -06:00
|
|
|
<button
|
|
|
|
|
id="bulk-clear"
|
2026-04-18 00:51:37 -05:00
|
|
|
class="px-3 py-2 rounded-lg bg-slate-800/70 hover:bg-slate-700/70 text-slate-400 border border-slate-600/60 transition-colors"
|
2026-03-05 00:04:26 -06:00
|
|
|
>
|
|
|
|
|
Clear
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2026-04-19 00:20:35 -05:00
|
|
|
<div id="grid" class="flex flex-col gap-3 min-h-[420px]"></div>
|
|
|
|
|
<div id="pagination" class="flex items-center justify-center gap-3 py-4" style="visibility:hidden">
|
2026-03-05 00:04:26 -06:00
|
|
|
<button
|
|
|
|
|
id="prev"
|
2026-04-18 00:51:37 -05:00
|
|
|
class="px-4 py-2 rounded-lg border border-slate-700/60 bg-slate-800/70 hover:bg-slate-700/70 text-slate-300 disabled:opacity-40"
|
2026-03-05 00:04:26 -06:00
|
|
|
disabled
|
|
|
|
|
>
|
|
|
|
|
Prev
|
|
|
|
|
</button>
|
|
|
|
|
<span class="text-slate-400" id="page-label"></span>
|
|
|
|
|
<button
|
|
|
|
|
id="next"
|
2026-04-18 00:51:37 -05:00
|
|
|
class="px-4 py-2 rounded-lg border border-slate-700/60 bg-slate-800/70 hover:bg-slate-700/70 text-slate-300 disabled:opacity-40"
|
2026-03-05 00:04:26 -06:00
|
|
|
disabled
|
|
|
|
|
>
|
|
|
|
|
Next
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</main>
|
|
|
|
|
<script type="module" src="/assets/nav.js"></script>
|
2026-04-08 14:37:03 -05:00
|
|
|
<script defer src="/assets/toast.js"></script>
|
|
|
|
|
<script defer src="/assets/ripple.js"></script>
|
2026-03-05 00:04:26 -06:00
|
|
|
<script type="module" src="/assets/main.js"></script>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|