Live-Upload-Rate (MB/s, Mbit/s, Restzeit) für FTP (curl-Fortschritt) und Immich, Fortschritt pro Datei

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012bGzgsxrmbBhDzeMV2L57D
This commit is contained in:
Lichtkasten DevandClaude Opus 5.5 committed 2026-11-04 01:00:35 +00:00
1 parent 2bf0d851aa
commit 5505fa1f37
5 files changed
+198 -12

No files matched your search

@@ -22,12 +22,25 @@ struct TasksWindow: View {
TableColumn("Als") { j in Text(j.remoteName).foregroundStyle(.secondary) }
TableColumn("Ziel") { j in Text(j.targetName) }
TableColumn("Status") { j in UploadStatusView(status: j.status) }
TableColumn("Fortschritt") { j in
if j.status == .running {
HStack {
ProgressView(value: j.progress).frame(width: 90)
Text("\(Int(j.progress * 100)) %").monospacedDigit().font(.caption)
}
} else {
Text(ByteCountFormatter.string(fromByteCount: j.fileSize, countStyle: .file)).foregroundStyle(.secondary)
}
}
}
.frame(minHeight: 180)
}
Divider()
HStack {
Toggle("Einzelne Upload-Dateien", isOn: $showFiles).toggleStyle(.checkbox)
if uploads.rate > 0 {
Label(uploads.rateText, systemImage: "speedometer").monospacedDigit().foregroundStyle(Color.accentColor)
}
Spacer()
Button("Fehlgeschlagene Uploads wiederholen") { uploads.retryFailed() }.disabled(uploads.failedCount == 0)
Button("Erledigte entfernen") { tasks.clearFinished(); uploads.clearFinished() }