Fix memory page to use local store

This commit is contained in:
2026-05-20 23:41:39 +08:00
parent 061cc9225a
commit 9a8f058008
4 changed files with 96 additions and 11 deletions
+32 -1
View File
@@ -1,2 +1,33 @@
<!doctype html>
<html lang="en"><head><meta charset="utf-8"><title>DuckLM Memory</title><link rel="stylesheet" href="/static/style.css"></head><body><main class="shell"><h1>Memory</h1><input id="memory-query" placeholder="Search memory"><button id="memory-search">Search</button><pre id="memory-results"></pre><script src="/static/app.js"></script></main></body></html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>DuckLM Memory</title>
<link rel="stylesheet" href="/static/style.css">
</head>
<body>
<main class="simple-page">
<header class="simple-header">
<div>
<h1>Memory</h1>
<p>Local DuckLM memory stored in SQLite.</p>
</div>
<a class="secondary-button" href="/">Chat</a>
</header>
<section class="memory-page-panel">
<form id="memory-page-form" class="memory-form">
<input id="memory-page-text" placeholder="Add memory" autocomplete="off">
<input id="memory-page-workspace" placeholder="Workspace, optional" autocomplete="off">
<button type="submit">Add</button>
</form>
<div class="memory-search-row">
<input id="memory-query" placeholder="Search memory" autocomplete="off">
<button id="memory-search" type="button">Search</button>
<button id="memory-list-all" type="button">All</button>
</div>
<div id="memory-results" class="memory-list"></div>
</section>
</main>
<script src="/static/app.js"></script>
</body>
</html>