mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-05-04 13:29:13 -04:00
copy
This commit is contained in:
parent
917ff521ea
commit
ab7b3a6588
4 changed files with 11 additions and 3 deletions
|
@ -78,6 +78,9 @@ toolCard:
|
||||||
new: Neu
|
new: Neu
|
||||||
search:
|
search:
|
||||||
label: Suche
|
label: Suche
|
||||||
|
copyClipboard:
|
||||||
|
tooltip: In die Zwischenablage kopieren
|
||||||
|
success: Kopiert!
|
||||||
tools:
|
tools:
|
||||||
categories:
|
categories:
|
||||||
favorite-tools: Deine Lieblingstools
|
favorite-tools: Deine Lieblingstools
|
||||||
|
@ -434,6 +437,7 @@ tools:
|
||||||
words: Anzahl Wörter
|
words: Anzahl Wörter
|
||||||
lines: Anzahl Zeilen
|
lines: Anzahl Zeilen
|
||||||
bytes: Bytegröße
|
bytes: Bytegröße
|
||||||
|
placeholder: Dein Text...
|
||||||
text-to-nato-alphabet:
|
text-to-nato-alphabet:
|
||||||
title: Text zu NATO-Alphabet
|
title: Text zu NATO-Alphabet
|
||||||
description: >-
|
description: >-
|
||||||
|
|
|
@ -72,6 +72,9 @@ toolCard:
|
||||||
new: New
|
new: New
|
||||||
search:
|
search:
|
||||||
label: Search
|
label: Search
|
||||||
|
copyClipboard:
|
||||||
|
tooltip: Copy to clipboard
|
||||||
|
success: Copied!
|
||||||
tools:
|
tools:
|
||||||
categories:
|
categories:
|
||||||
favorite-tools: Your favorite tools
|
favorite-tools: Your favorite tools
|
||||||
|
@ -407,6 +410,7 @@ tools:
|
||||||
words: Word count
|
words: Word count
|
||||||
lines: Line count
|
lines: Line count
|
||||||
bytes: Byte size
|
bytes: Byte size
|
||||||
|
placeholder: Your text...
|
||||||
text-to-nato-alphabet:
|
text-to-nato-alphabet:
|
||||||
title: Text to NATO alphabet
|
title: Text to NATO alphabet
|
||||||
description: Transform text into the NATO phonetic alphabet for oral transmission.
|
description: Transform text into the NATO phonetic alphabet for oral transmission.
|
||||||
|
|
|
@ -22,7 +22,7 @@ const props = withDefaults(
|
||||||
followHeightOf: null,
|
followHeightOf: null,
|
||||||
language: 'txt',
|
language: 'txt',
|
||||||
copyPlacement: 'top-right',
|
copyPlacement: 'top-right',
|
||||||
copyMessage: 'Copy to clipboard',
|
copyMessage: t('copyClipboard.tooltip'),
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
hljs.registerLanguage('sql', sqlHljs);
|
hljs.registerLanguage('sql', sqlHljs);
|
||||||
|
@ -37,7 +37,7 @@ const { value, language, followHeightOf, copyPlacement, copyMessage } = toRefs(p
|
||||||
const { height } = followHeightOf.value ? useElementSize(followHeightOf) : { height: ref(null) };
|
const { height } = followHeightOf.value ? useElementSize(followHeightOf) : { height: ref(null) };
|
||||||
|
|
||||||
const { copy, isJustCopied } = useCopy({ source: value, createToast: false });
|
const { copy, isJustCopied } = useCopy({ source: value, createToast: false });
|
||||||
const tooltipText = computed(() => isJustCopied.value ? 'Copied!' : copyMessage.value);
|
const tooltipText = computed(() => isJustCopied.value ? t('copyClipboard.success') : copyMessage.value);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|
|
@ -8,7 +8,7 @@ const { t } = useI18n();
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<c-card>
|
<c-card>
|
||||||
<c-input-text v-model:value="text" multiline placeholder="Your text..." rows="5" />
|
<c-input-text v-model:value="text" multiline :placeholder="t('tools.text-statistics.placeholder')" rows="5" />
|
||||||
|
|
||||||
<div mt-5 flex>
|
<div mt-5 flex>
|
||||||
<n-statistic :label="t('tools.text-statistics.characters')" :value="text.length" flex-1 />
|
<n-statistic :label="t('tools.text-statistics.characters')" :value="text.length" flex-1 />
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue