hjyssg / ShiguReader

硬核宅宅资源管理器. Ultimate Manga Resource Manager
MIT License
401 stars 45 forks source link

Dev frontend page slider #234

Closed hjyssg closed 11 months ago

codeautopilot[bot] commented 1 year ago

PR summary

The Pull Request titled "Dev frontend page slider" introduces a page range slider feature to the application. The changes include:

  1. Removal of a donation section from the README.md file.
  2. Addition of a new dependency react-range-slider-input to package.json.
  3. Modifications to ExplorerPage.js to incorporate the page range slider logic, including:
    • Adding a new state variable pageNumRange with a default value.
    • Updating the handleLsDirRes method to handle the maximum page number.
    • Filtering files based on the page number range.
    • Adding a new method renderPageRangeSilder to render the slider UI.
    • Adjusting the getMaxPageForSlider method to provide a maximum page number for the slider.
  4. CSS updates in Explorer.scss to style the page range slider.
  5. A minor change in _toast.scss to hide the close button on toast notifications.

The purpose of these changes is to allow users to filter files based on the number of pages they contain, using a slider interface. This feature enhances the user experience by providing a more interactive and precise way to navigate through files.

The impact of this Pull Request is primarily on the user interface, as it introduces a new way for users to interact with the file list. It also affects the file filtering logic by adding a new criterion based on page numbers.

Suggestion