pretty broken, icons missing, login not working. browser opens though and cams still appear on map

This commit is contained in:
stopflock
2025-07-19 14:11:02 -05:00
parent d3d1e4a7b2
commit 56518bab28
11 changed files with 689 additions and 154 deletions
+18 -2
View File
@@ -5,12 +5,28 @@ class PendingUpload {
final LatLng coord;
final double direction;
final CameraProfile profile;
final DateTime queuedAt;
int attempts;
PendingUpload({
required this.coord,
required this.direction,
required this.profile,
}) : queuedAt = DateTime.now();
this.attempts = 0,
});
Map<String, dynamic> toJson() => {
'lat': coord.latitude,
'lon': coord.longitude,
'dir': direction,
'profile': profile.name,
'attempts': attempts,
};
factory PendingUpload.fromJson(Map<String, dynamic> j) => PendingUpload(
coord: LatLng(j['lat'], j['lon']),
direction: j['dir'],
profile: CameraProfile.alpr(), // only builtin for now
attempts: j['attempts'] ?? 0,
);
}