sync every hour the latest version of packages with aur

display current version and if outdated in ui
display correct time in output log
This commit is contained in:
2024-01-01 23:07:52 +01:00
parent eb4ca46562
commit 80e2299dc8
17 changed files with 199 additions and 26 deletions

View File

@ -58,7 +58,10 @@ class _YourPackagesState extends State<YourPackages> {
label: Text("Package Name"),
),
DataColumn(
label: Text("Number of versions"),
label: Text("Version"),
),
DataColumn(
label: Text("Up-To-Date"),
),
DataColumn(
label: Text("Status"),
@ -85,14 +88,25 @@ class _YourPackagesState extends State<YourPackages> {
cells: [
DataCell(Text(package.id.toString())),
DataCell(Text(package.name)),
DataCell(Text(package.count.toString())),
DataCell(Text(package.latest_version.toString())),
DataCell(IconButton(
icon: Icon(
package.outofdate ? Icons.update : Icons.verified,
color: package.outofdate ? Color(0xFF6B43A4) : Color(0xFF0A6900),
),
onPressed: package.outofdate
? () {
// todo open build info with logs
}
: null,
)),
DataCell(IconButton(
icon: Icon(
switchSuccessIcon(package.status),
color: switchSuccessColor(package.status),
),
onPressed: () {
// todo open build info with logs
//context.push("/build/${package.latest_version_id}");
},
)),
DataCell(