1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00
joplin/packages/pdf-viewer
2022-08-19 19:10:39 +01:00
..
config Desktop: New Embedded Pdf Viewer (#6681) 2022-08-04 10:12:22 +01:00
hooks Tools: Add react-hooks/exhaustive-deps eslint rule 2022-08-19 12:10:04 +01:00
.gitignore Desktop: New Embedded Pdf Viewer (#6681) 2022-08-04 10:12:22 +01:00
index.html Desktop: New Embedded Pdf Viewer (#6681) 2022-08-04 10:12:22 +01:00
jest.config.js Desktop: New Embedded Pdf Viewer (#6681) 2022-08-04 10:12:22 +01:00
miniViewer.tsx Desktop: New Embedded Pdf Viewer (#6681) 2022-08-04 10:12:22 +01:00
package-lock.json Desktop: New Embedded Pdf Viewer (#6681) 2022-08-04 10:12:22 +01:00
package.json Tools: Fix desktop build performance issue (#6762) 2022-08-19 19:10:39 +01:00
Page.tsx Tools: Add react-hooks/exhaustive-deps eslint rule 2022-08-19 12:10:04 +01:00
pages.css Desktop: New Embedded Pdf Viewer (#6681) 2022-08-04 10:12:22 +01:00
pdfSource.test.ts Desktop: New Embedded Pdf Viewer (#6681) 2022-08-04 10:12:22 +01:00
pdfSource.ts Desktop: New Embedded Pdf Viewer (#6681) 2022-08-04 10:12:22 +01:00
README.md Tools: Fix desktop build performance issue (#6762) 2022-08-19 19:10:39 +01:00
tsconfig.json Desktop: New Embedded Pdf Viewer (#6681) 2022-08-04 10:12:22 +01:00
VerticalPages.tsx Desktop: New Embedded Pdf Viewer (#6681) 2022-08-04 10:12:22 +01:00
viewer.css Desktop: New Embedded Pdf Viewer (#6681) 2022-08-04 10:12:22 +01:00
webpack.config.js Desktop: New Embedded Pdf Viewer (#6681) 2022-08-04 10:12:22 +01:00

PDF VIEWER

A custom built PDF viewer for Joplin's use. The viewer is designed to be rendered in an iframe. This package produces the build files in /dist folder.

Installation & Usage

From root of the project:

yarn install

This step will also run yarn build and build the viewer on post-install and populate the /dist folder. We are using weback for build process.

When working on the viewer, after code updates you need to rebuild the viewer:

yarn build

Alternatively, you can use yarn watch to rebuild automatically on code changes.

yarn watch

The build process of app-desktop takes care of copying the content of /dist and the root html file to appropriate location.