Add config page, and configuration for the base URL, so the bookmarklet will work on remote machines.

This commit is contained in:
2022-05-26 12:19:29 +09:30
parent 0fc2a597cd
commit cbe455b566
9 changed files with 106 additions and 10 deletions

View File

@@ -0,0 +1,12 @@
<form onsubmit="false;" id="config-form" hx-target="#config-form">
<table>
<tr>
<th>Base URL</th>
<td>
<input type="text" name="baseurl" value="{{ .config.BaseURL }}">
</td>
</tr>
</table>
<p><a class="button" hx-post="/config">save</a></p>
</form>