feat: enhance call and point registration features with sensor data integration

- Updated the CallWindow component to include connection quality states and reconnection attempts, improving user experience during calls.
- Enhanced the ChatWindow to allow starting audio and video calls in a new window, providing users with more flexibility.
- Integrated accelerometer and gyroscope data collection in the RegistroPonto component, enabling validation of point registration authenticity.
- Improved error handling and user feedback for sensor permissions and data validation, ensuring a smoother registration process.
- Updated backend logic to validate sensor data and adjust confidence scores for point registration, enhancing security against spoofing.
This commit is contained in:
2025-11-22 20:49:52 -03:00
parent fc4b5c5ba5
commit f818756efc
15 changed files with 2100 additions and 275 deletions

View File

@@ -1,10 +1,6 @@
<script lang="ts">
import { resolve } from '$app/paths';
import { browser } from '$app/environment';
import type { ConstructorOfATypedSvelteComponent } from 'svelte/types/runtime/component';
import CybersecurityWizcard from '$lib/components/ti/CybersecurityWizcard.svelte';
// Usar tipo amplo para evitar conflitos de tipagem do import dinâmico no build
let Comp: ConstructorOfATypedSvelteComponent<typeof CybersecurityWizcard> | null = null;
</script>
<svelte:head>
@@ -27,11 +23,5 @@
<a href={resolve('/ti')} class="btn btn-outline btn-primary">Voltar para TI</a>
</header>
{#if browser && Comp}
<svelte:component this={Comp} />
{:else}
<div class="alert">
<span>Carregando módulo de cibersegurança…</span>
</div>
{/if}
<CybersecurityWizcard />
</section>