Add live search to macOS popover
This commit is contained in:
@@ -52,6 +52,12 @@ public struct DocumentSaveResponse: Codable {
|
||||
public let hash: String
|
||||
}
|
||||
|
||||
public struct SearchResult: Codable, Identifiable {
|
||||
public var id: String { path }
|
||||
public let path: String
|
||||
public let title: String
|
||||
}
|
||||
|
||||
public struct SyncInitRequest: Codable {
|
||||
public let deviceId: String
|
||||
public let rootPath: String
|
||||
@@ -178,6 +184,10 @@ public struct DocumentsListResponse: Codable {
|
||||
public let documents: [DocumentRecord]
|
||||
}
|
||||
|
||||
public struct SearchResponse: Codable {
|
||||
public let results: [SearchResult]
|
||||
}
|
||||
|
||||
public enum UploadDuplicateAction: String {
|
||||
case overwrite
|
||||
case rename
|
||||
|
||||
Reference in New Issue
Block a user