Add configurable library path with settings API and UI

This commit is contained in:
2025-12-07 22:40:06 +00:00
parent cb220cc5f0
commit d87af1383d
6 changed files with 3292 additions and 7 deletions

View File

@@ -358,10 +358,16 @@
<h2>Library Settings</h2>
<div class="form-group">
<label>Library Path</label>
<input type="text" id="libraryPath" value="./audio_library" readonly>
<small style="color: #86868b;">Audio files location on server</small>
<div style="display: flex; gap: 10px;">
<input type="text" id="libraryPath" placeholder="/path/to/your/music" style="flex: 1; margin-bottom: 0;">
<button class="btn btn-secondary" onclick="browseFolder()" style="white-space: nowrap;">💡 Help</button>
</div>
<small style="color: #86868b;">Full path or relative path to your audio files</small>
</div>
<div style="display: flex; gap: 10px;">
<button class="btn btn-primary" onclick="saveLibraryPath()">Save Path</button>
<button class="btn btn-secondary" onclick="scanLibrary()">Scan Library</button>
</div>
<button class="btn btn-primary" onclick="scanLibrary()">Scan Library Now</button>
</div>
<div class="card">