shiori/internal/webserver
Monirzadeh 249f4b89c8
Initial Ebook Support (#623)
* generate ebook

* serve ebook file

* Update ebook.go not download same image twice anymore

* download ebook request api/ui part

* fix typo

* add stylesheet

* update hasEbook status

* download link update after ebook generate

update bookmark command in ui

* download ebook with bookmark title

* Apply suggestions from code review for better error handling

Co-authored-by: Felipe Martin <812088+fmartingr@users.noreply.github.com>

* Update internal/view/js/page/home.js fix typo

Co-authored-by: Felipe Martin <812088+fmartingr@users.noreply.github.com>

* import error lib and retuen missing error

* move ebook download action to update cache

* replace io/ioutil with io

* add missing error handling

* update Archive now always update ebook

* replace panic error with 404

* remove ebook with delete action

* add download ebook link to content page

* remove tags that not work correctly right now

* if file is pdf not generate ebook

* update style.css

* Revert "update style.css"

This reverts commit 519e10d6ce.

* remove download limit for api

* fix missing fmt.Errorf and change to errors.Wrap

* fix double panic

* return 404 if bookmark not exist

* change function name to GenerateEbook

* not isFatalErr anymore

* add unit test

* remove uneeded field for unit test

---------

Co-authored-by: Felipe Martin <812088+fmartingr@users.noreply.github.com>
2023-07-09 08:29:32 +02:00
..
assets-dev.go
assets-prod.go replace assets generation with embed (#423) 2022-05-26 19:36:23 +02:00
handler-api-ext.go fix: browser ext cannot archive and update bookmark. (#560) 2023-02-05 10:58:00 +01:00
handler-api.go Initial Ebook Support (#623) 2023-07-09 08:29:32 +02:00
handler-ui.go Initial Ebook Support (#623) 2023-07-09 08:29:32 +02:00
handler.go fix(api-ext): use same save logic as the api (#518) 2022-10-15 14:16:12 +02:00
server.go Initial Ebook Support (#623) 2023-07-09 08:29:32 +02:00
utils.go refactor:pass ctx to db layer, return err instead of recover panic (#450) 2022-09-30 12:19:36 +02:00
utils_ip.go fix(log): record user real ip from headers (#603) 2023-06-11 21:25:23 +02:00
utils_ip_test.go fix(log): record user real ip from headers (#603) 2023-06-11 21:25:23 +02:00