91 Commits

Author SHA1 Message Date
Leeingnyo
1f5aed64f7 Rename Entries to ArchiveEntry and DirEntry 2022-05-20 09:51:56 +09:00
Leeingnyo
3a60286c3a Run 'crystal tool format' 2022-05-15 17:02:29 +09:00
Leeingnyo
137e84dfb6 Fix caching policy
Before rendering it, the Mango reader should check the E-Tag of page
or it renders wrong image when an image file is moved/removed/reordered
2022-05-15 16:12:31 +09:00
Leeingnyo
ea6cbbd9ce Split Entry and ZippedEntry, Fix to work anyway
make Entry an abstract class
2022-05-15 05:41:25 +09:00
Alex Ling
d1de8b7a4e Include admin info in /api/signin response 2022-03-23 06:05:12 +00:00
Alex Ling
7ae0577e4e Merge branch 'dev' of https://github.com/hkalexling/Mango into dev 2022-03-22 16:08:48 +00:00
Alex Ling
e9b1bccbc9 Fix schema for the parents field 2022-03-22 16:08:16 +00:00
Alex Ling
9c07944390 Add endpoints for home page
- `/api/library/continue_reading`
- `/api/library/start_reading`
- `/api/library/recently_added`
2022-03-22 16:01:37 +00:00
Alex Ling
21d8d0e8a7 Optionally include reading progress in response 2022-03-22 12:58:37 +00:00
Alex Ling
7ecdb1c0dd API sorting improvements:
- Add endpoints for getting/updating sorting methods
- Results from library and title endpoints are now sorted
2022-03-22 10:46:38 +00:00
Alex Ling
461398d219
Feature/plugin v2 (#284)
* Add "title_title" to slim JSON

* WIP

* WIP

* WIP

* WIP

* Add plugin subscription types

* Revert "Subscription manager"

This reverts commit a612500b0fabf7259a5ee0c841b0157d191e5bdd.

* Use auto overflow tables

cherry-picked from a612500b0fabf7259a5ee0c841b0157d191e5bdd

* Add endpoint for plugin subscription

* WIP

* WIP

* Simplify subscription JSON parsing

* Remove MangaDex files that are no longer needed

* Fix linter

* Refactor date filtering and use native date picker

* Delete unnecessary raise for debugging

* Subscription management API endpoints

* Store manga ID with subscriptions

* Add subscription manager page (WIP)

* Finish subscription manager page

* WIP

* Finish plugin updater

* Base64 encode chapter IDs

* Fix actions on download manager

* Trigger subscription update from manager page

* Fix timestamp precision issue in plugin

* Show target API version

* Update last checked from manager page

* Update last checked even when no chapters found

* Fix null pid

* Clean up

* Document the subscription endpoints

* Fix BigFloat conversion issue

* Confirmation before deleting subscriptions

* Reset table sort options

* Show manga title on subscription manager
2022-03-22 16:30:01 +08:00
Alex Ling
0d52544617 Use sessid and not token and fix get_username 2022-03-21 03:41:24 +00:00
Alex Ling
2091053221 Allow CORS 2022-03-20 09:57:36 +00:00
Alex Ling
9b111b0ee8 Ignore thumbnail progress in cache (fixes #270) 2022-01-26 09:10:47 +00:00
Leeingnyo
edfef80e5c Invalidate sort result cache after change sort_title 2021-12-25 23:05:12 +09:00
Leeingnyo
d4b58e91d1 Implement sort title api 2021-12-25 22:43:35 +09:00
Alex Ling
80344c3bf0 Add endpoint /api/login 2021-10-08 10:07:40 +00:00
Alex Ling
974b6cfe9b Use depth instead of shallow in API 2021-09-22 09:17:14 +00:00
Alex Ling
4eaf271fa4 Simplify #json_build 2021-09-14 02:30:57 +00:00
Alex Ling
4b464ed361 Allow sorting in /api/book endpoint 2021-09-13 10:58:07 +00:00
Alex Ling
a9520d6f26 Add shallow option to library API endpoints 2021-09-13 10:18:07 +00:00
Alex Ling
6549253ed1 Merge branch 'dev' of https://github.com/hkalexling/Mango into dev 2021-08-20 00:26:59 +00:00
Alex Ling
d9565718a4 Remove MangaDex integration 2021-08-20 00:25:21 +00:00
Alex Ling
1973564272 Revert "Subscription manager"
This reverts commit a612500b0fabf7259a5ee0c841b0157d191e5bdd.
2021-08-18 12:09:59 +00:00
Leeingnyo
4a261d5ff8 Set Cache-Control header at page, dimensions API 2021-08-18 01:33:22 +09:00
Alex Ling
31d425d462 Document the 304 responses 2021-08-17 07:14:24 +00:00
Leeingnyo
2426ef05ec Apply cache on dimensions api
Use zip_path and mtime for hashing
It used for weak validation
2021-08-15 21:41:44 +09:00
Leeingnyo
25b90a8724 Apply cache on page, cover api
Get image data and use it for hashing
2021-08-15 21:33:08 +09:00
Alex Ling
cd8944ed2d Slim option in library and title APIs 2021-04-25 12:41:37 +00:00
Alex Ling
00c15014a1 Document subscription APIs 2021-03-15 07:12:30 +00:00
Alex Ling
b4a69425c8 Reverse the queue on download manager 2021-03-14 16:01:29 +00:00
Alex Ling
a612500b0f Subscription manager 2021-03-14 16:01:29 +00:00
Alex Ling
ee52c52f46 Fix new linter errors 2021-03-12 15:03:12 +00:00
Alex Ling
d3f26ecbc9 Move the page margin config to frontend 2021-03-06 15:04:44 +00:00
Alex Ling
8aab113aab Expiration date should be nil when theres no token 2021-03-05 11:01:00 +00:00
Alex Ling
a9a2c9faa8 Finish search for MD 2021-03-05 04:58:56 +00:00
Alex Ling
1b25a1fa47 Update Koa 2021-03-05 04:58:56 +00:00
Alex Ling
df7e2270a4 Add MangaDex login page 2021-03-05 04:58:56 +00:00
Alex Ling
70d418d1a1 Upgrade to MangaDex API v2 2021-01-30 17:08:04 +00:00
Alex Ling
a389fa7178 Allow delete all missing items (#151) 2021-01-28 09:55:41 +00:00
Alex Ling
54cd15d542 Mark items unavailable and retire DB optimization
This prepares us for the moving metadata to DB in the future
2021-01-19 15:09:38 +00:00
Alex Ling
1065b430e3 Rewrite tagging UI with suggestions (#146) 2021-01-14 13:08:50 +00:00
Alex Ling
2618d8412b Update the API doc to include margin in dimensions 2021-01-07 16:06:43 +00:00
Simon
60134dc364 Formatting 2021-01-06 17:44:02 +01:00
Simon
aa70752244 Moved margin value to the dimensions API 2021-01-06 17:30:55 +01:00
Alex Ling
af2fd2a66a Remove the Context and Router classes 2020-12-30 15:58:51 +00:00
Alex Ling
93f745aecb Only admins can add or delete tags 2020-12-30 11:13:43 +00:00
Alex Ling
8188456788 Finish tagging 2020-12-30 11:13:43 +00:00
Alex Ling
b05ed57762 Add API endpoints for tags 2020-12-30 11:13:43 +00:00
Alex Ling
d50981c151 Fix typos 2020-12-26 04:01:57 +00:00