- Plain HTML + vanilla JS modules, no build step; talks to /api/v1 with a bearer token and only ever inserts server data as text - Overview: now-playing dot-matrix display with live progress, totals, 30-day plays meter, top artists/tracks by period, recent plays - History (paged, grouped by day), Apps (create/delete, reveal/copy keys, player setup details), Sessions (revoke), sign-in approval page for the Last.fm desktop auth flow, sign in and registration - Light and dark themes, responsive to phone widths, vendored fonts (SIL OFL) so the UI has no third-party requests Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MK52BGoJbPhZ1vSFuKcGUW
40 lines
1.8 KiB
HTML
40 lines
1.8 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>Apps · Scrobbler</title>
|
|
<link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='7' fill='%231c2330'/%3E%3Ccircle cx='8' cy='8' r='3.5' fill='%23f2a541'/%3E%3C/svg%3E">
|
|
<link rel="stylesheet" href="css/style.css">
|
|
<script src="config.js"></script>
|
|
<script type="module" src="js/apps.js"></script>
|
|
</head>
|
|
<body>
|
|
<header class="site-header" id="site-header"></header>
|
|
<main id="main">
|
|
<h1 class="page-title">Apps</h1>
|
|
<p class="lede">Each player or scrobbler you connect needs an API key and shared secret. Create one per app, so you can remove any of them without affecting the others.</p>
|
|
<div id="messages"></div>
|
|
<section aria-labelledby="new-title">
|
|
<h2 id="new-title" class="visually-hidden">Create an app</h2>
|
|
<form class="inline-form" id="create-app">
|
|
<div class="field">
|
|
<label for="app-name">App name</label>
|
|
<input id="app-name" name="name" required maxlength="100" placeholder="Living room player" autocomplete="off">
|
|
</div>
|
|
<button class="button" type="submit">Create app</button>
|
|
</form>
|
|
</section>
|
|
<section aria-labelledby="apps-title">
|
|
<h2 id="apps-title" class="section-head">Your apps</h2>
|
|
<ul class="rows" id="apps"></ul>
|
|
</section>
|
|
<section class="setup" aria-labelledby="setup-title">
|
|
<h2 id="setup-title">Connecting a player</h2>
|
|
<p class="muted">In your player's scrobbling settings, choose a custom Last.fm-compatible server and enter:</p>
|
|
<dl id="setup"></dl>
|
|
</section>
|
|
</main>
|
|
</body>
|
|
</html>
|