df714a43a2765bfec9ab15265df9b588dbdb8002
Add interactive drag-to-create event functionality that allows users to click and drag in empty spaces of the week view to create new events. Features include: - Mouse event handlers for drag interaction (mousedown, mousemove, mouseup) - Real-time temporary event box display with visual feedback during drag - Proper coordinate calculation using layer_y() for accurate time positioning - Minimum 15-minute event duration enforcement - Integration with event creation modal via callback with pre-filled start/end times - CSS pointer-events optimizations to prevent child element interference - Time-to-pixel and pixel-to-time conversion functions for accurate positioning 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Calendar App
A full-stack calendar application built with Rust, featuring a Yew frontend and Axum backend with CalDAV integration.
Features
- Interactive calendar interface
- Event creation and management
- CalDAV server integration
- User authentication with JWT
- iCal format support
- Weekly recurrence patterns
- Responsive web design
Architecture
- Frontend: Yew (Rust WebAssembly)
- Backend: Axum (Rust async web framework)
- Protocol: CalDAV for calendar synchronization
- Database: SQLite (via migrations)
- Build Tool: Trunk for frontend bundling
Getting Started
Prerequisites
- Rust (latest stable version)
- Trunk (
cargo install trunk)
Development
-
Start the backend server:
cd backend cargo run -
Start the frontend development server:
trunk serve -
Open your browser to
http://localhost:8080
Building for Production
trunk build --release
Project Structure
src/- Frontend Yew applicationbackend/- Axum backend servermigrations/- Database schema migrationsdist/- Built frontend assets
Description
Languages
Rust
76.9%
CSS
22.4%
JavaScript
0.4%
Dockerfile
0.2%
HTML
0.1%