refactor(math-evaluator): improved search and UX (#713)
* refactor(math-evaluator): added keywords for search * refactor(math-evaluator): improved input
This commit is contained in:
		
							parent
							
								
									02b0d0d1a1
								
							
						
					
					
						commit
						58de8970f5
					
				| @ -8,6 +8,9 @@ export const tool = defineTool({ | |||||||
|   keywords: [ |   keywords: [ | ||||||
|     'math', |     'math', | ||||||
|     'evaluator', |     'evaluator', | ||||||
|  |     'calculator', | ||||||
|  |     'expression', | ||||||
|  |     'abs', | ||||||
|     'acos', |     'acos', | ||||||
|     'acosh', |     'acosh', | ||||||
|     'acot', |     'acot', | ||||||
| @ -31,6 +34,7 @@ export const tool = defineTool({ | |||||||
|     'sech', |     'sech', | ||||||
|     'sin', |     'sin', | ||||||
|     'sinh', |     'sinh', | ||||||
|  |     'sqrt', | ||||||
|     'tan', |     'tan', | ||||||
|     'tanh', |     'tanh', | ||||||
|   ], |   ], | ||||||
|  | |||||||
| @ -16,6 +16,9 @@ const result = computed(() => withDefaultOnError(() => evaluate(expression.value | |||||||
|       multiline |       multiline | ||||||
|       placeholder="Your math expression (ex: 2*sqrt(6) )..." |       placeholder="Your math expression (ex: 2*sqrt(6) )..." | ||||||
|       raw-text |       raw-text | ||||||
|  |       monospace | ||||||
|  |       autofocus | ||||||
|  |       autosize | ||||||
|     /> |     /> | ||||||
| 
 | 
 | ||||||
|     <c-card v-if="result !== ''" title="Result " mt-5> |     <c-card v-if="result !== ''" title="Result " mt-5> | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user