aboutsummaryrefslogtreecommitdiff
path: root/src/tools/math-evaluator/math-evaluator.vue
diff options
context:
space:
mode:
authorGravatar Corentin Thomasset <corentin.thomasset74@gmail.com> 2023-05-28 23:13:24 +0200
committerGravatar Corentin THOMASSET <corentin.thomasset74@gmail.com> 2023-05-28 23:29:14 +0200
commit33c9b6643f58a6930043f460d5bfdca4bc1f7222 (patch)
treef313935e30f7b90ea16e564e7171e2e72319ce29 /src/tools/math-evaluator/math-evaluator.vue
parent4d2b037dbe4e78aa90a4a6d9c7315dcf0a51fed9 (diff)
downloadit-tools-33c9b6643f58a6930043f460d5bfdca4bc1f7222.tar.gz
it-tools-33c9b6643f58a6930043f460d5bfdca4bc1f7222.tar.zst
it-tools-33c9b6643f58a6930043f460d5bfdca4bc1f7222.zip
chore(lint): switched to a better lint config
Diffstat (limited to 'src/tools/math-evaluator/math-evaluator.vue')
-rw-r--r--src/tools/math-evaluator/math-evaluator.vue20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/tools/math-evaluator/math-evaluator.vue b/src/tools/math-evaluator/math-evaluator.vue
index a8b359b..0429e6e 100644
--- a/src/tools/math-evaluator/math-evaluator.vue
+++ b/src/tools/math-evaluator/math-evaluator.vue
@@ -1,3 +1,13 @@
+<script setup lang="ts">
+import { evaluate } from 'mathjs';
+import { computed, ref } from 'vue';
+import { withDefaultOnError } from '@/utils/defaults';
+
+const expression = ref('');
+
+const result = computed(() => withDefaultOnError(() => evaluate(expression.value) ?? '', ''));
+</script>
+
<template>
<div>
<n-input
@@ -17,13 +27,3 @@
</c-card>
</div>
</template>
-
-<script setup lang="ts">
-import { withDefaultOnError } from '@/utils/defaults';
-import { evaluate } from 'mathjs';
-import { computed, ref } from 'vue';
-
-const expression = ref('');
-
-const result = computed(() => withDefaultOnError(() => evaluate(expression.value) ?? '', ''));
-</script>
value='jarred/run'>jarred/run Unnamed repository; edit this file 'description' to name the repository.
aboutsummaryrefslogtreecommitdiff
path: root/test/bun.js/websocket-server.test.ts (unfollow)
AgeCommit message (Expand)AuthorFilesLines