aboutsummaryrefslogtreecommitdiff
path: root/src/tools/text-statistics/text-statistics.vue
diff options
context:
space:
mode:
authorGravatar Corentin Thomasset <corentin.thomasset74@gmail.com> 2022-04-15 23:10:47 +0200
committerGravatar Corentin Thomasset <corentin.thomasset74@gmail.com> 2022-04-15 23:10:47 +0200
commit6b58ec554a0de91139f16d67cec42536d093d5fb (patch)
tree3bebdbcf4fab37692397b57ff62440ad4e0f1a83 /src/tools/text-statistics/text-statistics.vue
parent39746e07c53c22ac132ad2aaf25dd71bb6458cde (diff)
downloadit-tools-6b58ec554a0de91139f16d67cec42536d093d5fb.tar.gz
it-tools-6b58ec554a0de91139f16d67cec42536d093d5fb.tar.zst
it-tools-6b58ec554a0de91139f16d67cec42536d093d5fb.zip
refactor(style): updated linter config
Diffstat (limited to 'src/tools/text-statistics/text-statistics.vue')
-rw-r--r--src/tools/text-statistics/text-statistics.vue27
1 files changed, 22 insertions, 5 deletions
diff --git a/src/tools/text-statistics/text-statistics.vue b/src/tools/text-statistics/text-statistics.vue
index 1563c43..90504ce 100644
--- a/src/tools/text-statistics/text-statistics.vue
+++ b/src/tools/text-statistics/text-statistics.vue
@@ -1,13 +1,30 @@
<template>
<n-card>
- <n-input v-model:value="text" type="textarea" placeholder="Your text..." rows="5" />
+ <n-input
+ v-model:value="text"
+ type="textarea"
+ placeholder="Your text..."
+ rows="5"
+ />
<br>
<br>
<n-space justify="space-around">
- <n-statistic label="Character count" :value="text.length" />
- <n-statistic label="Word count" :value="text.split(/\s+/).length" />
- <n-statistic label="Line count" :value="text.split(/\r\n|\r|\n/).length" />
- <n-statistic label="Byte size" :value="formatBytes(getStringSizeInBytes(text))" />
+ <n-statistic
+ label="Character count"
+ :value="text.length"
+ />
+ <n-statistic
+ label="Word count"
+ :value="text.split(/\s+/).length"
+ />
+ <n-statistic
+ label="Line count"
+ :value="text.split(/\r\n|\r|\n/).length"
+ />
+ <n-statistic
+ label="Byte size"
+ :value="formatBytes(getStringSizeInBytes(text))"
+ />
</n-space>
</n-card>
</template>