mirror of
https://github.com/go-shiori/shiori.git
synced 2026-04-25 14:35:52 +03:00
[PR #623] [MERGED] Initial Ebook support #702
Labels
No labels
component:backend
component:builds
component:builds
component:extension
component:frontend
component:readability
database
database:mysql
database:postgres
database:sqlite
feature:ebooks
github_actions
good first issue
hacktoberfest
note:duplicate?
note:fixed?
note:out-of-scope?
os:windows
priority:high
priority:low
pull-request
resolution:as-intended
resolution:cant-reproduce
resolution:duplicate
resolution:fixed
resolution:wontfix
tag:TBD
tag:big-task
tag:help-wanted
tag:huge-data
tag:meta
tag:more-info
tag:next
tag:no-stale
tag:requires-migrations
tag:research
tag:security 🛡️
tag:stale
tag:waiting-for-assignee
type:bug
type:documentation
type:enhancement
type:meta
type:ux
user:cli
user:web
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/shiori#702
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/go-shiori/shiori/pull/623
Author: @Monirzadeh
Created: 6/22/2023
Status: ✅ Merged
Merged: 7/9/2023
Merged by: @fmartingr
Base:
master← Head:epub📝 Commits (10+)
f17a548generate ebook7bf7ca3serve ebook file5eb3b9bUpdate ebook.go not download same image twice anymore675a641download ebook request api/ui partf97cce4fix typo069a0b2add stylesheet033066aupdate hasEbook status6ca0731download link update after ebook generateb2b9986download ebook with bookmark titlef0192f5Apply suggestions from code review for better error handling📊 Changes
11 files changed (+829 additions, -5 deletions)
View changed files
➕
internal/core/ebook.go(+252 -0)➕
internal/core/ebook_test.go(+288 -0)📝
internal/core/processing.go(+17 -0)📝
internal/model/model.go(+2 -0)📝
internal/view/content.html(+3 -0)📝
internal/view/js/component/bookmark.js(+20 -1)📝
internal/view/js/page/base.js(+2 -1)📝
internal/view/js/page/home.js(+68 -2)📝
internal/webserver/handler-api.go(+107 -1)📝
internal/webserver/handler-ui.go(+68 -0)📝
internal/webserver/server.go(+2 -0)📄 Description
Hi @fmartingr
as we talk in #605 it is a not complete code. Please keep it as draft until meet all needs.
I write UI/API part too, but because I don't know you prefer of how to handle ebook status.
What it's done:
hasEbookdefine, and page update based onhasEbook.ioinstead ofio/outilfor move to higher version of golanguageandiduntil find good solution for them. If we can find a good solution for to summarize bookmark content, we can use that fordescriptiontag too.Just one still exist that I can't replaceGenerateEbookisFatalErrin other part of code likeProcessBookmarktoo?GenerateEbook68% coverage. These parts don't have unit test yetMaybe in future not plan on this PR
descriptiontag.Discussion here: https://github.com/go-shiori/shiori/discussions/605
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.