feat: commit inicial — Central Monitoreo v1.0.0

- OperadorLoginPage con auth WebControl 2 pasos (empresas → login)
- ShellPage: sidebar 220px + IndexedStack + header con estado API
- DashboardPage: stat cards, feed alarmas, clientes, incidentes (timer 30s)
- ApiAuthService: flujo real con email + paswd + dba → token + apiKey
- DB SQLite v1: 7 tablas + 7 DAOs completos
- theme.dart: AppColors, appHeadline (Manrope), appLabel (Inter)
- Logo app: escudo radar neón (SVG + PNG 512px) en lib/recursos/
- desplegar.sh: build release Linux + upload a siax-system.net
- agents.md: estado completo + objetivos futuros documentados

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Pablinux
2026-06-21 22:11:12 -05:00
co-authored by Claude Sonnet 4.6
commit 21d2c20525
26 changed files with 3172 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
import '../database_helper.dart';
class SyncLogDao {
final _db = DatabaseHelper.instance;
Future<void> registrar({
required String tipo,
required String estado,
String? detalle,
}) async {
final db = await _db.db;
await db.insert('sync_log', {
'tipo': tipo,
'estado': estado,
'detalle': detalle,
'timestamp': DateTime.now().toIso8601String(),
});
}
Future<List<Map<String, dynamic>>> getRecientes({int limit = 20}) async {
final db = await _db.db;
return db.query('sync_log', orderBy: 'timestamp DESC', limit: limit);
}
}