Giter Club home page Giter Club logo

books's Introduction

Books

Place this app in nextcloud/apps/

Building the app

todo

books's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

idxiu

books's Issues

Add Keyboard Navigation

  • Next page: right arrow
  • Previous page: left arrow
  • Close book: escape

Maybe:

  • Next chapter: down arrow
  • Previous chapter: up arrow

Populate Category Navigation

Build main navigation items from e-books currently in the database.

  • Authors
  • Series
  • Genres
  • Read Status
  • Shelves

Show spinner while book loads

Loading a book into the reader can take a couple of seconds, mostly because locations are generated every time a new book is opened. There should be some kind of UI element indicating that work is done while users wait for the book to finish loading.

As a long term solution, book locations should definitely be cached, probably in local storage on the client side.

Investigate TOC Fails

epub30-spec.zip

Some table of contents entries fail to navigate to the specified position in the book. Clicking on them produces a No Section Found error.

Stack trace:

epub.min.js:formatted:5124 Uncaught (in promise) Error: No Section Found
    at b._display (epub.min.js:formatted:5124)
    at e.a.dequeue (epub.min.js:formatted:2541)
    at epub.min.js:formatted:2558
_display @ epub.min.js:formatted:5124
dequeue @ epub.min.js:formatted:2541
(anonymous) @ epub.min.js:formatted:2558
Promise.then (async)
dequeue @ epub.min.js:formatted:2541
(anonymous) @ epub.min.js:formatted:2558
requestAnimationFrame (async)
run @ epub.min.js:formatted:2557
enqueue @ epub.min.js:formatted:2535
display @ epub.min.js:formatted:5106
toSection @ app.js:1

Another problem is that TOC entries are not always highlighted even though they should be. Seems to be linked to url fragments.

An example file is attached.

  • Fix section not found error
  • Fix TOC highlighting
  • Fix wrong TOC highlight when at beginning of section that contains subsections
  • Handle files that are listed in the spine but not in the nav document

Create TOC

Embed the table of contents in the app's sidebar.

Set Up Unit Testing

The code is completely untested right now. That needs to change. Unit testing needs to be set up for PHP and JavaScript independently.

  • PHP
  • JS

Settings: Change Font Size

Allow users to change the font size of books. Store the value in a cookie or local storage in order to allow having different values for different devices at the same time.

AJAX Message Field

AJAX response messages are logged to console, but never shown in the UI. Implement a UI element that displays messages to the user and takes care of timeouts and stuff.

Use Slider to Navigate Document

The slider at the bottom of the reader view should provide navigation functionality. The view should be updated live, but with a delay for performance reason.

  • Scrub to specified place by using the slider
  • Display chapter markers on slider
  • Snap to chapter markers (Optional)

Snapping to section markers might not be optimal, because it makes it harder to precisely hit pages near those markers.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.