Coder Social home page Coder Social logo

galacticmaster / epub Goto Github PK

View Code? Open in Web Editor NEW

This project forked from norah1to/yue

0.0 0.0 0.0 2.41 MB

Lightweight web reader, easy to use, clean interface, focused on reading

Home Page: https://yue.norah1to.com

License: MIT License

Shell 0.06% JavaScript 0.25% TypeScript 99.23% CSS 0.04% HTML 0.42%

epub's Introduction

πŸ“š YueοΌˆι˜… yuΓ¨οΌ‰

Lightweight web reader, easy to use, clean interface, focused on reading

English | δΈ­ζ–‡

✨ Features

  • πŸ“– Multi-format: epub, pdf, comic(cbz, cbr, rar, zip, 7z), txt

  • πŸš€ Cross Platform: All you need is a browser

  • πŸš€ PWA: Excellent offline experience

  • πŸ“ WebDAV: Use your own reading library

  • 🌏 I18n: Multilingual support

You can learn more by visiting the deployed site yue.norah1to.com

🧐 Why

I recently got my second iOS device in my life, and the reader on the AppStore can only be imported locally, or you have to pay extra.

Okay, I'll write one myself

🎈 Usage Guide

Install

Environmental requirements node >=14 <18, pnpm >=7

pnpm install

Dev

Open Development Services

pnpm dev:web

Visit http://localhost:5111, if the default port is occupied, please refer to the console output

Bundle

You can package the common version

pnpm build:web

or versions with PWA support

pnpm build:web-pwa

The packaged products are in dist/web and dist/web-pwa respectively

πŸ“ Road Map

List the functions that MAYBE achieve, the project only needs to meet my personal needs for the time being (nobody uses it)

  • PDF support

  • Comic support (zip format)

  • Customized reader color scheme

  • More Sources (OneDrive, etc.)

🚧 Known Issues

If there is a solution, PR welcome!

Cross-domain issues

All WebApps can not get around the problem, most webDAV services can not be used

Personally, I solved the problem by using alist to build a private service

  • 2023/05/25 Update

    Cross-domain issues have been solved by configuring vercel.json using a reverse proxy

    e.g. https://yue.norah1to.com/proxy/my.webdav.server/sub

    In this case, you need to configure the custom root path of the directory to be the correct root path, in the above example we need to configure it to /sub.

Unable to turn page

There is a small chance that the page will not turn after the following operation, epub.js' problem

  • Frequent window zooming

  • Very frequent page turns (have done throttling, basically no problem)

Details here

Jump page deviation

Jump to the specified page will have +/-1 page deviation, epub.js's cfi implementation problem

Rendering deviation

Only on Android phones, the page will be shifted 1~2px after each page turn, the reason is unknown (I guess it's also the problem of epub.js)

License

MIT

epub's People

Contributors

norah1to avatar galacticmaster avatar

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.