Fix some bugs.
This commit is contained in:
parent
dd9c95f72d
commit
3e0c212c36
@ -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>
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user