cf53912a33
Issue: #9 Backend: - GET /api/list-wavs?dir=<path> — lists .wav files in a directory - GET /wavs/<file> — static file serving from ./output/wavs Web UI: - WAV Browser section with path input + Browse button - AudioContext-based playback (zero deps) — progress bar, time display - WAV file grid with Play buttons, active item highlighting Tests: - 3 new tests for handleListWavs (wav files, empty dir, nonexistent dir) - Fix TestFindAkaiutil: add t.Chdir(tmp) so relative path lookups don't accidentally find the repo's third_party/akaiutil/akaiutil binary
66 lines
2.1 KiB
HTML
66 lines
2.1 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>AKAI Utils</title>
|
|
<link rel="stylesheet" href="style.css">
|
|
</head>
|
|
<body>
|
|
<div id="app">
|
|
<header>
|
|
<h1>AKAI Utils</h1>
|
|
<span class="subtitle">Sampler ISO Downloader & WAV Extractor</span>
|
|
</header>
|
|
|
|
<section id="search-section">
|
|
<div class="search-bar">
|
|
<input type="text" id="search-query" placeholder="Search archive.org AKAI samplers..."
|
|
value="subject:akai AND subject:sampler">
|
|
<input type="text" id="search-filter" placeholder="Extra filter (e.g. vocal, drum)">
|
|
<button id="search-btn">Search</button>
|
|
<button id="search-dl-all">Download Top 10</button>
|
|
</div>
|
|
<div id="search-status"></div>
|
|
</section>
|
|
|
|
<section id="download-section">
|
|
<h2>Downloads <span id="dl-count"></span></h2>
|
|
<div id="download-queue"></div>
|
|
</section>
|
|
|
|
<section id="extract-section">
|
|
<h2>WAV Extraction</h2>
|
|
<div class="extract-controls">
|
|
<input type="text" id="extract-iso-dir" placeholder="ISO directory" value="./output/isos">
|
|
<input type="text" id="extract-wav-dir" placeholder="WAV output directory" value="./output/wavs">
|
|
<button id="extract-btn">Extract</button>
|
|
</div>
|
|
<div id="extract-status"></div>
|
|
</section>
|
|
|
|
<section id="wav-section">
|
|
<h2>WAV Browser</h2>
|
|
<div class="wav-controls">
|
|
<input type="text" id="wav-dir" placeholder="WAV directory" value="./output/wavs">
|
|
<button id="wav-browse-btn">Browse</button>
|
|
</div>
|
|
<div id="wav-player" class="wav-player">
|
|
<div id="wav-now-playing" class="now-playing"></div>
|
|
<div class="audio-bar">
|
|
<div class="audio-progress"><div id="wav-progress-fill" class="audio-progress-fill"></div></div>
|
|
<span id="wav-time">0:00</span>
|
|
</div>
|
|
<div id="wav-list" class="wav-list"></div>
|
|
</div>
|
|
</section>
|
|
|
|
<section id="results-section">
|
|
<h2>Results <span id="result-count"></span></h2>
|
|
<div id="search-results"></div>
|
|
</section>
|
|
</div>
|
|
<script src="app.js"></script>
|
|
</body>
|
|
</html>
|