568691542a
Backend: - extract.go: listTags() navigates to volume, runs akaiutil lstags - extract.go: parseTags() parses tag name/index from lstags output - serve.go: GET /api/disk/partitions — list partitions on an ISO - serve.go: GET /api/disk/volumes — list volumes on a partition - serve.go: GET /api/volume/tags — list tags on a volume Web UI: - Tag Viewer section with ISO path input and Browse button - Partition selector buttons - Volume grid with click-to-select - Tag chips with color-coded dots (20-color palette) Tests: - 6 parseTags tests (basic, spaces, defaults, no tags, empty, no-type) - 1 listTags integration test - 4 API endpoint tests (partitions, missing-ISO, missing-params, tags) Karpathy: read-only view first — no write operations yet (settagi, clrtagi)
91 lines
3.2 KiB
HTML
91 lines
3.2 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="tag-section">
|
|
<h2 class="section-toggle" data-section="tag-body">Tag Viewer <span class="toggle-icon">▾</span></h2>
|
|
<div id="tag-body">
|
|
<div class="tag-controls">
|
|
<input type="text" id="tag-iso-path" placeholder="ISO file path" value="./output/isos">
|
|
<button id="tag-browse-btn">Browse</button>
|
|
</div>
|
|
<div id="tag-results" style="display:none">
|
|
<div id="tag-status"></div>
|
|
<div id="tag-partitions" class="tag-partitions"></div>
|
|
<div id="tag-volumes" class="tag-volumes"></div>
|
|
<div id="tag-detail" class="tag-detail"></div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<section id="wav-section">
|
|
<h2 class="section-toggle" data-section="wav-body">Sample Library <span class="toggle-icon">▾</span></h2>
|
|
<div id="wav-body">
|
|
<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-results" style="display:none">
|
|
<div class="wav-summary-row">
|
|
<div id="wav-summary" class="wav-summary"></div>
|
|
<button id="wav-collapse-all" class="collapse-all-btn">Collapse All</button>
|
|
</div>
|
|
<div id="wav-player" class="wav-player" style="display:none">
|
|
<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>
|
|
<div id="wav-list" class="wav-library"></div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<section id="results-section">
|
|
<h2>Results <span id="result-count"></span></h2>
|
|
<div id="search-results"></div>
|
|
</section>
|
|
</div>
|
|
<script src="util.js"></script>
|
|
<script src="app.js"></script>
|
|
</body>
|
|
</html>
|