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

Build: Add Support of cover image for pages and also grid view for list of pages #21

Open
wants to merge 4 commits into
base: development
Choose a base branch
from

Conversation

brijm-improwised
Copy link
Collaborator

@brijm-improwised brijm-improwised commented Oct 24, 2024

Fixes Issue : Support Page Cover Images and Page Grid View

Closes #18

Changes proposed

  • Add Grid view option for list of pages in chapter show page
  • Add Support of cover image for pages and also display cover image with each pages if cover image is available other
  • Add functionally of cover image at time of create page and update page also add reset cover image functionally at
    update time
  • change in setting file add page_view_type for change view of list of page in chapter page
  • also change in User Preferences controller add support of change the view of page

- Note That : At time of create page if you save draft then cover image will not save

Check List (Check all the applicable boxes)

  • My code follows the code style of this project.
  • My change requires changes to the documentation.
  • I have updated the documentation accordingly.
  • All new and existing tests passed.
  • This PR does not contain plagiarized content.
  • The title of my pull request is a short description of the requested changes.

Screenshots

Screenshot from 2024-10-24 19-11-03
Screenshot from 2024-10-24 19-10-56
Screenshot from 2024-10-24 19-10-49

Note to reviewers

…in chapter show page with test case and update create test case for page and add two test case one for update cover image for page and another for reset cover image for page

public function getPageCover(int $width = 440, int $height = 250): string
{
$default = 'data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==';
Copy link
Member

Choose a reason for hiding this comment

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

@brijm-improwised default should be configurable using env

Copy link
Collaborator Author

@brijm-improwised brijm-improwised Oct 25, 2024

Choose a reason for hiding this comment

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

They implement this for book and for book they give this way only
that why i give this way

Copy link
Member

Choose a reason for hiding this comment

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

book they give this way only - @brijm-improwised Can you give example?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support Page Cover Images and Page Grid View
2 participants