This commit is contained in:
mr
2025-06-13 13:33:24 +02:00
parent c4ea1541c4
commit ab593a45b9
26 changed files with 219 additions and 221 deletions

View File

@@ -72,7 +72,6 @@ class Log extends SerializerDeserializer<Log> {
String getMessage(String mess) {
var jsonString = mess;
print(mess);
try {
var j = JsonString(mess.replaceAll("\\", "")).decodedValue as Map<String, dynamic>;
map = j;
@@ -81,7 +80,7 @@ class Log extends SerializerDeserializer<Log> {
} else {
jsonString = "${j["Name"]} : [${j["Namespace"]}] ${j["Status"]} ${j["Progress"]} (${j["Duration"].toString()})\nCreated at ${j["Created"].toString().replaceAllMapped(RegExp(r'\(\w+\)'), (match) { return ''; }).replaceAllMapped(RegExp(r'\+\w+'), (match) { return ''; })}; Started at ${j["Created"].toString().replaceAllMapped(RegExp(r'\(\w+\)'), (match) { return ''; }).replaceAllMapped(RegExp(r'\+\w+'), (match) { return ''; })}";
}
} on JsonFormatException catch (e) { /* */ }
} on JsonFormatException catch (_) { /* */ }
message = jsonString;
return jsonString;
}

View File

@@ -334,7 +334,7 @@ class Graph extends SerializerDeserializer<Graph> {
}
// should find arrow env info and add it to the env
List<Param> extParams = [];
var arrows = links.where( (e) => (e.source?.id?.contains(item.id ?? "") ?? false) || (e.destination?.id?.contains(item.id ?? "") ?? false));
// var arrows = links.where( (e) => (e.source?.id?.contains(item.id ?? "") ?? false) || (e.destination?.id?.contains(item.id ?? "") ?? false));
/*for (var arrow in arrows) {
for (var info in arrow.infos) {
var i = info as Map<String, dynamic>;