tools: Network Quality and STUN

This commit is contained in:
世界
2026-04-23 08:12:52 +08:00
parent 6559720e00
commit cd48f1abf6
24 changed files with 1537 additions and 501 deletions
@@ -13,24 +13,24 @@ public struct DownloadTrafficCard: View {
DashboardCardHeader(icon: "arrow.down.circle.fill", title: "Download")
if Variant.screenshotMode {
Text("249 MB/s")
Text(verbatim: "249 MB/s")
.font(.title2)
.fontWeight(.medium)
Text("5.6 GB")
Text(verbatim: "5.6 GB")
.font(.subheadline)
.foregroundStyle(.secondary)
} else if let message = commandClient.status, message.trafficAvailable {
Text("\(LibboxFormatBytes(message.downlink))/s")
Text(verbatim: "\(LibboxFormatBytes(message.downlink))/s")
.font(.title2)
.fontWeight(.medium)
Text(LibboxFormatBytes(message.downlinkTotal))
.font(.subheadline)
.foregroundStyle(.secondary)
} else {
Text("...")
Text(verbatim: "...")
.font(.title2)
.fontWeight(.medium)
Text("...")
Text(verbatim: "...")
.font(.subheadline)
.foregroundStyle(.secondary)
}