refactor(style): updated linter config

This commit is contained in:
Corentin Thomasset 2022-04-15 23:10:47 +02:00
parent 39746e07c5
commit 6b58ec554a
No known key found for this signature in database
GPG key ID: DBD997E935996158
27 changed files with 1144 additions and 571 deletions

View file

@ -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>