update data purging, re-enable channel selection

This commit is contained in:
Will Bradley
2025-10-11 22:04:03 -07:00
parent d19c071814
commit 18d5114f6f
6 changed files with 59 additions and 28 deletions
+17 -7
View File
@@ -118,6 +118,11 @@
<select id="message-from">
<option value="474572292">!1c496604</option>
</select>
<select id="message-channel">
<option value="0">LongFast (public)</option>
<option value="1">Aether (private)</option>
<option value="2">Other (2)</option>
</select>
<button type="submit" class="btn btn-primary">Send</button>
</div>
</form>
@@ -159,13 +164,18 @@
<p>Purge old data from the database to free up space.</p>
<form id="purge-form" class="settings-form">
<div class="form-group">
<label for="purge-days">Keep data from the last:</label>
<select id="purge-days">
<option value="7">7 days</option>
<option value="14">14 days</option>
<option value="30" selected>30 days</option>
<option value="60">60 days</option>
<option value="90">90 days</option>
<label for="purge-hours">Keep data from the last:</label>
<select id="purge-hours">
<option value="1">1 hour</option>
<option value="6">6 hours</option>
<option value="12">12 hours</option>
<option value="24">1 day</option>
<option value="72">3 days</option>
<option value="168">7 days</option>
<option value="336">14 days</option>
<option value="720" selected>30 days</option>
<option value="1440">60 days</option>
<option value="2160">90 days</option>
</select>
</div>
<button type="submit" class="btn btn-danger">Purge Old Data</button>