This commit is contained in:
Neil Alexander 2024-06-23 10:54:21 +01:00
parent 0bea3a1613
commit 1b9e84d056
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
9 changed files with 234 additions and 137 deletions

View file

@ -32,6 +32,9 @@ struct YggdrasilPeer: Codable, Identifiable {
let key: String?
let priority: UInt8
let cost: UInt16?
let rxBytes: Double?
let txBytes: Double?
let uptime: Int64?
enum CodingKeys: String, CodingKey {
case remote = "URI"
@ -40,6 +43,9 @@ struct YggdrasilPeer: Codable, Identifiable {
case key = "Key"
case priority = "Priority"
case cost = "Cost"
case rxBytes = "RXBytes"
case txBytes = "TXBytes"
case uptime = "Uptime"
}
public func getStatusBadgeColor() -> SwiftUI.Color {