From 58de8970f53418e0157b80dff7d162d99815679b Mon Sep 17 00:00:00 2001 From: Corentin THOMASSET Date: Wed, 1 Nov 2023 15:23:46 +0100 Subject: [PATCH] refactor(math-evaluator): improved search and UX (#713) * refactor(math-evaluator): added keywords for search * refactor(math-evaluator): improved input --- src/tools/math-evaluator/index.ts | 4 ++++ src/tools/math-evaluator/math-evaluator.vue | 3 +++ 2 files changed, 7 insertions(+) diff --git a/src/tools/math-evaluator/index.ts b/src/tools/math-evaluator/index.ts index 3dc15f4f..2fa2b7c8 100644 --- a/src/tools/math-evaluator/index.ts +++ b/src/tools/math-evaluator/index.ts @@ -8,6 +8,9 @@ export const tool = defineTool({ keywords: [ 'math', 'evaluator', + 'calculator', + 'expression', + 'abs', 'acos', 'acosh', 'acot', @@ -31,6 +34,7 @@ export const tool = defineTool({ 'sech', 'sin', 'sinh', + 'sqrt', 'tan', 'tanh', ], diff --git a/src/tools/math-evaluator/math-evaluator.vue b/src/tools/math-evaluator/math-evaluator.vue index 3144a666..d31ed252 100644 --- a/src/tools/math-evaluator/math-evaluator.vue +++ b/src/tools/math-evaluator/math-evaluator.vue @@ -16,6 +16,9 @@ const result = computed(() => withDefaultOnError(() => evaluate(expression.value multiline placeholder="Your math expression (ex: 2*sqrt(6) )..." raw-text + monospace + autofocus + autosize />