Added full CalDAV integration to display real calendar events from Baikal server: Backend changes: - Added CalDAV client with iCalendar parsing and XML handling - Created /api/calendar/events endpoint with authentication - Fixed multiline regex patterns for namespace-prefixed XML tags - Added proper calendar path discovery and event filtering Frontend changes: - Created CalendarService for API communication - Updated calendar UI to display events as blue boxes with titles - Added loading states and error handling - Integrated real-time event fetching on calendar load Now successfully displays 3 test events from the Baikal server with proper date formatting and responsive design. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
37 lines
969 B
TOML
37 lines
969 B
TOML
[package]
|
|
name = "calendar-backend"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
[[bin]]
|
|
name = "backend"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
# Backend authentication dependencies
|
|
sqlx = { version = "0.7", features = ["runtime-tokio-rustls", "sqlite", "chrono", "uuid", "migrate"] }
|
|
bcrypt = "0.15"
|
|
jsonwebtoken = "9.0"
|
|
tokio = { version = "1.0", features = ["full"] }
|
|
axum = { version = "0.7", features = ["json"] }
|
|
tower = "0.4"
|
|
tower-http = { version = "0.5", features = ["cors"] }
|
|
hyper = { version = "1.0", features = ["full"] }
|
|
|
|
# Shared dependencies
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde_json = "1.0"
|
|
chrono = { version = "0.4", features = ["serde"] }
|
|
uuid = { version = "1.0", features = ["v4", "serde"] }
|
|
anyhow = "1.0"
|
|
|
|
# CalDAV dependencies
|
|
reqwest = { version = "0.11", features = ["json"] }
|
|
ical = "0.7"
|
|
regex = "1.0"
|
|
dotenvy = "0.15"
|
|
base64 = "0.21"
|
|
thiserror = "1.0"
|
|
|
|
[dev-dependencies]
|
|
tokio = { version = "1.0", features = ["macros", "rt"] } |