feat: Add CMD+K command palette with ninja-keys integration
Implement a command palette accessible via CMD+K/Ctrl+K using the ninja-keys web component. Features include: - New /api/cmd-k endpoint serving dynamic CV entries (experiences, projects, courses) - Language-aware responses with 1-hour cache headers - Scroll-to-section functionality for quick navigation - Enhanced keyboard shortcuts modal with CMD+K documentation - Comprehensive test coverage for API and UI interactions Also includes cleanup of deprecated debug test files and various UI polish improvements to contact form, themes, and action bar components.
This commit is contained in:
@@ -55,6 +55,8 @@ http://localhost:1999
|
||||
|----------|--------|-------------|------------|
|
||||
| `/?lang={en\|es}` | GET | Full HTML page with CV content | Initial page load |
|
||||
| `/cv?lang={en\|es}` | GET | HTML partial for HTMX swaps | Language switching |
|
||||
| `/text?lang={en\|es}` | GET | Plain text CV for terminal/AI | curl, text browsers |
|
||||
| `/api/cmd-k?lang={en\|es}` | GET | CMD+K command palette data (JSON) | ninja-keys integration |
|
||||
| `/export/pdf?lang={en\|es}&length={short\|long}&icons={show\|hide}&version={extended\|clean}` | GET | Download PDF resume with parameters | Export functionality |
|
||||
| `/health` | GET | Health check (JSON) | Monitoring |
|
||||
| `/static/{path}` | GET | Static files (CSS, JS, images) | Assets |
|
||||
@@ -77,6 +79,12 @@ curl "http://localhost:1999/cv?lang=en"
|
||||
# Export PDF (short, clean version)
|
||||
curl -O -J "http://localhost:1999/export/pdf?lang=en&length=short&version=clean"
|
||||
|
||||
# CMD+K command palette data (JSON)
|
||||
curl -s http://localhost:1999/api/cmd-k | jq '.experiences | length'
|
||||
|
||||
# Plain text CV
|
||||
curl http://localhost:1999/text?lang=en
|
||||
|
||||
# Static file with headers
|
||||
curl -I http://localhost:1999/static/css/main.css
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user