Files
vessel/frontend/package.json
vikingowl 4717f3e669 feat: add keyboard shortcut tests and fix browser conflicts
Testing:
- Add vitest with jsdom environment for unit testing
- Create 61 comprehensive tests for keyboard shortcuts
- Add test helpers for platform switching and key simulation
- Mock SvelteKit $app modules for testing

Fix:
- Change Windows/Linux shortcuts from Ctrl to Alt to avoid
  browser shortcut conflicts (Ctrl+N opens new browser window)
- Mac shortcuts remain Cmd+N/K/B (unaffected)

New shortcuts on Windows/Linux:
- Alt+N: New chat
- Alt+K: Search conversations
- Alt+B: Toggle sidebar

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-01 02:19:11 +01:00

46 lines
1.3 KiB
JSON

{
"name": "ollama-webui",
"version": "0.1.0",
"private": true,
"type": "module",
"scripts": {
"dev": "vite dev",
"build": "vite build",
"preview": "vite preview",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"test": "vitest run",
"test:watch": "vitest",
"test:coverage": "vitest run --coverage"
},
"devDependencies": {
"@sveltejs/adapter-auto": "^4.0.0",
"@sveltejs/kit": "^2.16.0",
"@sveltejs/vite-plugin-svelte": "^5.1.1",
"@tailwindcss/typography": "^0.5.16",
"@testing-library/dom": "^10.4.1",
"@testing-library/svelte": "^5.3.1",
"@types/node": "^22.10.0",
"autoprefixer": "^10.4.20",
"jsdom": "^27.4.0",
"postcss": "^8.4.49",
"svelte": "^5.16.0",
"svelte-check": "^4.1.0",
"tailwindcss": "^3.4.17",
"typescript": "^5.7.0",
"vite": "^6.0.0",
"vitest": "^4.0.16"
},
"dependencies": {
"@skeletonlabs/skeleton": "^2.10.0",
"@skeletonlabs/tw-plugin": "^0.4.0",
"@sveltejs/adapter-node": "^5.4.0",
"@types/dompurify": "^3.0.5",
"dexie": "^4.0.10",
"dompurify": "^3.2.0",
"marked": "^15.0.0",
"pdfjs-dist": "^5.4.530",
"shiki": "^1.26.0"
}
}