mirror of
https://github.com/Art051/it-tools.git
synced 2025-08-11 19:29:03 +00:00
chore(lint): switched to a better lint config
This commit is contained in:
committed by
Corentin THOMASSET
parent
4d2b037dbe
commit
33c9b6643f
@@ -1,3 +1,13 @@
|
||||
<script setup lang="ts">
|
||||
import { computed, ref } from 'vue';
|
||||
import { textToNatoAlphabet } from './text-to-nato-alphabet.service';
|
||||
import { useCopy } from '@/composable/copy';
|
||||
|
||||
const input = ref('');
|
||||
const natoText = computed(() => textToNatoAlphabet({ text: input.value }));
|
||||
const { copy } = useCopy({ source: natoText, text: 'NATO alphabet string copied.' });
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<c-input-text
|
||||
@@ -9,26 +19,18 @@
|
||||
/>
|
||||
|
||||
<div v-if="natoText">
|
||||
<n-text mb-1 block>Your text in NATO phonetic alphabet</n-text>
|
||||
<n-text mb-1 block>
|
||||
Your text in NATO phonetic alphabet
|
||||
</n-text>
|
||||
<c-card>
|
||||
{{ natoText }}
|
||||
</c-card>
|
||||
|
||||
<div mt-3 flex justify-center>
|
||||
<c-button autofocus @click="copy"> Copy NATO string </c-button>
|
||||
<c-button autofocus @click="copy">
|
||||
Copy NATO string
|
||||
</c-button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { useCopy } from '@/composable/copy';
|
||||
import { computed, ref } from 'vue';
|
||||
import { textToNatoAlphabet } from './text-to-nato-alphabet.service';
|
||||
|
||||
const input = ref('');
|
||||
const natoText = computed(() => textToNatoAlphabet({ text: input.value }));
|
||||
const { copy } = useCopy({ source: natoText, text: 'NATO alphabet string copied.' });
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped></style>
|
||||
|
||||
Reference in New Issue
Block a user