diff --git a/nuxt4/app/components/CameraCapture.vue b/nuxt4/app/components/CameraCapture.vue index 8f066aa..ca08337 100644 --- a/nuxt4/app/components/CameraCapture.vue +++ b/nuxt4/app/components/CameraCapture.vue @@ -212,11 +212,13 @@ const startCamera = async () => { // Si tenemos un deviceId específico, úsalo if (cameras.value.length > 0 && cameras.value[currentCameraIndex.value]) { - const camera = cameras.value[currentCameraIndex.value] - constraints.video = { - ...constraints.video, - deviceId: { exact: camera.deviceId } - } as MediaTrackConstraints + const camera = cameras.value[currentCameraIndex.value]! + if (typeof constraints.video === 'object' && constraints.video !== null) { + constraints.video = { + ...constraints.video, + deviceId: { exact: camera.deviceId } + } as MediaTrackConstraints + } } try { diff --git a/nuxt4/app/components/UserProfileForm.vue b/nuxt4/app/components/UserProfileForm.vue index 67df3af..90f25b8 100644 --- a/nuxt4/app/components/UserProfileForm.vue +++ b/nuxt4/app/components/UserProfileForm.vue @@ -287,22 +287,24 @@ - -
- + +
diff --git a/nuxt4/app/components/auth/ApplicationsList.vue b/nuxt4/app/components/auth/ApplicationsList.vue index 3fc666a..cfb2463 100644 --- a/nuxt4/app/components/auth/ApplicationsList.vue +++ b/nuxt4/app/components/auth/ApplicationsList.vue @@ -180,10 +180,10 @@ const searchQuery = ref(searchCookie.value || '') const failedIcons = ref>(new Set()) // Función para obtener la URL del icono de una app -const getAppIconUrl = (app: Application): string | null => { +const getAppIconUrl = (app: Application): string | undefined => { // Si el icono ya falló, no intentar de nuevo if (failedIcons.value.has(app.pk)) { - return null + return undefined } // Intentar primero ícono local basado en slug @@ -204,7 +204,7 @@ const getAppIconUrl = (app: Application): string | null => { const url = new URL(app.launchUrl) return `${url.origin}${app.icon.startsWith('/') ? '' : '/'}${app.icon}` } catch { - return null + return undefined } } @@ -214,7 +214,7 @@ const getAppIconUrl = (app: Application): string | null => { // Intentar primero apple-touch-icon (suele ser de mejor calidad) return `${url.origin}/apple-touch-icon.png` } catch { - return null + return undefined } } diff --git a/nuxt4/nuxt.config.ts b/nuxt4/nuxt.config.ts index 48d8881..50afc6d 100644 --- a/nuxt4/nuxt.config.ts +++ b/nuxt4/nuxt.config.ts @@ -47,7 +47,8 @@ export default defineNuxtConfig({ client_mode: 'navigate-existing' }, // Capturar todos los enlaces que apunten a esta app - capture_links: 'existing-client-navigate', + // NOTA: capture_links es experimental y no está en los tipos de ManifestOptions + // capture_links: 'existing-client-navigate', // Extender scope a otros subdominios de Nucleo V3 scope_extensions: [ {