feat: integrate Jitsi configuration and dynamic loading in CallWindow

- Added support for Jitsi configuration retrieval from the backend, allowing for dynamic room name generation based on the active configuration.
- Implemented a polyfill for BlobBuilder to ensure compatibility with the lib-jitsi-meet library across different browsers.
- Enhanced error handling during the loading of the Jitsi library, providing clearer feedback for missing modules and connection issues.
- Updated Vite configuration to exclude lib-jitsi-meet from SSR and allow dynamic loading in the browser.
- Introduced a new route for Jitsi settings in the dashboard for user configuration of Jitsi Meet parameters.
This commit is contained in:
2025-11-21 22:03:01 -03:00
parent 41f7942dd1
commit 52823a9fac
9 changed files with 1100 additions and 23 deletions

View File

@@ -12,7 +12,8 @@
| 'document'
| 'teams'
| 'userPlus'
| 'clock';
| 'clock'
| 'video';
type PaletteKey = 'primary' | 'success' | 'secondary' | 'accent' | 'info' | 'error' | 'warning';
type TiRouteId =
@@ -28,7 +29,8 @@
| '/(dashboard)/ti/notificacoes'
| '/(dashboard)/ti/monitoramento'
| '/(dashboard)/ti/configuracoes-ponto'
| '/(dashboard)/ti/configuracoes-relogio';
| '/(dashboard)/ti/configuracoes-relogio'
| '/(dashboard)/ti/configuracoes-jitsi';
type FeatureCard = {
title: string;
@@ -202,6 +204,13 @@
strokeLinecap: 'round',
strokeLinejoin: 'round'
}
],
video: [
{
d: 'M15 10l4.553-2.276A1 1 0 0121 8.618v6.764a1 1 0 01-1.447.894L15 14M5 18h8a2 2 0 002-2V8a2 2 0 00-2-2H5a2 2 0 00-2 2v8a2 2 0 002 2z',
strokeLinecap: 'round',
strokeLinejoin: 'round'
}
]
};
@@ -259,6 +268,15 @@
palette: 'secondary',
icon: 'envelope'
},
{
title: 'Configurações do Jitsi',
description:
'Configure o servidor Jitsi Meet para chamadas de vídeo e áudio no chat. Ajuste domínio, App ID e prefixo de salas.',
ctaLabel: 'Configurar Jitsi',
href: '/(dashboard)/ti/configuracoes-jitsi',
palette: 'primary',
icon: 'video'
},
{
title: 'Configurações de Ponto',
description: