Feat: Agregar botones de Copiar Texto y Copiar JSON
All checks were successful
build-and-deploy / build-and-deploy (push) Successful in 47s

Implementa funcionalidad de copia en tres secciones del Informe:

📋 Funcionalidades agregadas:
1. Lista de Ingresos
   - Copiar Texto: Formato WhatsApp con emojis y legible
   - Copiar JSON: Formato estructurado para sistemas

2. Top 10 Clientes
   - Copiar Texto: Ranking formateado con métricas
   - Copiar JSON: Array de objetos con datos completos

3. Serie Temporal Acumulada
   - Copiar Texto: Evolución temporal con emojis
   - Copiar JSON: Datos completos para análisis

 Características:
- Botones con iconos (i-lucide-copy y i-lucide-code)
- Disabled cuando no hay datos disponibles
- Alertas de confirmación al copiar
- Formato texto optimizado para WhatsApp
- Incluye metadata: rango de fechas y timestamp

Uso:
- Copiar Texto → Compartir en WhatsApp/Telegram
- Copiar JSON → Integración con otros sistemas
This commit is contained in:
2025-10-30 16:33:54 -06:00
parent 507fb9ba1c
commit 63c7043664
10 changed files with 1143 additions and 134 deletions

View File

@@ -10,8 +10,17 @@
</template>
<script setup lang="ts">
// Inicializar sistema de temas
const { loadTheme, initStorageListener, cleanupStorageListener } = useTheme()
// Signal that the app is ready
onMounted(() => {
// Cargar tema guardado (o aplicar el por defecto)
loadTheme()
// Inicializar sincronización de tema entre pestañas
initStorageListener()
// Add class to HTML element to hide loading screen
if (process.client) {
// Small delay to ensure everything is painted
@@ -20,4 +29,9 @@ onMounted(() => {
}, 100)
}
})
// Limpiar listeners al desmontar
onBeforeUnmount(() => {
cleanupStorageListener()
})
</script>