feat(calculator): Taschenrechner-Widget mit History und Tastatureingabe

Neues Widget-Modul mit Shunting-Yard Parser, 4x5 Button-Grid,
persistenter History (max 10) und Keyboard-Support.
Storage-Handling in Notes/Data erweitert fuer parallele Persistierung.
This commit is contained in:
2026-03-22 00:13:40 +01:00
parent 18a04b884c
commit 37e45a2041
6 changed files with 872 additions and 8 deletions
+9 -1
View File
@@ -44,7 +44,13 @@ const Notes = {
return note;
});
await Store.set(this.STORAGE_KEY, { notes: merged });
// Calculator-State beibehalten falls vorhanden
const existing = await Store.get(this.STORAGE_KEY);
const saveData = { notes: merged };
if (existing && existing.calculator) {
saveData.calculator = existing.calculator;
}
await Store.set(this.STORAGE_KEY, saveData);
},
/**
@@ -514,6 +520,8 @@ const Notes = {
await this.create('text');
} else if (action === 'new-checklist') {
await this.create('checklist');
} else if (action === 'calculator') {
Calculator.toggle();
} else if (action === 'notebook') {
this.openNotebook();
}