owncloud / web

:dragon_face: Next generation frontend for ownCloud Infinite Scale
https://owncloud.dev/clients/web/
GNU Affero General Public License v3.0
444 stars 157 forks source link

Extension: EPub Viewer #5891

Closed dragotin closed 8 months ago

dragotin commented 3 years ago

Build an EPub Viewer extension for ownCloud Web.

https://github.com/futurepress/epub.js/ might be a reasonable JS lib to render EPub.

anonymous-baaka commented 2 years ago

I would love working on this. if possible please do assign.

kulmann commented 2 years ago

Gladly! You can create a new app in packages/web-app-epub-viewer. Might make sense to have a look at e.g. web-app-pdf-viewer as a blueprint. If you have questions, you can reach out either here or in talk.owncloud.com #web channel.

protocolog commented 1 year ago

I am student of BITS Pilani India. Please assign me this issue. @dragotin @kulmann

kulmann commented 1 year ago

I am student of BITS Pilani India. Please assign me this issue. @dragotin @kulmann

Thank you for your offer to contribute, much appreciated! 🤩 You can have a look at e.g. packages/web-app-draw-io or packages/web-app-pdf-viewer as good examples. An epub viewer would have very similar architecture.

If you need any help, don't hesitate to communicate here or in our chat channel #web in talk.owncloud.com

protocolog commented 1 year ago

I am trying to insatll the packages but npm is giving "code EUNSUPPORTEDPROTOCOL" this error. Please help me. @kulmann @dragotin

kulmann commented 1 year ago

I am trying to insatll the packages but npm is giving "code EUNSUPPORTEDPROTOCOL" this error. Please help me. @kulmann @dragotin

Please see docs here: https://owncloud.dev/clients/web/backend-ocis/#setting-up-web

The project only works with a recent pnpm. npm does not work here.

protocolog commented 1 year ago

I have installed the packages, downloaded docker and loaded the owncloud image, and followed the documentation you sent. Now how can I add extension of EPUB? Do I need to create one dir for web-app-epub-viewer? Can you please briefly explain Also, I tested on my localhost :9200 when I create txt and pdf file they are opening but when I am trying to open epub, it downloads that file. @kulmann

protocolog commented 1 year ago

Are you on slack, I need your guidance for the extension? @kulmann

dschmidt commented 1 year ago

Not Slack, but you can find the oC Web Developers on https://talk.owncloud.com/

Yes, you would create a web-app-epub-viewer, it's probably a good idea to look at web-app-pdf-viewer how works as a handler for pdf files. It's probably the most trivial file viewer we currently have and should be a good starting point for you.

You need to create a folder and then add the application to whatever config.json file you are using, e.g. in config/ or in dev/docker.

AlexAndBear commented 9 months ago

Turns out that https://github.com/futurepress/epub.js/ is indeed the best lib to accomplish this. Nice research @dragotin 💪

pascalwengerter commented 8 months ago

Can be closed via #10448 thanks to @AlexAndBear ? 🥳 🐶