Fix some bugs.
This commit is contained in:
parent
dd9c95f72d
commit
3e0c212c36
@ -35,12 +35,11 @@
|
|||||||
loading = false
|
loading = false
|
||||||
}
|
}
|
||||||
|
|
||||||
loadEntries()
|
// Reload when search query or active group filter changes
|
||||||
|
|
||||||
// Reload when search or filter changes (polling-based reactivity)
|
|
||||||
const intervalId = setInterval(loadEntries, 1000)
|
|
||||||
$effect(() => {
|
$effect(() => {
|
||||||
return () => clearInterval(intervalId)
|
searchStore.query
|
||||||
|
searchStore.activeGroupId
|
||||||
|
loadEntries()
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@ -86,7 +86,7 @@
|
|||||||
<div class="error-banner" role="alert">{error}</div>
|
<div class="error-banner" role="alert">{error}</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
<form submitHandler={handleSubmit} class="lock-form">
|
<form onsubmit={(e) => { e.preventDefault(); handleSubmit(); }} class="lock-form">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="master-password">Master Password</label>
|
<label for="master-password">Master Password</label>
|
||||||
<input
|
<input
|
||||||
|
|||||||
@ -28,12 +28,6 @@
|
|||||||
}
|
}
|
||||||
loadData()
|
loadData()
|
||||||
|
|
||||||
// Reload periodically
|
|
||||||
const intervalId = setInterval(loadData, 3000)
|
|
||||||
$effect(() => {
|
|
||||||
return () => clearInterval(intervalId)
|
|
||||||
})
|
|
||||||
|
|
||||||
function openGroupForm(group = null) {
|
function openGroupForm(group = null) {
|
||||||
if (group) {
|
if (group) {
|
||||||
editingGroupId = group.id
|
editingGroupId = group.id
|
||||||
|
|||||||
@ -7,6 +7,8 @@
|
|||||||
* The derived encryption key is kept in memory only — never written to disk.
|
* 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 PBKDF2_ITERATIONS = 100_000
|
||||||
const SALT_LENGTH = 16 // bytes
|
const SALT_LENGTH = 16 // bytes
|
||||||
const IV_LENGTH = 12 // bytes (recommended for AES-GCM)
|
const IV_LENGTH = 12 // bytes (recommended for AES-GCM)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user