all repos — momix @ 80d4b3b7c8b41c2a3cb66d9f63dbb839173da148

A CLI tool to manage recipes for Thermomix

fix: 🐛 Fix accents, remove db from git
Tim Izzo tim@5ika.ch
Sat, 03 Jan 2026 15:51:02 +0100
commit

80d4b3b7c8b41c2a3cb66d9f63dbb839173da148

parent

9f32f2cdcf6da96968a218122ffa5a5a9150d36a

3 files changed, 8 insertions(+), 3 deletions(-)

jump to
M .gitignore.gitignore

@@ -1,1 +1,2 @@

-.env+.env +*.db
M server.tsxserver.tsx

@@ -53,10 +53,14 @@ const recipeId = body.get("recipeId");

if (!recipeId) return c.redirect("/"); try { await storeRecipe(db, recipeId as string); - return c.redirect("/?msg=La recette a bien été ajoutée"); + return c.redirect( + `/?msg=${encodeURIComponent("La recette a bien été ajoutée")}` + ); } catch (error) { console.error(error); - return c.redirect("/?error=Erreur lors de l'ajout de la recette"); + return c.redirect( + `/?error=${encodeURIComponent("Problème lors de l'ajout")}` + ); } });