fix(reception): eliminacion de fondos graficos invasivos y correccion definitiva en resolucion de DNI v3.8.56

This commit is contained in:
2026-10-28 15:59:23 -03:00
parent aa61c19910
commit b10fc14152
10 changed files with 119 additions and 81 deletions
+20 -41
View File
@@ -40,12 +40,9 @@
<!-- 1. Tarjeta de Entrada de Lectura Óptica (Pistola USB / DNI) -->
<div class="card border-0 shadow-sm rounded-4 p-4 mb-4 scanner-card">
<div class="d-flex align-items-center justify-content-between mb-3">
<div class="d-flex align-items-center gap-2">
<img src="/img/mini_logo_icon.png" alt="Icono" height="20" class="rounded shadow-xs">
<h5 class="fw-bold mb-0 text-body d-flex align-items-center">
<i class="bi bi-upc-scan me-2 text-primary"></i>Lector Óptico de Acceso
</h5>
</div>
<h5 class="fw-bold mb-0 text-body d-flex align-items-center">
<i class="bi bi-upc-scan me-2 text-primary"></i>Lector Óptico de Acceso
</h5>
<span class="small fw-semibold d-flex align-items-center gap-1" id="scannerFocusIndicator" title="Estado de foco del lector">
<span class="scanner-idle-dot"></span> Manual
</span>
@@ -148,28 +145,28 @@
<div class="col-12 col-lg-7 col-xl-7">
<!-- 1. Tarjeta de Resultado en Pantalla de Validación Instantánea -->
<div class="card border-0 shadow-sm rounded-4 overflow-hidden mb-4 result-validation-card" id="resultCard" style="min-height: 380px;">
<!-- Header con Banner Gráfico Oficial (square_course_name.png) -->
<div class="card-header py-3 px-4 border-0 d-flex align-items-center justify-content-between transition-all header-course-banner" id="resultHeader">
<h5 class="fw-bold mb-0 text-white d-flex align-items-center" id="resultStatusText">
<i class="bi bi-person-badge me-2 opacity-75"></i> Esperando lectura...
<!-- Header de Validación Limpio y Sobrio -->
<div class="card-header py-3 px-4 bg-body border-bottom d-flex align-items-center justify-content-between transition-all" id="resultHeader">
<h5 class="fw-bold mb-0 text-body d-flex align-items-center" id="resultStatusText">
<i class="bi bi-person-badge me-2 text-primary"></i> Esperando lectura...
</h5>
<div class="d-flex align-items-center gap-2">
<span class="badge bg-white text-dark border shadow-xs px-2 py-1 small rounded-pill d-none animate-pulse-badge" id="scanAlertBadge">
<i class="bi bi-lightning-charge-fill text-warning me-1"></i> ¡Nuevo Escaneo!
</span>
<span class="badge bg-black bg-opacity-40 text-white border border-white border-opacity-25 rounded-pill px-3 py-1 font-monospace" id="resultTimeBadge">--:--</span>
<span class="badge bg-secondary-subtle text-secondary rounded-pill px-3 py-1 font-monospace" id="resultTimeBadge">--:--</span>
</div>
</div>
<!-- Cuerpo con Marca de Agua Botánica Sutil (bg_course-card.png) -->
<div class="card-body p-4 d-flex flex-column justify-content-center text-center result-body-watermark" id="resultBody">
<!-- Cuerpo Limpio y Moderno sin Imágenes Invasivas -->
<div class="card-body p-4 d-flex flex-column justify-content-center text-center" id="resultBody">
<div class="py-5 text-muted" id="waitingState">
<div class="mb-3 d-inline-block p-3 rounded-circle bg-primary bg-opacity-10 text-primary">
<i class="bi bi-qr-code-scan display-4 d-block"></i>
</div>
<h4 class="fw-bold text-body">Apunta el lector óptico a la credencial</h4>
<h4 class="fw-bold text-body">Apunta el lector óptico a la credencial o ingresa el DNI</h4>
<p class="small text-muted max-w-md mx-auto mb-0">
Al detectar la credencial dinámica o física del alumno o docente, el sistema mostrará instantáneamente sus datos de ingreso y las aulas donde cursa hoy.
Al detectar la credencial dinámica o física del alumno o docente (o al tipear su DNI), el sistema mostrará instantáneamente sus datos de ingreso y las aulas donde cursa hoy.
</p>
</div>
@@ -578,7 +575,10 @@
focusScannerInput();
return;
}
val = val.replace(/Ñ/g, ':').replace(/ñ/g, ':');
// Solo normalizar Ñ por : si el código contiene prefijos de protocolo institucional (UNICABA, USR, DNI)
if (/^(UNICABA|USR|DNI)ñ/i.test(val) || /UNICABAÑ|ÑUSRÑ|ÑDNIÑ/i.test(val)) {
val = val.replace(/Ñ/g, ':').replace(/ñ/g, ':');
}
verifyToken(val);
input.value = '';
if (isAutoFocusActive) {
@@ -649,7 +649,7 @@
// AUTORIZADO CON CLASES HOY -> VERDE INSTITUCIONAL
resultCard.className = 'card border-2 border-success shadow-lg rounded-4 overflow-hidden mb-4 animate-scan-success result-validation-card';
resultCard.style.backgroundColor = '';
cardHeader.className = 'card-header py-3 px-4 bg-success text-white border-0 d-flex align-items-center justify-content-between header-course-banner';
cardHeader.className = 'card-header py-3 px-4 bg-success text-white border-0 d-flex align-items-center justify-content-between';
statusText.innerHTML = '<i class="bi bi-check-circle-fill me-2"></i> ACCESO AUTORIZADO — TIENE CLASE HOY';
timeBadge.className = 'badge bg-white text-success rounded-pill px-3 py-1 font-monospace fw-bold';
matriculaBadge.className = 'badge bg-success rounded-pill px-3 py-1 mb-1 me-1';
@@ -659,7 +659,7 @@
// AUTORIZADO PERO SIN CLASES HOY -> ÁMBAR
resultCard.className = 'card border-2 border-warning shadow-lg rounded-4 overflow-hidden mb-4 animate-scan-warning result-validation-card';
resultCard.style.backgroundColor = '';
cardHeader.className = 'card-header py-3 px-4 bg-warning text-dark border-0 d-flex align-items-center justify-content-between fw-bold header-course-banner';
cardHeader.className = 'card-header py-3 px-4 bg-warning text-dark border-0 d-flex align-items-center justify-content-between fw-bold';
statusText.innerHTML = '<i class="bi bi-calendar-x-fill text-dark me-2"></i> ACCESO AUTORIZADO — SIN CLASES PROGRAMADAS HOY';
timeBadge.className = 'badge bg-dark text-white rounded-pill px-3 py-1 font-monospace';
matriculaBadge.className = 'badge bg-success rounded-pill px-3 py-1 mb-1 me-1';
@@ -669,7 +669,7 @@
} else if (data.status === 'RESTRINGIDO') {
resultCard.className = 'card border-2 border-warning shadow-lg rounded-4 overflow-hidden mb-4 animate-scan-warning result-validation-card';
resultCard.style.backgroundColor = '';
cardHeader.className = 'card-header py-3 px-4 bg-warning text-dark border-0 d-flex align-items-center justify-content-between fw-bold header-course-banner';
cardHeader.className = 'card-header py-3 px-4 bg-warning text-dark border-0 d-flex align-items-center justify-content-between fw-bold';
statusText.innerHTML = '<i class="bi bi-exclamation-triangle-fill me-2"></i> ACCESO OBSERVADO / RESTRINGIDO';
timeBadge.className = 'badge bg-dark text-white rounded-pill px-3 py-1 font-monospace';
matriculaBadge.className = 'badge bg-warning text-dark rounded-pill px-3 py-1 mb-1';
@@ -679,7 +679,7 @@
// DENEGADO -> ROJO
resultCard.className = 'card border-2 border-danger shadow-lg rounded-4 overflow-hidden mb-4 animate-scan-danger result-validation-card';
resultCard.style.backgroundColor = '';
cardHeader.className = 'card-header py-3 px-4 bg-danger text-white border-0 d-flex align-items-center justify-content-between header-course-banner';
cardHeader.className = 'card-header py-3 px-4 bg-danger text-white border-0 d-flex align-items-center justify-content-between';
statusText.innerHTML = '<i class="bi bi-x-circle-fill me-2"></i> ACCESO DENEGADO';
timeBadge.className = 'badge bg-white text-danger rounded-pill px-3 py-1 font-monospace fw-bold';
matriculaBadge.className = 'badge bg-danger rounded-pill px-3 py-1 mb-1';
@@ -899,23 +899,6 @@
100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
/* Recursos Gráficos Sutiles: Banner de Cabecera y Marca de Agua Botánica */
.header-course-banner {
background-image: linear-gradient(135deg, rgba(30, 27, 75, 0.92) 0%, rgba(67, 56, 202, 0.85) 60%, rgba(180, 62, 142, 0.90) 100%),
url('/img/square_course_name.png');
background-size: cover;
background-position: center right;
}
.result-body-watermark {
position: relative;
background-image: url('/img/bg_course-card.png');
background-repeat: no-repeat;
background-position: bottom right;
background-size: 260px auto;
background-blend-mode: overlay;
}
/* Animaciones de Flash de Escaneo */
@keyframes scan-flash-success {
0% { transform: scale(0.99); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.8); }
@@ -983,10 +966,6 @@
border-color: rgba(255, 255, 255, 0.08) !important;
}
[data-bs-theme="dark"] .result-body-watermark {
background-blend-mode: screen;
opacity: 0.98;
}
[data-bs-theme="dark"] #recentLogsTable thead,
[data-bs-theme="dark"] #recentLogsTable thead th {