cwa import

This commit is contained in:
2026-05-13 18:24:55 +02:00
parent bfa09976b7
commit c0e1cb0688
11 changed files with 60 additions and 886 deletions
+11 -30
View File
@@ -84,39 +84,20 @@
</div>
</section>
<section class="form-section">
<h2>Calibre-Web</h2>
<div class="form-row">
<label for="calibre_url">URL</label>
<input id="calibre_url" name="calibre_url" type="url" placeholder="http://localhost:8083"
value="{{ s.get('calibre_url','') }}">
</div>
<div class="form-row">
<label for="calibre_user">Username</label>
<input id="calibre_user" name="calibre_user" type="text" value="{{ s.get('calibre_user','') }}">
</div>
<div class="form-row">
<label for="calibre_pass">Password</label>
<input id="calibre_pass" name="calibre_pass" type="password"
value="{{ s.get('calibre_pass','') }}">
</div>
<div class="form-row">
<button type="button" class="btn btn-secondary" onclick="testConn('calibre', this)">Test Calibre-Web connection</button>
<p id="test-calibre-result" class="test-result"></p>
</div>
</section>
<section class="form-section">
<h2>Local</h2>
<div class="form-row">
<label for="local_work_dir">Work directory</label>
<input id="local_work_dir" name="local_work_dir" type="text" placeholder="/tmp/calibresync"
value="{{ s.get('local_work_dir','/tmp/calibresync') }}">
<label for="import_dir">CWA import folder</label>
<input id="import_dir" name="import_dir" type="text" placeholder="/mnt/cwa-import"
value="{{ s.get('import_dir','') }}">
<p class="muted small">Folder watched by Calibre-Web-Automated. Extracted epub/pdf files are moved here flat.</p>
</div>
<div class="form-row">
<label for="work_dir">Temp work directory</label>
<input id="work_dir" name="work_dir" type="text" placeholder="/tmp/calibresync"
value="{{ s.get('work_dir','/tmp/calibresync') }}">
<p class="muted small">Temporary storage for downloaded zips and extracted files. Cleaned up after each run.</p>
</div>
</section>
@@ -182,7 +163,7 @@ async function testConn(type, btn) {
result.className = "test-result test-fail";
} finally {
btn.disabled = false;
btn.textContent = type === "ssh" ? "Test SSH connection" : "Test Calibre-Web connection";
btn.textContent = "Test SSH connection";
}
}
</script>