chore: add mercury

This commit is contained in:
xuu
2024-01-22 16:00:58 -07:00
parent b1cc2af8d8
commit 87ec157e5a
36 changed files with 4916 additions and 2 deletions

43
mercury/public/index.html Normal file
View File

@@ -0,0 +1,43 @@
<!DOCTYPE html>
<html>
<head>
<script src="https://unpkg.com/htmx.org@1.9.10" integrity="sha384-D1Kt99CQMDuVetoL1lrYwg5t+9QdHe7NLX/SoJYkXDFfX37iInKRy5xLSi8nO7UC" crossorigin="anonymous"></script>
<title>Mercury</title>
</head>
<body>
Mercury
<form
hx-get="/v1/mercury-index"
hx-target="#index-results">
@ <input
id="search-index"
name="space"
type="text"
placeholder="Search...">
<button type="submit">Search</button>
</form>
<pre id="index-results"></pre>
<form
hx-get="/v1/mercury-config"
hx-target="#config-results">
@ <input
id="space-config"
name="space"
type="text"
placeholder="Space...">
<button type="submit">Load</button>
</form>
<pre id="config-results"></pre>
<form
hx-post="/v1/mercury-config"
hx-target="#space-saved">
<textarea name="content"></textarea>
<button type="submit">Save</button>
</form>
<pre id="space-saved"></pre>
</body>
</html>