updating uptime
This commit is contained in:
13
.vscode/launch.json
vendored
13
.vscode/launch.json
vendored
@@ -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"
|
||||
]
|
||||
},
|
||||
|
||||
]
|
||||
}
|
||||
@@ -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,
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user