Add comprehensive annotations feature to bookmark detail views: - Implement annotations list view with date formatting and state machine - Add CSS-based highlighting for rd-annotation tags in WebView components - Support Readeck color scheme (yellow, green, blue, red) for annotations - Enable tap-to-scroll functionality to navigate to selected annotations - Integrate annotations button in bookmark detail toolbar - Add API endpoint and repository layer for fetching annotations
22 lines
494 B
Swift
22 lines
494 B
Swift
import Foundation
|
|
|
|
struct AnnotationDto: Codable {
|
|
let id: String
|
|
let text: String
|
|
let created: String
|
|
let startOffset: Int
|
|
let endOffset: Int
|
|
let startSelector: String
|
|
let endSelector: String
|
|
|
|
enum CodingKeys: String, CodingKey {
|
|
case id
|
|
case text
|
|
case created
|
|
case startOffset = "start_offset"
|
|
case endOffset = "end_offset"
|
|
case startSelector = "start_selector"
|
|
case endSelector = "end_selector"
|
|
}
|
|
}
|