From 23d3bd35dd92fc204b9411b319c4c058f34d1a54 Mon Sep 17 00:00:00 2001 From: padreug Date: Mon, 10 Feb 2025 21:06:37 +0100 Subject: [PATCH] add copy button --- src/i18n/locales/en.ts | 4 +++ src/i18n/locales/es.ts | 4 +++ src/pages/DirectoryItem.vue | 61 +++++++++++++++++++++++++++++++++++-- 3 files changed, 66 insertions(+), 3 deletions(-) diff --git a/src/i18n/locales/en.ts b/src/i18n/locales/en.ts index cbb6d72..323f5f0 100644 --- a/src/i18n/locales/en.ts +++ b/src/i18n/locales/en.ts @@ -35,6 +35,10 @@ export default { itemNotFound: 'Directory Item Not Found', itemNotFoundDesc: 'The directory item you are looking for could not be found.', backToDirectory: 'Back to Directory', + share: 'Share', + shareTitle: 'Share this listing', + copyLink: 'Copy Link', + linkCopied: 'Link copied to clipboard!', }, footer: { poweredBy: 'Powered by', diff --git a/src/i18n/locales/es.ts b/src/i18n/locales/es.ts index c132140..69019b0 100644 --- a/src/i18n/locales/es.ts +++ b/src/i18n/locales/es.ts @@ -35,6 +35,10 @@ export default { itemNotFound: 'Elemento del Directorio No Encontrado', itemNotFoundDesc: 'No se pudo encontrar el elemento del directorio que estás buscando.', backToDirectory: 'Volver al Directorio', + share: 'Compartir', + shareTitle: 'Compartir este listado', + copyLink: 'Copiar enlace', + linkCopied: '¡Enlace copiado al portapapeles!', }, footer: { poweredBy: 'Alimentado por', diff --git a/src/pages/DirectoryItem.vue b/src/pages/DirectoryItem.vue index a0b1d51..1197607 100644 --- a/src/pages/DirectoryItem.vue +++ b/src/pages/DirectoryItem.vue @@ -1,7 +1,9 @@