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

Extension: EPub Viewer #5891

Closed
Tracked by #7930
dragotin opened this issue Oct 8, 2021 · 11 comments
Closed
Tracked by #7930

Extension: EPub Viewer #5891

dragotin opened this issue Oct 8, 2021 · 11 comments
Assignees

Comments

@dragotin
Copy link
Contributor

dragotin commented Oct 8, 2021

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
Copy link

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

@kulmann
Copy link
Member

kulmann commented Sep 14, 2022

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
Copy link

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

@anonymous-baaka anonymous-baaka removed their assignment Dec 2, 2022
@kulmann
Copy link
Member

kulmann commented Dec 2, 2022

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

@dschmidt dschmidt mentioned this issue Dec 2, 2022
30 tasks
@protocolog
Copy link

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

@kulmann
Copy link
Member

kulmann commented Dec 6, 2022

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
Copy link

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
Copy link

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

@dschmidt
Copy link
Member

dschmidt commented Dec 7, 2022

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.

@JammingBen JammingBen removed the Topic:good-first-issue beginner friendly task label Jul 1, 2023
@AlexAndBear AlexAndBear self-assigned this Feb 5, 2024
@AlexAndBear
Copy link
Contributor

AlexAndBear commented Feb 5, 2024

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

@pascalwengerter
Copy link
Contributor

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

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

No branches or pull requests

8 participants