Gesendet-Status, Agentur-Check, Rückgängig und Spieltag-Assistent
- Gesendet-Status pro Bild: Upload-Historie (FTP + Immich) mit Ziel und Zeit, grünes Abzeichen im Kontaktabzug, Anzeige in Lupe und IPTC-Fenster, Filter Gesendet/Nicht gesendet, bereits gesendete beim Upload überspringen, 'Als nicht gesendet markieren' - Agentur-Check vor dem FTP-Upload: Pflichtfelder, offene Variablen und Codes, Datum aus alter Vorlage, IIM-Längen, offene Trikot-Vorschläge, Mindestgröße; Prüffenster mit Bearbeiten/Erneut prüfen/ Nur fehlerfreie senden; Einstellungsseite und Schalter pro Server - Rückgängig/Wiederholen (⌘Z/⇧⌘Z) für Sterne, Farben, Tags, IPTC und Vorlagen, Schreibvorgänge serialisiert, in Textfeldern bleibt ⌘Z beim Text - Spieltag-Assistent (⌘⇧N, auch im Ingest und in der Matchday-Ansicht): Teams, Wettbewerbe und Muster werden gespeichert; erzeugt Vorlage im Aufbau der Basis-Vorlage, Ingest-Ordner, Trikot-Teams und aktive Code-Teams; Trikotfarben aus der Erkennung fließen ins Team zurück; Matchday nimmt die Teams aus dem Ereignis des Bildes - Tests für Spieltag-Generator, Agentur-Check und Gesendet-Log, README ergänzt Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012bGzgsxrmbBhDzeMV2L57D
This commit is contained in:
1 parent
22b2611228
commit
93ecdf03fc
22 files changed
+2119
-49
No files matched your search
@@ -39,15 +39,43 @@ public struct FTPDestination: Codable, Identifiable, Hashable, Sendable {
|
||||
/// Path to an SSH private key for SFTP (optional; otherwise ssh-agent / password via curl).
|
||||
public var sshKeyPath: String
|
||||
public var allowInsecureTLS: Bool
|
||||
/// Agentur-Check before uploading to this server
|
||||
public var preflight: Bool
|
||||
|
||||
public init(id: UUID = UUID(), name: String = "Neuer Server", proto: FTPProtocol = .ftp, host: String = "",
|
||||
port: Int = 21, username: String = "", remoteDirectory: String = "/", passive: Bool = true,
|
||||
uploadWithTempName: Bool = true, renamePattern: String = "", variant: UploadVariant = .jpeg,
|
||||
sshKeyPath: String = "", allowInsecureTLS: Bool = false) {
|
||||
sshKeyPath: String = "", allowInsecureTLS: Bool = false, preflight: Bool = true) {
|
||||
self.id = id; self.name = name; self.proto = proto; self.host = host; self.port = port
|
||||
self.username = username; self.remoteDirectory = remoteDirectory; self.passive = passive
|
||||
self.uploadWithTempName = uploadWithTempName; self.renamePattern = renamePattern; self.variant = variant
|
||||
self.sshKeyPath = sshKeyPath; self.allowInsecureTLS = allowInsecureTLS
|
||||
self.sshKeyPath = sshKeyPath; self.allowInsecureTLS = allowInsecureTLS; self.preflight = preflight
|
||||
}
|
||||
|
||||
enum CodingKeys: String, CodingKey {
|
||||
case id, name, proto, host, port, username, remoteDirectory, passive, uploadWithTempName, renamePattern,
|
||||
variant, sshKeyPath, allowInsecureTLS, preflight
|
||||
}
|
||||
|
||||
/// Tolerant decoding – new options must never wipe the saved server profiles.
|
||||
public init(from decoder: Decoder) throws {
|
||||
let c = try decoder.container(keyedBy: CodingKeys.self)
|
||||
let d = FTPDestination()
|
||||
func v<T: Decodable>(_ k: CodingKeys, _ def: T) -> T { (try? c.decode(T.self, forKey: k)) ?? def }
|
||||
id = v(.id, UUID())
|
||||
name = v(.name, d.name)
|
||||
proto = v(.proto, d.proto)
|
||||
host = v(.host, d.host)
|
||||
port = v(.port, d.port)
|
||||
username = v(.username, d.username)
|
||||
remoteDirectory = v(.remoteDirectory, d.remoteDirectory)
|
||||
passive = v(.passive, d.passive)
|
||||
uploadWithTempName = v(.uploadWithTempName, d.uploadWithTempName)
|
||||
renamePattern = v(.renamePattern, d.renamePattern)
|
||||
variant = v(.variant, d.variant)
|
||||
sshKeyPath = v(.sshKeyPath, d.sshKeyPath)
|
||||
allowInsecureTLS = v(.allowInsecureTLS, d.allowInsecureTLS)
|
||||
preflight = v(.preflight, d.preflight)
|
||||
}
|
||||
|
||||
public var keychainAccount: String { "ftp-\(id.uuidString)" }
|
||||
|
||||
Reference in new issue
Block a user