Agenda, Agendador, Configurações

This commit is contained in:
Leonardo
2026-03-12 08:58:36 -03:00
parent f733db8436
commit f4b185ae17
197 changed files with 33405 additions and 6507 deletions
+12
View File
@@ -4,6 +4,8 @@ import { useRoute } from 'vue-router'
import { supabase } from '@/lib/supabase/client'
import { useTenantStore } from '@/stores/tenantStore'
import { useEntitlementsStore } from '@/stores/entitlementsStore'
import AjudaDrawer from '@/components/AjudaDrawer.vue'
import { fetchDocsForPath } from '@/composables/useAjuda'
const route = useRoute()
const tenantStore = useTenantStore()
@@ -114,6 +116,9 @@ onMounted(async () => {
// snapshot inicial
await debugSnapshot('mounted')
// Carrega docs de ajuda para a rota inicial
fetchDocsForPath(route.path)
})
// snapshot a cada navegação (isso é o que vai te salvar)
@@ -121,10 +126,17 @@ watch(
() => route.fullPath,
async (to, from) => {
await debugSnapshot(`route change: ${from} -> ${to}`)
// Atualiza docs de ajuda ao navegar
fetchDocsForPath(route.path)
}
)
</script>
<template>
<router-view />
<!-- Drawer de ajuda global fora de qualquer layout, sempre disponível -->
<Teleport to="body">
<AjudaDrawer />
</Teleport>
</template>