📄 Lectures: pdf.js viewer в модалке вместо Google Viewer
- vite.config.ts: копирование pdf.worker + cMaps - LecturesPage.tsx: react-pdf viewer с навигацией по страницам - Скачивание через Telegram.WebApp.downloadFile (без изменений) - Убрал Google Docs Viewer — приватность
This commit is contained in:
+3
-1
@@ -12,6 +12,7 @@
|
||||
"dependencies": {
|
||||
"react": "^19.2.7",
|
||||
"react-dom": "^19.2.7",
|
||||
"react-pdf": "^11.0.0",
|
||||
"react-router-dom": "^7.18.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
@@ -26,6 +27,7 @@
|
||||
"globals": "^17.7.0",
|
||||
"typescript": "~6.0.2",
|
||||
"typescript-eslint": "^8.62.0",
|
||||
"vite": "^8.1.1"
|
||||
"vite": "^8.1.1",
|
||||
"vite-plugin-static-copy": "^4.1.1"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user