metallkart-erp/frontend/package.json
louis dae0fa0544 feat(engagement): SPEC-BLOC-1F — PWA installable + Web Push + Auth HTTPOnly cookies
Auth: migrate JWT from localStorage to HTTPOnly+Secure+SameSite=Strict cookies.
Bearer header fallback preserved for Playwright E2E compatibility.
Refresh token in dedicated cookie (path=/api/v1/auth/refresh).

PWA: vite-plugin-pwa injectManifest, manifest with shortcuts+icons,
service worker (push/notificationclick/notificationclose handlers),
PwaInstallPrompt + NotificationOptInBanner contextual components.

Push: PwaPushAdapter activated with web-push library (VAPID),
auto-cleanup expired subs on 410/404, TTL/urgency per priority.
PushSubscriptionService + usePushSubscription hook + Settings UI.

5 Vitest tests PwaPushAdapter. 0 TS errors backend+frontend.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-05-27 22:27:32 +04:00

50 lines
1.3 KiB
JSON

{
"name": "frontend",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc -b && vite build",
"lint": "eslint .",
"preview": "vite preview"
},
"dependencies": {
"@ant-design/icons": "^6.1.0",
"@dnd-kit/core": "^6.3.1",
"@dnd-kit/sortable": "^10.0.0",
"@dnd-kit/utilities": "^3.2.2",
"@microsoft/fetch-event-source": "^2.0.1",
"antd": "^6.3.2",
"axios": "^1.13.6",
"chart.js": "^4.5.1",
"dayjs": "^1.11.20",
"react": "^19.2.4",
"react-chartjs-2": "^5.3.1",
"react-dom": "^19.2.4",
"react-markdown": "^9.1.0",
"react-router-dom": "^7.13.1",
"recharts": "^3.8.0",
"remark-gfm": "^4.0.1",
"vite-plugin-pwa": "^1.3.0",
"workbox-window": "^7.4.1",
"zustand": "^5.0.13"
},
"devDependencies": {
"@eslint/js": "^9.39.4",
"@types/node": "^24.12.0",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "^6.0.0",
"eslint": "^9.39.4",
"eslint-plugin-react-hooks": "^7.0.1",
"eslint-plugin-react-refresh": "^0.5.2",
"globals": "^17.4.0",
"happy-dom": "^20.9.0",
"typescript": "~5.9.3",
"typescript-eslint": "^8.56.1",
"vite": "^8.0.0",
"vitest": "^4.1.7"
}
}