updating uptime

This commit is contained in:
2026-06-24 10:48:59 +02:00
parent a79cfadf51
commit 9e55ec1097
3 changed files with 18 additions and 3 deletions

13
.vscode/launch.json vendored
View File

@@ -4,7 +4,7 @@
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
{
"name": "qpay",
"request": "launch",
"type": "dart",
@@ -15,6 +15,17 @@
"--dart-define=BASE_URL=http://localhost:6950/api"
]
},
{
"name": "qpay - live",
"request": "launch",
"type": "dart",
"deviceId": "chrome",
"args": [
"--dart-define=APP_ENV=live",
"--web-port=9005",
"--dart-define=BASE_URL=https://payapi.velocityafrica.net/api"
]
},
]
}

View File

@@ -1,6 +1,7 @@
class UptimeItemModel {
final String id;
final String createdAt;
final String updatedAt;
final bool deleted;
final String name;
final bool status;
@@ -8,6 +9,7 @@ class UptimeItemModel {
const UptimeItemModel({
required this.id,
required this.createdAt,
required this.updatedAt,
required this.deleted,
required this.name,
required this.status,
@@ -17,6 +19,7 @@ class UptimeItemModel {
return UptimeItemModel(
id: json['id'] as String,
createdAt: json['createdAt'] as String,
updatedAt: json['updatedAt'],
deleted: json['deleted'] as bool,
name: json['name'] as String,
status: json['status'] as bool,
@@ -27,9 +30,10 @@ class UptimeItemModel {
return {
'id': id,
'createdAt': createdAt,
'updatedAt': updatedAt,
'deleted': deleted,
'name': name,
'status': status,
};
}
}
}

View File

@@ -328,7 +328,7 @@ class _UptimeCard extends StatelessWidget {
),
const SizedBox(height: 4),
Text(
'Last checked ${_formatTimestamp(item.createdAt)}',
'Last checked ${_formatTimestamp(item.updatedAt)}',
style: theme.textTheme.bodySmall?.copyWith(
color: theme.colorScheme.onSurface.withAlpha(120),
),