feat: WhatsApp Nucleo con Nuxt 4 + Baileys v7
Some checks failed
Build and Deploy / build-and-deploy (push) Failing after 6m46s
Some checks failed
Build and Deploy / build-and-deploy (push) Failing after 6m46s
Reemplazo completo de Evolution API por implementación directa con Baileys. Características: - Dashboard completo con Nuxt UI v4 - Soporte para múltiples instancias de WhatsApp - Conexión via QR code o pairing code - Persistencia de mensajes en PostgreSQL - API REST para integraciones externas - Webhooks con firma HMAC - SSE para actualizaciones en tiempo real - Autenticación con Authentik
This commit is contained in:
39
app/layouts/dashboard.vue
Normal file
39
app/layouts/dashboard.vue
Normal file
@@ -0,0 +1,39 @@
|
||||
<template>
|
||||
<div class="whatsapp-shell min-h-screen text-[var(--wa-text)]">
|
||||
<UDashboardGroup storage-key="whatsapp-dashboard" class="h-full">
|
||||
<AppSidebar />
|
||||
|
||||
<UDashboardPanel class="bg-transparent">
|
||||
<template #header>
|
||||
<div class="flex flex-col gap-4 px-4 py-4 lg:px-6">
|
||||
<UDashboardNavbar :title="pageTitle" :icon="pageIcon" toggle-side="left">
|
||||
<template #leading>
|
||||
<UDashboardSidebarCollapse variant="subtle" />
|
||||
</template>
|
||||
<template #toggle>
|
||||
<UDashboardSidebarToggle variant="subtle" />
|
||||
</template>
|
||||
<template #trailing>
|
||||
<ConnectionStatus />
|
||||
<UserMenu />
|
||||
</template>
|
||||
</UDashboardNavbar>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<template #body>
|
||||
<div class="px-4 pb-10 lg:px-8">
|
||||
<slot />
|
||||
</div>
|
||||
</template>
|
||||
</UDashboardPanel>
|
||||
</UDashboardGroup>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
const route = useRoute()
|
||||
|
||||
const pageTitle = computed(() => (route.meta.title as string) || 'WhatsApp Nucleo')
|
||||
const pageIcon = computed(() => (route.meta.icon as string) || 'i-lucide-message-circle')
|
||||
</script>
|
||||
Reference in New Issue
Block a user