Skip to content

Commit

Permalink
refactor(math-evaluator): improved search and UX (CorentinTh#713)
Browse files Browse the repository at this point in the history
* refactor(math-evaluator): added keywords for search

* refactor(math-evaluator): improved input
  • Loading branch information
CorentinTh authored Nov 1, 2023
1 parent 02b0d0d commit 58de897
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/tools/math-evaluator/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ export const tool = defineTool({
keywords: [
'math',
'evaluator',
'calculator',
'expression',
'abs',
'acos',
'acosh',
'acot',
Expand All @@ -31,6 +34,7 @@ export const tool = defineTool({
'sech',
'sin',
'sinh',
'sqrt',
'tan',
'tanh',
],
Expand Down
3 changes: 3 additions & 0 deletions src/tools/math-evaluator/math-evaluator.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
/>

<c-card v-if="result !== ''" title="Result " mt-5>
Expand Down

0 comments on commit 58de897

Please sign in to comment.