Download Sources/PromptGarageCore/Models/BrowsingGroups.swift from smlflg/PromtGarageMac: direct link, hf CLI and curl.
- Browser
- Download file 1.11 kB
-
https://huggingface.co/smlflg/PromtGarageMac/resolve/main/Sources/PromptGarageCore/Models/BrowsingGroups.swift
- Command line
-
hf download hf://smlflg/PromtGarageMac/Sources/PromptGarageCore/Models/BrowsingGroups.swift
-
curl -L -o BrowsingGroups.swift https://huggingface.co/smlflg/PromtGarageMac/resolve/main/Sources/PromptGarageCore/Models/BrowsingGroups.swift
1.11 kB
| import Foundation | |
| public struct PromptDaySummary: Identifiable, Hashable, Sendable { | |
| public var id: String { day } | |
| public let day: String | |
| public let count: Int | |
| public init(day: String, count: Int) { | |
| self.day = day | |
| self.count = count | |
| } | |
| } | |
| public struct PromptTopicSummary: Identifiable, Hashable, Sendable { | |
| public var id: String { | |
| guard let topic else { return "untagged" } | |
| return "tag:\(topic.folding(options: [.caseInsensitive], locale: Locale(identifier: "en_US_POSIX")).lowercased())" | |
| } | |
| public let topic: String? | |
| public let count: Int | |
| public init(topic: String?, count: Int) { | |
| self.topic = topic | |
| self.count = count | |
| } | |
| public var displayName: String { topic ?? "Ohne Tags" } | |
| public var isUntagged: Bool { topic == nil } | |
| } | |
| public struct PromptChronologySummary: Sendable { | |
| public let days: [PromptDaySummary] | |
| public let legacyUndatedCount: Int | |
| public init(days: [PromptDaySummary], legacyUndatedCount: Int) { | |
| self.days = days | |
| self.legacyUndatedCount = legacyUndatedCount | |
| } | |
| } | |