Collection of handy online tools for developers, with great UX.
TypeScript converterdeveloper-productivitydeveloper-toolsfrontendjavascriptproductivitytooltoolstypescriptvuejswebsite
fix(hash-text): added missing toString()
Corentin Thomasset4ca5fce911c3
diff --git a/src/tools/hash-text/hash-text.vue b/src/tools/hash-text/hash-text.vueindex 30a97b80..45364a33 100644--- a/src/tools/hash-text/hash-text.vue+++ b/src/tools/hash-text/hash-text.vue@@ -17,7 +17,7 @@<br /><n-inputstyle="text-align: center;"- v-model:value="hashedText"+ :value="hashedText"type="textarea"placeholder="Your string hash":autosize="{ minRows: 1 }"@@ -61,9 +61,9 @@ const algos = {RIPEMD160,} as const;-const clearText = ref('Lorem ipsum')-const hashedText = computed(() => algos[algo.value](clearText.value))+const clearText = ref('Lorem ipsum dolor sit amet, consectetur adipiscing elit. Lacus metus blandit dolor lacus natoque ad fusce aliquam velit.')const algo = ref<keyof typeof algos>('SHA256')+const hashedText = computed(() => algos[algo.value](clearText.value).toString())const { copy } = useCopy({ source: hashedText, text: 'Token copied to the clipboard' })</script>