Files
nextcloud-notes-desktop-app/package.json
drelich d53a454d7b Add PDF export feature to notes
- Installed jsPDF and html2canvas libraries
- Implemented handleExportPDF function to convert note to PDF
- Creates temporary styled container with title and content
- Uses html2canvas to render content as image
- Generates A4 format PDF with proper formatting
- Added export button (download icon) in note header
- Button positioned between discard and favorite buttons
- PDF filename uses note title
- Includes error handling with user feedback
2026-03-17 09:34:27 +01:00

41 lines
1.0 KiB
JSON

{
"name": "nextcloud-notes-tauri",
"private": true,
"version": "0.1.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"preview": "vite preview",
"tauri": "tauri"
},
"dependencies": {
"@tauri-apps/api": "^2",
"@tauri-apps/plugin-opener": "^2",
"@tiptap/extension-strike": "^2.27.2",
"@tiptap/extension-underline": "^2.27.2",
"@tiptap/pm": "^2.27.2",
"@tiptap/react": "^2.27.2",
"@tiptap/starter-kit": "^2.27.2",
"html2canvas": "^1.4.1",
"jspdf": "^4.2.0",
"marked": "^17.0.4",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"turndown": "^7.2.2"
},
"devDependencies": {
"@tailwindcss/typography": "^0.5.19",
"@tauri-apps/cli": "^2",
"@types/react": "^19.1.8",
"@types/react-dom": "^19.1.6",
"@types/turndown": "^5.0.6",
"@vitejs/plugin-react": "^4.6.0",
"autoprefixer": "^10.4.27",
"postcss": "^8.5.8",
"tailwindcss": "^3.4.19",
"typescript": "~5.8.3",
"vite": "^7.0.4"
}
}