fix(pos): eliminar boton salir superior duplicado, colocar salir unico a la derecha de Terminal Soda y subir admin al lado de notificaciones

This commit is contained in:
unknown
2026-10-07 01:55:51 -06:00
parent 51d534d330
commit 5dbd7c06aa
3 changed files with 32 additions and 37 deletions
+2 -2
View File
@@ -12,7 +12,7 @@
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"> <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="apple-mobile-web-app-title" content="SiboPay"> <meta name="apple-mobile-web-app-title" content="SiboPay">
<meta name="mobile-web-app-capable" content="yes"> <meta name="mobile-web-app-capable" content="yes">
<link rel="stylesheet" href="/css/styles.css?v=10.6"> <link rel="stylesheet" href="/css/styles.css?v=10.7">
<style> <style>
/* Transiciones suaves */ /* Transiciones suaves */
.fade-enter { animation: fadeIn 0.2s ease-in-out; } .fade-enter { animation: fadeIn 0.2s ease-in-out; }
@@ -2639,6 +2639,6 @@
<script src="/js/sounds.js?v=9.6"></script> <script src="/js/sounds.js?v=9.6"></script>
<script src="/js/jsQR.js"></script> <script src="/js/jsQR.js"></script>
<script src="/js/food-icons.js?v=1.1"></script> <script src="/js/food-icons.js?v=1.1"></script>
<script src="/js/app.js?v=10.6"></script> <script src="/js/app.js?v=10.7"></script>
</body> </body>
</html> </html>
+17 -22
View File
@@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>SiboPay POS - Terminal de Mostrador y Despacho</title> <title>SiboPay POS - Terminal de Mostrador y Despacho</title>
<link rel="icon" type="image/png" href="/img/sibopay-emblem.png"> <link rel="icon" type="image/png" href="/img/sibopay-emblem.png">
<link rel="stylesheet" href="/css/styles.css?v=10.6"> <link rel="stylesheet" href="/css/styles.css?v=10.7">
<style> <style>
/* Estilos específicos de terminal de alta velocidad */ /* Estilos específicos de terminal de alta velocidad */
.student-badge-scanned { .student-badge-scanned {
@@ -72,26 +72,30 @@
<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline-block; vertical-align:middle; margin-right:4px;"><rect width="20" height="14" x="2" y="5" rx="2"/><line x1="2" x2="22" y1="10" y2="10"/></svg> Caja / Cobro QR <svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline-block; vertical-align:middle; margin-right:4px;"><rect width="20" height="14" x="2" y="5" rx="2"/><line x1="2" x2="22" y1="10" y2="10"/></svg> Caja / Cobro QR
<span class="pos-mobile-nav-badge" id="mobileCartBadge" style="display: none;">0</span> <span class="pos-mobile-nav-badge" id="mobileCartBadge" style="display: none;">0</span>
</button> </button>
<button type="button" onclick="posLogout()" class="pos-mobile-nav-btn" style="flex: 0 0 auto; padding: 10px 14px; background: #fef2f2; border: 1.5px solid #fecaca; color: #dc2626; font-weight: 800; border-radius: 10px; cursor: pointer;" title="Cerrar sesión de la terminal">
<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.3" stroke-linecap="round" stroke-linejoin="round"><path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"/><polyline points="16 17 21 12 16 7"/><line x1="21" y1="12" x2="9" y2="12"/></svg>
<span>Salir</span>
</button>
</div> </div>
<div class="pos-layout"> <div class="pos-layout">
<!-- PANEL IZQUIERDO: CATÁLOGO TÁCTIL Y COLA DE PRE-ÓRDENES --> <!-- PANEL IZQUIERDO: CATÁLOGO TÁCTIL Y COLA DE PRE-ÓRDENES -->
<div class="pos-catalog-pane"> <div class="pos-catalog-pane">
<div class="pos-header-card"> <div class="pos-header-card" style="display: flex; flex-direction: column; gap: 10px;">
<!-- MARCA Y BADGES DE CONEXIÓN --> <!-- FILA SUPERIOR: MARCA A LA IZQUIERDA Y BOTÓN SALIR ÚNICO ARRIBA A LA DERECHA -->
<div style="display: flex; align-items: center; gap: 12px; flex-wrap: wrap;"> <div style="display: flex; justify-content: space-between; align-items: flex-start; width: 100%;">
<div style="display: flex; align-items: center; gap: 10px;"> <div style="display: flex; align-items: center; gap: 10px;">
<img src="/img/sibopay-emblem.png" alt="SiboPay" style="width: 38px; height: 38px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(2, 132, 199, 0.3));"> <img src="/img/sibopay-emblem.png" alt="SiboPay" style="width: 38px; height: 38px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(2, 132, 199, 0.3));">
<div> <div>
<h1 style="font-size: 1.2rem; font-weight: 800; color: #0f172a; margin: 0;">SiboPay <span style="color: #0284c7;">Terminal Soda</span></h1> <h1 style="font-size: 1.2rem; font-weight: 800; color: #0f172a; margin: 0; line-height: 1.2;">SiboPay <span style="color: #0284c7;">Terminal Soda</span></h1>
<span style="font-size: 0.76rem; color: #64748b;">Soda Escolar • Ventana de Atención Rápida</span> <span style="font-size: 0.74rem; color: #64748b;">Soda Escolar • Ventana de Atención Rápida</span>
</div> </div>
</div> </div>
<!-- BOTÓN SALIR: COLOCADO ARRIBA A LA DERECHA DE 'TERMINAL SODA' -->
<button type="button" onclick="posLogout()" class="btn-saas" style="height: 32px; font-size: 0.82rem; display: inline-flex; align-items: center; gap: 6px; font-weight: 800; cursor: pointer; color: #dc2626; background: #fef2f2; border: 1.5px solid #fecaca; border-radius: 9px; padding: 0 14px; box-shadow: 0 1px 3px rgba(220, 38, 38, 0.08); flex-shrink: 0;" title="Cerrar sesión de la terminal">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.3" stroke-linecap="round" stroke-linejoin="round"><path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"/><polyline points="16 17 21 12 16 7"/><line x1="21" y1="12" x2="9" y2="12"/></svg>
<span>Salir</span>
</button>
</div>
<!-- FILA DE ESTADO: BADGES Y BOTÓN ADMIN A LA DERECHA DE NOTIFICACIONES -->
<div style="display: flex; align-items: center; gap: 6px; flex-wrap: wrap;"> <div style="display: flex; align-items: center; gap: 6px; flex-wrap: wrap;">
<span id="pistolaStatusBadge" class="saas-status-badge" style="background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; font-weight: 700;" title="Pistola lectora USB/Bluetooth lista para escanear en cualquier momento"> <span id="pistolaStatusBadge" class="saas-status-badge" style="background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; font-weight: 700;" title="Pistola lectora USB/Bluetooth lista para escanear en cualquier momento">
<span class="saas-dot" style="background: #0284c7;"></span> <span class="saas-dot" style="background: #0284c7;"></span>
@@ -101,22 +105,13 @@
<span class="saas-dot"></span> <span class="saas-dot"></span>
En Línea (SSE) En Línea (SSE)
</span> </span>
<button id="btnPosNotificationToggle" onclick="enablePushNotificationsPrompt()" class="btn-saas btn-saas-outline" style="height: 32px; font-size: 0.76rem; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; color: #0284c7; border-color: #bae6fd;" title="Activar notificaciones de recargas en tiempo real"> <button id="btnPosNotificationToggle" onclick="enablePushNotificationsPrompt()" class="btn-saas btn-saas-outline" style="height: 30px; font-size: 0.76rem; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; color: #0284c7; border-color: #bae6fd;" title="Activar notificaciones de recargas en tiempo real">
<span>🔔</span> <span id="lblPosNotificationStatus">Notificaciones</span> <span>🔔</span> <span id="lblPosNotificationStatus">Notificaciones</span>
</button> </button>
</div> <a href="/index.html?tab=admin" class="btn-saas btn-saas-outline" style="height: 30px; font-size: 0.76rem; display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: #475569; border-color: #cbd5e1;" title="Ir al Panel de Administración">
</div>
<!-- ARRIBA A LA DERECHA: ADMIN Y SALIR -->
<div style="display: flex; align-items: center; gap: 8px; margin-left: auto;">
<a href="/index.html?tab=admin" class="btn-saas btn-saas-outline" style="height: 32px; font-size: 0.8rem; display: inline-flex; align-items: center; gap: 5px; font-weight: 700;" title="Ir al Panel de Administración">
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"/><circle cx="12" cy="12" r="3"/></svg> <svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"/><circle cx="12" cy="12" r="3"/></svg>
<span>Admin</span> <span>Admin</span>
</a> </a>
<button type="button" onclick="posLogout()" class="btn-saas" style="height: 32px; font-size: 0.82rem; display: inline-flex; align-items: center; gap: 6px; font-weight: 800; cursor: pointer; color: #dc2626; background: #fef2f2; border: 1.5px solid #fecaca; border-radius: 9px; padding: 0 14px; box-shadow: 0 1px 3px rgba(220, 38, 38, 0.1);" title="Cerrar sesión de la terminal">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.3" stroke-linecap="round" stroke-linejoin="round"><path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"/><polyline points="16 17 21 12 16 7"/><line x1="21" y1="12" x2="9" y2="12"/></svg>
<span>Salir</span>
</button>
</div> </div>
</div> </div>
@@ -485,6 +480,6 @@
<script src="/js/sounds.js?v=8.6"></script> <script src="/js/sounds.js?v=8.6"></script>
<script src="/js/jsQR.js"></script> <script src="/js/jsQR.js"></script>
<script src="/js/food-icons.js?v=1.1"></script> <script src="/js/food-icons.js?v=1.1"></script>
<script src="/js/pos.js?v=10.2"></script> <script src="/js/pos.js?v=10.3"></script>
</body> </body>
</html> </html>
+2 -2
View File
@@ -1,5 +1,5 @@
// RecreoPay PWA Service Worker v8.8 - Soporte Web Push VAPID en Segundo Plano // RecreoPay PWA Service Worker v8.9 - Soporte Web Push VAPID en Segundo Plano
const CACHE_NAME = 'recreopay-v8.8'; const CACHE_NAME = 'recreopay-v8.9';
const STATIC_ASSETS = [ const STATIC_ASSETS = [
'/', '/',
'/index.html', '/index.html',