feat(todo): add quick task creation via CommandBar

- Add natural language parser for task input (date, time, priority, project, labels)
- Extend CommandBar with onCreate/onParseCreate callbacks
- Show create preview with parsed attributes as first option
- Support Cmd/Ctrl+Enter to create directly
- Fix service worker to not intercept Vite dev server requests
- Update deprecated apple-mobile-web-app-capable meta tag

Example: "Meeting morgen 14 Uhr !hoch @Arbeit #wichtig"
→ Creates task with due date, time, priority, project and label

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Till-JS 2025-12-10 14:15:12 +01:00 committed by Wuesteon
parent d8f1bbbbce
commit 89a2b3da9e
7 changed files with 460 additions and 25 deletions

View file

@ -1,4 +1,4 @@
const CACHE_NAME = 'todo-v1';
const CACHE_NAME = 'todo-v2';
const OFFLINE_URL = '/offline.html';
// Assets, die immer gecacht werden sollen
@ -8,23 +8,16 @@ const STATIC_CACHE_URLS = ['/', '/offline.html', '/icons/icon.svg', '/manifest.j
const CACHE_STRATEGIES = {
// Netzwerk zuerst, dann Cache (für HTML/Navigation)
networkFirst: [/\/$/, /\.html$/, /^\/kanban/, /^\/settings/, /^\/mana/, /^\/feedback/],
// Cache zuerst, dann Netzwerk (für Assets)
// Cache zuerst, dann Netzwerk (für Assets) - nur für gebaute Assets, nicht /src/
cacheFirst: [
/\.css$/,
/\.js$/,
/\/_app\//, // SvelteKit gebaute Assets
/\.woff2?$/,
/\.ttf$/,
/\.otf$/,
/\.svg$/,
/\.png$/,
/\.jpg$/,
/\.jpeg$/,
/\.webp$/,
/\.ico$/,
/\/_app\//,
],
// Nur Netzwerk (für API-Calls)
networkOnly: [/\/api\//, /localhost:3018/],
// Nur Netzwerk (für API-Calls und Dev-Server)
networkOnly: [/\/api\//, /localhost:3018/, /^\/src\//, /^\/@/, /^\/node_modules\//],
};
// Service Worker Installation