Some checks failed
build-and-deploy / build-and-deploy (push) Has been cancelled
- Agregar share_target al manifest de la PWA - Crear endpoint /api/share-target para recibir archivos compartidos - Guardar archivos temporalmente en /public/temp-shared - Modificar UserProfileForm para aceptar imágenes externas - Detectar automáticamente imágenes compartidas y procesarlas - Crear endpoint /api/share-target/cleanup para limpiar temporales - Mostrar toast informativo al recibir imagen compartida - Redirigir automáticamente al formulario de perfil - Soportar compartir desde galería, otras apps, etc.
30 lines
1.1 KiB
HTML
30 lines
1.1 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="es">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<!-- El manifest proporciona información sobre el nombre, iconos y URL de inicio de la app 【407831617096888†L240-L248】. -->
|
|
<link rel="manifest" href="manifest.json">
|
|
<meta name="theme-color" content="#ffffff">
|
|
<title>DayNight PWA</title>
|
|
<link rel="icon" href="icons/icon-192x192.png" sizes="192x192">
|
|
</head>
|
|
<body>
|
|
<h1>Bienvenido a la app DayNight PWA</h1>
|
|
<p>Esta es una versión instalable de la app con soporte offline.</p>
|
|
|
|
<script>
|
|
// Registramos el service worker para habilitar caché y funcionalidad offline【407555884650804†L205-L213】.
|
|
if ('serviceWorker' in navigator) {
|
|
window.addEventListener('load', function() {
|
|
navigator.serviceWorker.register('/sw.js')
|
|
.then(function(reg) {
|
|
console.log('Service worker registrado con scope:', reg.scope);
|
|
}).catch(function(err) {
|
|
console.error('Error al registrar el service worker:', err);
|
|
});
|
|
});
|
|
}
|
|
</script>
|
|
</body>
|
|
</html> |