AI slop
All checks were successful
Build and Deploy Nuxt / build (push) Successful in 1m20s

This commit is contained in:
2026-06-08 00:28:29 +02:00
parent 94e2b8bd47
commit 0fb4f01892
22 changed files with 1474 additions and 346 deletions

View File

@@ -48,11 +48,20 @@ function handleDeleteNote(key) {
onMounted(() => {
emitter.on("push-note", handlePushNote);
emitter.on("delete-note", handleDeleteNote);
emitter.on("title-updated", handleTitleUpdated);
});
function handleTitleUpdated(data) {
const note = noteData.value.find(n => n.key === data.key);
if (note) {
note.title = data.title;
}
}
onUnmounted(() => {
emitter.off("push-note", handlePushNote);
emitter.off("delete-note", handleDeleteNote);
emitter.off("title-updated", handleTitleUpdated);
});
</script>