Frontend: - Full-screen attachment preview overlay (AttachmentPreview) for image/pdf/txt plus office docs: .docx via docx-preview (rendered live into the sandboxed iframe so header/footer VML images survive), .xlsx via xlsx-preview, and .odt/.ods/.odp/.odg via a JSZip+DOMParser ODF walker (officeConvert). - Type-aware attachment icons (green spreadsheet, blue document, red PDF, image/archive); new document/image/spreadsheet/print SVGs. - Composer: drag-drop attachments (body drop inserts images inline, else attaches); inserted images are selectable/resizable/deletable (RichTextEditor). - Undo-send: "Sending…" banner with live "N seconds to Undo" countdown. - Search result list: pin/archive/delete update correctly; grey-out only for search hits; scoped "Search in Trash/Spam". Backend: - Search: prefix (search-as-you-type) matching, email-address search, and address-first result ordering; Trash/Junk excluded with scoped folder search. - Attachments: RFC 6266 Content-Disposition for non-ASCII filenames; one-time inline image loading. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Rcj3TpydMTzTSmU7kunzf8
50 lines
1.4 KiB
JSON
50 lines
1.4 KiB
JSON
{
|
|
"name": "webmail-frontend",
|
|
"private": true,
|
|
"version": "0.1.0",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "tsc --noEmit && vite build",
|
|
"preview": "vite preview",
|
|
"lint": "eslint . --max-warnings 0",
|
|
"typecheck": "tsc --noEmit",
|
|
"test": "vitest run",
|
|
"gen:api": "openapi-typescript http://127.0.0.1:8000/openapi.json -o src/api/schema.ts"
|
|
},
|
|
"dependencies": {
|
|
"@tanstack/react-query": "~5.51.0",
|
|
"@tanstack/react-virtual": "~3.8.0",
|
|
"docx-preview": "^0.4.0",
|
|
"jszip": "^3.10.1",
|
|
"pdfjs-dist": "^4.10.38",
|
|
"qrcode.react": "~4.1.0",
|
|
"react": "~18.3.1",
|
|
"react-dom": "~18.3.1",
|
|
"react-router-dom": "~6.26.0",
|
|
"xlsx-preview": "^1.0.5",
|
|
"zod": "~3.23.8"
|
|
},
|
|
"devDependencies": {
|
|
"@testing-library/jest-dom": "~6.4.8",
|
|
"@testing-library/react": "~16.0.0",
|
|
"@testing-library/user-event": "~14.5.2",
|
|
"@types/react": "~18.3.3",
|
|
"@types/react-dom": "~18.3.0",
|
|
"@typescript-eslint/eslint-plugin": "~8.0.0",
|
|
"@typescript-eslint/parser": "~8.0.0",
|
|
"@vitejs/plugin-react": "~4.3.1",
|
|
"autoprefixer": "~10.4.20",
|
|
"eslint": "~8.57.0",
|
|
"eslint-plugin-react-hooks": "~4.6.2",
|
|
"eslint-plugin-react-refresh": "~0.4.9",
|
|
"jsdom": "~24.1.1",
|
|
"openapi-typescript": "~7.3.0",
|
|
"postcss": "~8.4.41",
|
|
"tailwindcss": "~3.4.10",
|
|
"typescript": "~5.5.4",
|
|
"vite": "~5.4.1",
|
|
"vitest": "~2.0.5"
|
|
}
|
|
}
|