📄 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:
2026-09-27 12:31:31 +03:00
parent f83028b105
commit b1756ec822
4 changed files with 899 additions and 55 deletions
+3 -1
View File
@@ -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"
}
}