Skip to content

Conversation

danxuliu
Copy link
Member

@danxuliu danxuliu commented Jan 8, 2025

Requires #1106 and #1108

This is just a refactoring to move the initialization of the PDF.js library from workersrc.js to PDFView.vue. Although this does not (or, at least, should not :-) ) change the behaviour it is a prerequisite to update to PDF.js 4.X, as in that major version it is no longer possible to initialize the library in the helper script (maybe the app is now executed at an earlier point and setting PDFViewerApplicationOptions in workersrc.js has no effect because it is already too late, but I have not dived into that).

In any case, the refactoring is done in its own separate pull request for clarity and easier reviewing.

Note that the code guarded by if (hideDownload()) } currently does not work in Nextcloud 31, as when the public share page was moved to Vue the hideDownload element was removed. Nevertheless, this should be adjusted somehow in the hideDownload.js file and does not affect the refactoring (it should be adjusted because, although setting Hide download behaves as Disable download in Nextcloud 31 if I am not mistaken the previous behaviour is kept for existing shares until they are updated).

@danxuliu danxuliu added this to the Nextcloud 31 milestone Jan 8, 2025
@danxuliu danxuliu force-pushed the move-initialization-from-helper-script-to-vue-component branch from 6bb5449 to 47f8424 Compare January 11, 2025 05:44
@blizzz blizzz modified the milestones: Nextcloud 31, Nextcloud 32 Jan 29, 2025
@danxuliu danxuliu force-pushed the move-initialization-from-helper-script-to-vue-component branch from 47f8424 to f93247e Compare January 30, 2025 11:12
@danxuliu
Copy link
Member Author

/compile /

Signed-off-by: nextcloud-command <[email protected]>
@danxuliu danxuliu marked this pull request as ready for review February 5, 2025 03:32
@danxuliu
Copy link
Member Author

danxuliu commented Feb 5, 2025

/backport to stable31

@danxuliu
Copy link
Member Author

danxuliu commented Feb 5, 2025

/backport to stable30

@danxuliu
Copy link
Member Author

danxuliu commented Feb 5, 2025

/backport to stable29

@danxuliu danxuliu requested a review from szaimen February 5, 2025 03:33
Copy link
Collaborator

@szaimen szaimen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🐘

@danxuliu danxuliu merged commit b8bc356 into master Feb 5, 2025
38 checks passed
@danxuliu danxuliu deleted the move-initialization-from-helper-script-to-vue-component branch February 5, 2025 10:59
@skjnldsv skjnldsv modified the milestones: Nextcloud 32, Nextcloud 33 Sep 28, 2025
@skjnldsv skjnldsv modified the milestones: Nextcloud 33, Nextcloud 32 Oct 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants