feat(branding): agregar logotipos e iconos oficiales de OneverAccess y badge de build version 2026.10.14
@@ -1,6 +1,7 @@
|
||||
# ==============================================================================
|
||||
# OnEverControl - Versión del Backend
|
||||
# ==============================================================================
|
||||
__version__ = "0.6.1-beta"
|
||||
__version__ = "0.6.2"
|
||||
__build__ = "2026.10.14"
|
||||
__app_name__ = "OnEverControl"
|
||||
__description__ = "Cliente Web Reducido para Puesto de Control en Red Local de OnEverAccess"
|
||||
|
||||
@@ -7,7 +7,7 @@ from fastapi.middleware.cors import CORSMiddleware
|
||||
from fastapi.middleware.gzip import GZipMiddleware
|
||||
from fastapi.responses import JSONResponse
|
||||
|
||||
from app.__version__ import __version__, __app_name__, __description__
|
||||
from app.__version__ import __version__, __build__, __app_name__, __description__
|
||||
from app.core.config import settings
|
||||
from app.api.v1.router import api_router
|
||||
|
||||
@@ -43,6 +43,7 @@ async def health_check():
|
||||
"status": "ok",
|
||||
"app": __app_name__,
|
||||
"version": __version__,
|
||||
"build": __build__,
|
||||
"timestamp": datetime.now(timezone.utc).isoformat(),
|
||||
}
|
||||
)
|
||||
|
||||
@@ -11,6 +11,8 @@
|
||||
<meta name="mobile-web-app-capable" content="yes" />
|
||||
<meta name="theme-color" content="#121824" />
|
||||
<meta name="description" content="OnEverControl - Cliente Web Puesto de Control de Garita" />
|
||||
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
|
||||
<link rel="apple-touch-icon" href="/logo_mini.png" />
|
||||
<link rel="manifest" href="/manifest.json" />
|
||||
<title>OnEverControl — Puesto de Control</title>
|
||||
</head>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "onevercontrol-frontend",
|
||||
"private": true,
|
||||
"version": "0.6.1-beta",
|
||||
"version": "0.6.2",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
|
||||
|
After Width: | Height: | Size: 281 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 66 KiB |
|
After Width: | Height: | Size: 4.5 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 2.8 KiB |
|
After Width: | Height: | Size: 66 KiB |
|
After Width: | Height: | Size: 66 KiB |
|
After Width: | Height: | Size: 66 KiB |
|
After Width: | Height: | Size: 66 KiB |
|
After Width: | Height: | Size: 66 KiB |
|
After Width: | Height: | Size: 66 KiB |
|
After Width: | Height: | Size: 66 KiB |
|
After Width: | Height: | Size: 66 KiB |
|
After Width: | Height: | Size: 66 KiB |
|
After Width: | Height: | Size: 486 B |
@@ -0,0 +1,6 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round">
|
||||
<path d="M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"/>
|
||||
<path d="M3 3v5h5"/>
|
||||
<path d="M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16"/>
|
||||
<path d="M16 16h5v5"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 362 B |
|
After Width: | Height: | Size: 66 KiB |
|
After Width: | Height: | Size: 4.4 KiB |
|
After Width: | Height: | Size: 66 KiB |
|
After Width: | Height: | Size: 230 B |
@@ -0,0 +1,7 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
||||
<path d="M3 6h18"/>
|
||||
<path d="M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"/>
|
||||
<path d="M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"/>
|
||||
<line x1="10" y1="11" x2="10" y2="17"/>
|
||||
<line x1="14" y1="11" x2="14" y2="17"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 388 B |
|
After Width: | Height: | Size: 66 KiB |
|
After Width: | Height: | Size: 66 KiB |
|
After Width: | Height: | Size: 23 KiB |
|
After Width: | Height: | Size: 23 KiB |
|
After Width: | Height: | Size: 23 KiB |
|
After Width: | Height: | Size: 109 KiB |
|
After Width: | Height: | Size: 135 KiB |
|
After Width: | Height: | Size: 8.1 KiB |
|
After Width: | Height: | Size: 8.1 KiB |
|
After Width: | Height: | Size: 8.1 KiB |
|
After Width: | Height: | Size: 3.5 KiB |
|
After Width: | Height: | Size: 3.5 KiB |
|
After Width: | Height: | Size: 3.5 KiB |
@@ -12,6 +12,11 @@
|
||||
"src": "/favicon.ico",
|
||||
"sizes": "64x64 32x32 24x24 16x16",
|
||||
"type": "image/x-icon"
|
||||
},
|
||||
{
|
||||
"src": "/logo_mini.png",
|
||||
"sizes": "192x192 512x512",
|
||||
"type": "image/png"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 66 KiB |
|
After Width: | Height: | Size: 4.5 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 2.8 KiB |
|
After Width: | Height: | Size: 281 KiB |
|
After Width: | Height: | Size: 66 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 66 KiB |
|
After Width: | Height: | Size: 23 KiB |
|
After Width: | Height: | Size: 23 KiB |
|
After Width: | Height: | Size: 23 KiB |
|
After Width: | Height: | Size: 109 KiB |
|
After Width: | Height: | Size: 135 KiB |
|
After Width: | Height: | Size: 8.1 KiB |
|
After Width: | Height: | Size: 8.1 KiB |
|
After Width: | Height: | Size: 8.1 KiB |
|
After Width: | Height: | Size: 3.5 KiB |
|
After Width: | Height: | Size: 3.5 KiB |
|
After Width: | Height: | Size: 3.5 KiB |
|
After Width: | Height: | Size: 66 KiB |
|
After Width: | Height: | Size: 66 KiB |
|
After Width: | Height: | Size: 66 KiB |
|
After Width: | Height: | Size: 66 KiB |
|
After Width: | Height: | Size: 66 KiB |
|
After Width: | Height: | Size: 66 KiB |
|
After Width: | Height: | Size: 66 KiB |
|
After Width: | Height: | Size: 486 B |
@@ -0,0 +1,6 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round">
|
||||
<path d="M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"/>
|
||||
<path d="M3 3v5h5"/>
|
||||
<path d="M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16"/>
|
||||
<path d="M16 16h5v5"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 362 B |
|
After Width: | Height: | Size: 66 KiB |
|
After Width: | Height: | Size: 4.4 KiB |
|
After Width: | Height: | Size: 66 KiB |
|
After Width: | Height: | Size: 230 B |
@@ -0,0 +1,7 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
||||
<path d="M3 6h18"/>
|
||||
<path d="M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"/>
|
||||
<path d="M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"/>
|
||||
<line x1="10" y1="11" x2="10" y2="17"/>
|
||||
<line x1="14" y1="11" x2="14" y2="17"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 388 B |
|
After Width: | Height: | Size: 66 KiB |
|
After Width: | Height: | Size: 66 KiB |
@@ -0,0 +1,6 @@
|
||||
// ==============================================================================
|
||||
// Información de Versión y Build de OnEverControl (OnEverAccess)
|
||||
// ==============================================================================
|
||||
export const APP_VERSION = 'v0.6.2';
|
||||
export const APP_BUILD = 'Build 2026.10.14';
|
||||
export const APP_NAME = 'OnEver Access · Control Web';
|
||||
@@ -10,6 +10,7 @@ import { hardwareApi } from '../api/hardwareApi';
|
||||
import { useWebSocket } from '../hooks/useWebSocket';
|
||||
import { useTheme } from '../hooks/useTheme';
|
||||
import { CameraScannerModal } from '../components/scanner/CameraScannerModal';
|
||||
import { APP_VERSION, APP_BUILD } from '../version';
|
||||
import {
|
||||
WorkstationConfig,
|
||||
ActiveTicket,
|
||||
@@ -322,12 +323,35 @@ export const ControlPostView: React.FC = () => {
|
||||
}}
|
||||
>
|
||||
<div style={{ display: 'flex', alignItems: 'center', gap: '1rem' }}>
|
||||
<div style={{ display: 'flex', alignItems: 'center', gap: '0.5rem' }}>
|
||||
<span style={{ fontSize: '1.4rem' }}>🛡️</span>
|
||||
<div style={{ display: 'flex', alignItems: 'center', gap: '0.65rem' }}>
|
||||
<img
|
||||
src={theme === 'dark' ? '/logo_mini_dark.png' : '/logo_mini_light.png'}
|
||||
alt="OnEverAccess"
|
||||
style={{ width: '28px', height: '28px', objectFit: 'contain' }}
|
||||
onError={(e) => {
|
||||
(e.target as HTMLImageElement).src = '/logo_mini.png';
|
||||
}}
|
||||
/>
|
||||
<div>
|
||||
<h1 style={{ fontSize: '1.1rem', fontWeight: 700, margin: 0, lineHeight: 1.2 }}>
|
||||
OnEverControl
|
||||
</h1>
|
||||
<div style={{ display: 'flex', alignItems: 'center', gap: '0.45rem' }}>
|
||||
<h1 style={{ fontSize: '1.05rem', fontWeight: 700, margin: 0, lineHeight: 1.2 }}>
|
||||
OnEverControl
|
||||
</h1>
|
||||
<span
|
||||
style={{
|
||||
fontSize: '0.65rem',
|
||||
padding: '0.12rem 0.4rem',
|
||||
borderRadius: '4px',
|
||||
backgroundColor: 'var(--hover-bg)',
|
||||
border: '1px solid var(--border)',
|
||||
color: 'var(--accent)',
|
||||
fontWeight: 600,
|
||||
letterSpacing: '0.02em',
|
||||
}}
|
||||
>
|
||||
{APP_BUILD}
|
||||
</span>
|
||||
</div>
|
||||
<span style={{ fontSize: '0.75rem', color: 'var(--text-muted)' }}>
|
||||
{workstation} • {clock}
|
||||
</span>
|
||||
@@ -472,7 +496,14 @@ export const ControlPostView: React.FC = () => {
|
||||
backgroundColor: 'var(--accent-primary)',
|
||||
}}
|
||||
>
|
||||
<span style={{ fontSize: '1.4rem' }}>📷</span>
|
||||
<img
|
||||
src="/icons/identificaciones.ico"
|
||||
alt=""
|
||||
style={{ width: '22px', height: '22px', objectFit: 'contain' }}
|
||||
onError={(e) => {
|
||||
(e.target as HTMLElement).style.display = 'none';
|
||||
}}
|
||||
/>
|
||||
ESCANEAR DNI CON CÁMARA
|
||||
</button>
|
||||
|
||||
@@ -782,7 +813,15 @@ export const ControlPostView: React.FC = () => {
|
||||
gap: '0.5rem',
|
||||
}}
|
||||
>
|
||||
<span>🟢 En Predio (Activos)</span>
|
||||
<img
|
||||
src="/icons/puesto-control.ico"
|
||||
alt=""
|
||||
style={{ width: '18px', height: '18px', objectFit: 'contain' }}
|
||||
onError={(e) => {
|
||||
(e.target as HTMLElement).style.display = 'none';
|
||||
}}
|
||||
/>
|
||||
<span>En Predio (Tickets Activos)</span>
|
||||
<span className="badge badge-info" style={{ fontSize: '0.8rem' }}>
|
||||
{activeTickets.length}
|
||||
</span>
|
||||
@@ -804,7 +843,15 @@ export const ControlPostView: React.FC = () => {
|
||||
gap: '0.5rem',
|
||||
}}
|
||||
>
|
||||
<span>📜 Historial Movimientos BD</span>
|
||||
<img
|
||||
src="/icons/movimientos.ico"
|
||||
alt=""
|
||||
style={{ width: '18px', height: '18px', objectFit: 'contain' }}
|
||||
onError={(e) => {
|
||||
(e.target as HTMLElement).style.display = 'none';
|
||||
}}
|
||||
/>
|
||||
<span>Historial Movimientos BD</span>
|
||||
<span className="badge badge-neutral" style={{ fontSize: '0.8rem' }}>
|
||||
{recentMovements.length}
|
||||
</span>
|
||||
@@ -1034,8 +1081,22 @@ export const ControlPostView: React.FC = () => {
|
||||
gap: '1rem',
|
||||
}}
|
||||
>
|
||||
<div style={{ fontSize: '0.8rem', color: 'var(--text-muted)' }}>
|
||||
Acciones Rápidas de Emergencia (Auditoría inmediata):
|
||||
<div style={{ fontSize: '0.8rem', color: 'var(--text-muted)', display: 'flex', alignItems: 'center', gap: '0.5rem' }}>
|
||||
<img
|
||||
src="/logo_os.png"
|
||||
alt=""
|
||||
style={{ width: '16px', height: '16px', objectFit: 'contain' }}
|
||||
onError={(e) => {
|
||||
(e.target as HTMLElement).style.display = 'none';
|
||||
}}
|
||||
/>
|
||||
<strong style={{ color: 'var(--text-secondary)' }}>OnEver Access</strong>
|
||||
<span>·</span>
|
||||
<span>{APP_VERSION}</span>
|
||||
<span>·</span>
|
||||
<span style={{ color: 'var(--accent)', fontWeight: 600 }}>{APP_BUILD}</span>
|
||||
<span>·</span>
|
||||
<span>Acciones Rápidas:</span>
|
||||
</div>
|
||||
<div style={{ display: 'flex', gap: '0.75rem' }}>
|
||||
{selectedEntryModuleId > 0 && (
|
||||
|
||||
@@ -7,6 +7,7 @@ import React, { useState, useEffect } from 'react';
|
||||
import { useAuth } from '../context/AuthContext';
|
||||
import { workstationApi, WorkstationListItem } from '../api/workstationApi';
|
||||
import { useTheme } from '../hooks/useTheme';
|
||||
import { APP_VERSION, APP_BUILD } from '../version';
|
||||
|
||||
export const LoginView: React.FC = () => {
|
||||
const { login, workstation, setWorkstation } = useAuth();
|
||||
@@ -104,37 +105,53 @@ export const LoginView: React.FC = () => {
|
||||
}}
|
||||
>
|
||||
{/* Cabecera del Login */}
|
||||
<div style={{ textAlign: 'center', marginBottom: '2rem' }}>
|
||||
<div style={{ textAlign: 'center', marginBottom: '1.75rem' }}>
|
||||
<div
|
||||
style={{
|
||||
width: '64px',
|
||||
height: '64px',
|
||||
borderRadius: '12px',
|
||||
backgroundColor: 'var(--hover-bg)',
|
||||
border: '1px solid var(--border)',
|
||||
display: 'inline-flex',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
fontSize: '2rem',
|
||||
marginBottom: '1rem',
|
||||
}}
|
||||
>
|
||||
🛡️
|
||||
<img
|
||||
src={theme === 'dark' ? '/logo_login_dark.png' : '/logo_login_light.png'}
|
||||
alt="OnEver Access"
|
||||
style={{ maxHeight: '52px', width: 'auto', objectFit: 'contain' }}
|
||||
onError={(e) => {
|
||||
(e.target as HTMLImageElement).src = '/logo_mini.png';
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
<h1
|
||||
style={{
|
||||
fontSize: '1.65rem',
|
||||
fontWeight: 700,
|
||||
margin: '0 0 0.4rem 0',
|
||||
margin: '0 0 0.35rem 0',
|
||||
color: 'var(--text-1)',
|
||||
letterSpacing: '-0.02em',
|
||||
}}
|
||||
>
|
||||
OnEverControl
|
||||
</h1>
|
||||
<p style={{ margin: 0, fontSize: '0.9rem', color: 'var(--text-2)' }}>
|
||||
Puesto de Control Web • Modo Cliente Garita
|
||||
</p>
|
||||
<div style={{ display: 'flex', alignItems: 'center', justifyContent: 'center', gap: '0.5rem' }}>
|
||||
<span style={{ fontSize: '0.88rem', color: 'var(--text-2)' }}>
|
||||
Puesto de Control Web • Modo Garita
|
||||
</span>
|
||||
<span
|
||||
style={{
|
||||
fontSize: '0.68rem',
|
||||
padding: '0.15rem 0.45rem',
|
||||
borderRadius: '4px',
|
||||
backgroundColor: 'var(--hover-bg)',
|
||||
border: '1px solid var(--border)',
|
||||
color: 'var(--accent)',
|
||||
fontWeight: 600,
|
||||
}}
|
||||
>
|
||||
{APP_BUILD}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Alerta de Error */}
|
||||
@@ -257,7 +274,7 @@ export const LoginView: React.FC = () => {
|
||||
</form>
|
||||
|
||||
<div style={{ marginTop: '2rem', textAlign: 'center', fontSize: '0.75rem', color: 'var(--text-3)' }}>
|
||||
OnEverControl Web v0.6.1-beta • Conectado a Microsoft SQL Server videoman
|
||||
OnEver Access · Control Web {APP_VERSION} ({APP_BUILD}) • Conectado a Microsoft SQL Server
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||