Fix some bugs.

This commit is contained in:
Timothy Farrell 2026-05-12 16:59:58 +00:00
parent dd9c95f72d
commit 3e0c212c36
4 changed files with 7 additions and 12 deletions

View File

@ -35,12 +35,11 @@
loading = false
}
loadEntries()
// Reload when search or filter changes (polling-based reactivity)
const intervalId = setInterval(loadEntries, 1000)
// Reload when search query or active group filter changes
$effect(() => {
return () => clearInterval(intervalId)
searchStore.query
searchStore.activeGroupId
loadEntries()
})
</script>

View File

@ -86,7 +86,7 @@
<div class="error-banner" role="alert">{error}</div>
{/if}
<form submitHandler={handleSubmit} class="lock-form">
<form onsubmit={(e) => { e.preventDefault(); handleSubmit(); }} class="lock-form">
<div class="form-group">
<label for="master-password">Master Password</label>
<input

View File

@ -28,12 +28,6 @@
}
loadData()
// Reload periodically
const intervalId = setInterval(loadData, 3000)
$effect(() => {
return () => clearInterval(intervalId)
})
function openGroupForm(group = null) {
if (group) {
editingGroupId = group.id

View File

@ -7,6 +7,8 @@
* The derived encryption key is kept in memory only never written to disk.
*/
import { generateId } from '../models/schema.js'
const PBKDF2_ITERATIONS = 100_000
const SALT_LENGTH = 16 // bytes
const IV_LENGTH = 12 // bytes (recommended for AES-GCM)