Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate ResumePlugin to BookReaderPlugin #1375

Merged
merged 2 commits into from
Feb 19, 2025

Conversation

cdrini
Copy link
Contributor

@cdrini cdrini commented Feb 1, 2025

Blocked by #1374 , so ignore the autoplay files in this diff.

Testing:

  1. Go to the netlify review app https://deploy-preview-1375--lucid-poitras-9a1249.netlify.app/bookreaderdemo/demo-internetarchive?ocaid=theworksofplato01platiala
  2. Go to a page
  3. Remove the #... fragment from the url and reload the page
  4. ✅ Should be sent back to the same page

Breaking changes:

  • BookReader#getResumeValue() moved to BookReader._plugins.resume.getResumeValue(). Similarly for getCookiePath, and updateResumeValue .
  • The option enablePageResume: bool has been renamed to plugins.resume.enabled: bool
  • The option resumeCookiePath: string has been renamed to plugins.resume.cookiePath: string

@cdrini cdrini added the blocked label Feb 1, 2025
@cdrini cdrini force-pushed the refactor/resume-br-plugin branch from 8bc0107 to d7bd63d Compare February 1, 2025 01:33
Copy link

codecov bot commented Feb 1, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 69.21%. Comparing base (32b10df) to head (be94691).
Report is 3 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1375   +/-   ##
=======================================
  Coverage   69.21%   69.21%           
=======================================
  Files          60       60           
  Lines        5146     5146           
  Branches     1101     1102    +1     
=======================================
  Hits         3562     3562           
  Misses       1555     1555           
  Partials       29       29           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@cdrini cdrini force-pushed the refactor/resume-br-plugin branch from d7bd63d to 44d12df Compare February 1, 2025 01:56
@cdrini cdrini marked this pull request as ready for review February 1, 2025 02:09
@cdrini cdrini force-pushed the refactor/resume-br-plugin branch from 44d12df to be94691 Compare February 19, 2025 20:27
@cdrini cdrini merged commit 2f53120 into internetarchive:master Feb 19, 2025
10 checks passed
@cdrini cdrini deleted the refactor/resume-br-plugin branch February 19, 2025 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant