From c7c32d8c54e26db24cb3114fccd823828a5b2135 Mon Sep 17 00:00:00 2001 From: josedario87 Date: Tue, 25 Nov 2025 01:57:24 -0600 Subject: [PATCH] =?UTF-8?q?feat:=20Variables=20program=C3=A1ticas=20en=20t?= =?UTF-8?q?emplates?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Permite definir variables en templates con sintaxis {{nombre:label:default}} - Auto-detección de variables al guardar templates - Drawer para completar valores al cargar template con variables - Badge mostrando cantidad de variables en tarjeta de template - Resolución de variables antes de cargar en cola --- app/components/templates/TemplateCard.vue | 5 +- app/components/templates/TemplateList.vue | 43 +++++++++- app/components/templates/VariablesDrawer.vue | 88 ++++++++++++++++++++ app/composables/useTemplates.ts | 29 ++++++- app/pages/index.vue | 12 ++- server/utils/templates.ts | 50 ++++++++++- 6 files changed, 214 insertions(+), 13 deletions(-) create mode 100644 app/components/templates/VariablesDrawer.vue diff --git a/app/components/templates/TemplateCard.vue b/app/components/templates/TemplateCard.vue index 16e3f47..5aa3ad8 100644 --- a/app/components/templates/TemplateCard.vue +++ b/app/components/templates/TemplateCard.vue @@ -51,10 +51,13 @@ function formatDate(date: string | number) { > {{ template.description }}
+ Template: {{ template?.name }} +