From 5a1a8857a189890a76099a3f3f705ae31d9e20c1 Mon Sep 17 00:00:00 2001 From: Lizandro Guarnizo <77708265+lizandrogd@users.noreply.github.com> Date: Wed, 20 May 2026 10:23:11 -0500 Subject: [PATCH] feat(vcard-api): modal Ver VCard + boton ver en tabla + animacion como select MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Tabla VCards: boton 'Ver' abre modal detalle con 3 tabs (Info, Redes, Apariencia) - Modal Ver VCard: muestra todos los campos, colores con preview, redes configuradas - Footer del modal: boton 'Ver VCard' abre https://vcard.u-site.app/{unico} en nueva pestaña - Footer: boton 'Editar' abre modal de edicion desde el ver - Edit VCard: campo animacion cambiado a select (Sin animacion, Fade, Slide, Zoom, Bounce, Flip) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- resources/views/vcard_api.html | 174 ++++++++++++++++++++++++++++++++- 1 file changed, 171 insertions(+), 3 deletions(-) diff --git a/resources/views/vcard_api.html b/resources/views/vcard_api.html index ffa420b..1dca75c 100644 --- a/resources/views/vcard_api.html +++ b/resources/views/vcard_api.html @@ -176,8 +176,12 @@ - +
+ + +
@@ -776,6 +780,149 @@ + + + @@ -1109,6 +1263,11 @@ function vcardApiApp() { editUsuarioError: '', editUsuarioSuccess: false, + // Modal ver vcard (detalle completo) + verVcardModal: false, + verVcardData: null, + verVcardTab: 'info', + // Modal editar vcard editVcardModal: false, editVcardTab: 'datos', @@ -1160,6 +1319,7 @@ function vcardApiApp() { this.editUsuarioModal = false; this.editVcardModal = false; this.verModal = false; + this.verVcardModal = false; }, async loadConfig() { @@ -1374,6 +1534,14 @@ function vcardApiApp() { this.saving = false; }, + // ─── Ver VCard ─────────────────────────────────────────────────────── + + openVerVcardModal(v) { + this.verVcardData = v; + this.verVcardTab = 'info'; + this.verVcardModal = true; + }, + // ─── Edit VCard ────────────────────────────────────────────────────── openEditVcardModal(v) {