mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-20 01:21:24 +02:00
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:
parent
d8f1bbbbce
commit
89a2b3da9e
7 changed files with 460 additions and 25 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue