mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-04-23 00:06:15 -04:00
refactor(lint): linter auto fix
This commit is contained in:
parent
8e29a97404
commit
086d31eab5
54 changed files with 1122 additions and 1503 deletions
|
@ -1,20 +1,13 @@
|
|||
<template>
|
||||
<div>
|
||||
<n-card>
|
||||
<n-space
|
||||
align="center"
|
||||
justify="center"
|
||||
>
|
||||
<n-space align="center" justify="center">
|
||||
Quantity :
|
||||
<n-input-number
|
||||
v-model:value="count"
|
||||
:min="1"
|
||||
:max="50"
|
||||
/>
|
||||
<n-input-number v-model:value="count" :min="1" :max="50" />
|
||||
</n-space>
|
||||
<br>
|
||||
<br />
|
||||
<n-input
|
||||
style="text-align: center; font-family: monospace;"
|
||||
style="text-align: center; font-family: monospace"
|
||||
:value="uuids"
|
||||
type="textarea"
|
||||
placeholder="Your uuids"
|
||||
|
@ -25,22 +18,11 @@
|
|||
autocapitalize="off"
|
||||
spellcheck="false"
|
||||
/>
|
||||
<br>
|
||||
<br>
|
||||
<br />
|
||||
<br />
|
||||
<n-space justify="center">
|
||||
<n-button
|
||||
secondary
|
||||
autofocus
|
||||
@click="copy"
|
||||
>
|
||||
Copy
|
||||
</n-button>
|
||||
<n-button
|
||||
secondary
|
||||
@click="refreshUUIDs"
|
||||
>
|
||||
Refresh
|
||||
</n-button>
|
||||
<n-button secondary autofocus @click="copy"> Copy </n-button>
|
||||
<n-button secondary @click="refreshUUIDs"> Refresh </n-button>
|
||||
</n-space>
|
||||
</n-card>
|
||||
</div>
|
||||
|
@ -48,20 +30,20 @@
|
|||
|
||||
<script setup lang="ts">
|
||||
import { useCopy } from '@/composable/copy';
|
||||
import { ref, watch } from 'vue'
|
||||
import { ref, watch } from 'vue';
|
||||
import { v4 as generateUUID } from 'uuid';
|
||||
|
||||
const count = ref(1)
|
||||
const count = ref(1);
|
||||
|
||||
const uuids = ref('')
|
||||
const uuids = ref('');
|
||||
|
||||
function refreshUUIDs() {
|
||||
uuids.value = Array.from({ length: count.value }, () => generateUUID()).join('\n')
|
||||
uuids.value = Array.from({ length: count.value }, () => generateUUID()).join('\n');
|
||||
}
|
||||
|
||||
watch([count], refreshUUIDs)
|
||||
watch([count], refreshUUIDs);
|
||||
|
||||
const { copy } = useCopy({ source: uuids, text: 'UUIDs copied to the clipboard' })
|
||||
const { copy } = useCopy({ source: uuids, text: 'UUIDs copied to the clipboard' });
|
||||
|
||||
refreshUUIDs()
|
||||
refreshUUIDs();
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue