chore(lint): switched to a better lint config

This commit is contained in:
Corentin Thomasset 2023-05-28 23:13:24 +02:00 committed by Corentin THOMASSET
parent 4d2b037dbe
commit 33c9b6643f
178 changed files with 4105 additions and 3371 deletions

View file

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