Files
printerCentral/pwa/index.html
josedario87 bc5eb826e8
All checks were successful
build-and-deploy / build-and-deploy (push) Successful in 36s
fix: Autenticación por token para MCP Server
- Ruta /api/mcp agregada a rutas públicas de Traefik
- Validación de token Bearer en el endpoint
- Token configurado como secret MCP_AUTH_TOKEN
2025-11-25 12:56:04 -06:00

38 lines
1.4 KiB
HTML

<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Printer Central</title>
<link rel="manifest" href="manifest.json">
<link rel="icon" type="image/png" href="icons/icon-192.png">
<meta name="theme-color" content="#3f75d2">
<style>
body { font-family: Arial, sans-serif; margin: 0; padding: 0; display: flex; align-items: center; justify-content: center; min-height: 100vh; background: #f2f2f2; }
.container { text-align: center; }
.logo { width: 200px; height: 200px; }
button { padding: 10px 20px; margin-top: 20px; font-size: 16px; cursor: pointer; background-color: #3f75d2; color: #fff; border: none; border-radius: 5px; }
</style>
</head>
<body>
<div class="container">
<img src="icon.png" alt="Printer Central Logo" class="logo">
<h1>Bienvenido a Printer Central</h1>
<p>Administra tus impresoras de forma fácil y rápida.</p>
<button onclick="alert('PWA Funcionando!')">Probar</button>
</div>
<script>
if ('serviceWorker' in navigator) {
window.addEventListener('load', function() {
navigator.serviceWorker.register('sw.js').then(function(registration) {
console.log('ServiceWorker registrado con éxito', registration.scope);
}, function(err) {
console.log('ServiceWorker fallo en registrarse: ', err);
});
});
}
</script>
</body>
</html>