Skip to content

Commit

Permalink
prepare pdfjs patch
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed May 22, 2024
1 parent 803bcc7 commit 31f8ab3
Show file tree
Hide file tree
Showing 6 changed files with 67 additions and 65 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

Binary file not shown.
3 changes: 3 additions & 0 deletions frontend/front-srv/assets/editor.pdfjs/res/js/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ import { Document, Page } from 'react-pdf';

const { EditorActions, withSelection } = Pydio.requireLib('hoc');

const reactPDFOptions = {isEvalSupported: false}

class InlineViewer extends React.Component {

shouldComponentUpdate(nextProps, nextState, nextContext) {
Expand Down Expand Up @@ -57,6 +59,7 @@ class InlineViewer extends React.Component {
loading={infoBlock('Loading document...')}
noData={infoBlock('No data loaded!')}
error={infoBlock('Failed loading page')}
options={reactPDFOptions}
>
<Page
pageNumber={pageNumber}
Expand Down
123 changes: 61 additions & 62 deletions frontend/front-srv/assets/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 31f8ab3

Please sign in to comment.