1022 Commits

Author SHA1 Message Date
Leeingnyo
0ed565519b Rollback crystal format 2022-05-15 17:38:21 +09:00
Leeingnyo
3da5d9ba4e Fix contents_signature 2022-05-15 17:36:57 +09:00
Leeingnyo
3a60286c3a Run 'crystal tool format' 2022-05-15 17:02:29 +09:00
Leeingnyo
9f6be70995 Rename Entry.exists? to Entry.examine 2022-05-15 16:28:53 +09:00
Leeingnyo
caf4cfb6cd Fix Entry.new in YAML::Serializable to support DirectyEntry
so hacky
2022-05-15 16:12:43 +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
3b3a0738e8 Scan DirectoryEntry when init and examine 2022-05-15 16:12:31 +09:00
Leeingnyo
55ccd928a2 Implement DirectoryEntry 2022-05-15 16:12:31 +09:00
Leeingnyo
10587f48cb Implement is_supported_image_file 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
883e01bbdd
Merge pull request #302 from Leeingnyo/fix/preload-bug
Fix preload bug
2022-05-13 20:11:20 +08:00
Alex Ling
5f59b7ee42
Merge branch 'dev' into fix/preload-bug 2022-05-13 19:51:26 +08:00
Alex Ling
eac274a211
Merge pull request #301 from Leeingnyo/feature/show-control-at-end-in-paged-mode
Show control after reading all (in paged mode)
2022-05-13 19:47:57 +08:00
Leeingnyo
0e4169cb22 Fix preload bug
cause index error
2022-05-13 08:43:25 +09:00
Leeingnyo
28656695c6 Show control after reading at the end in paged mode 2022-05-13 08:35:04 +09:00
Alex Ling
ce1dcff229 Bump version to 0.26.2 2022-04-18 09:41:36 +00:00
Alex Ling
4f599fb719 Add back accidentally deleted OPDS routes
Resolves https://github.com/hkalexling/Mango/issues/255#issuecomment-1097588181
2022-04-18 08:49:09 +00:00
Alex Ling
c831879c23
Merge pull request #293 from hkalexling/rc/0.26.1
v0.26.1
v0.26.1
2022-04-04 22:11:24 +08:00
Alex Ling
171b44643c Bump version to 0.26.1 2022-04-04 13:33:03 +00:00
Alex Ling
a353029fcd Merge branch 'master' into dev 2022-04-04 13:20:36 +00:00
Alex Ling
75e26d8624
Merge pull request #292 from hkalexling/fix/sanitize-html
Sanitize parameters on user edit page (fixes #289)
2022-04-04 21:16:44 +08:00
Alex Ling
ebe2c8efed Sanitize parameters on user edit page (fixes #289) 2022-04-04 03:20:52 +00:00
Alex Ling
b8ce1cc7f1
Merge pull request #286 from hkalexling/rc/0.26.0
v0.26.0
v0.26.0
2022-04-03 18:41:14 +08:00
Alex Ling
24c90e7283 Update README config example 2022-03-28 14:17:54 +00:00
Alex Ling
9ffc34e8e6 Bump version to 0.26.0 2022-03-28 14:14:17 +00: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
293fb84e1d Formatting 2022-03-22 16:04:39 +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
173d69eb26 Upgrade Koa 2022-03-22 15:59:56 +00:00
Alex Ling
21d8d0e8a7 Optionally include reading progress in response 2022-03-22 12:58:37 +00:00
Alex Ling
61e85dd49f Include archive error messages in API response 2022-03-22 11:42:25 +00:00
Alex Ling
c778364ca2 Formatting 2022-03-22 11:42:16 +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
a5a7396edd Fix CORS allowed methods 2022-03-22 10:46:09 +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
c3736d222c Fix long line 2022-03-20 10:01:44 +00:00
Alex Ling
2091053221 Allow CORS 2022-03-20 09:57:36 +00:00
Alex Ling
703e6d076b Allow authentication through bearer token 2022-03-20 09:57:10 +00:00
Alex Ling
1817efe608 Fix icon transparency issue 2022-03-17 16:21:06 +00:00
Alex Ling
8814778c22 Add error handling on read_page (fixes #281) 2022-03-12 14:18:08 +00:00
Alex Ling
6ab885499c Use smaller icons on web UI 2022-03-11 14:04:28 +00:00
Alex Ling
91561ecd6b Add simple manifest.json (closes #262) 2022-03-11 13:44:16 +00:00
Alex Ling
3c399fac4e Add error handling on admin page (fixes #274) 2022-02-21 13:25:55 +00:00
Alex Ling
a101526672
Merge pull request #271 from hkalexling/rc/0.25.0
v0.25.0
v0.25.0
2022-02-12 12:55:35 +08:00
Alex Ling
eca47e3d32 Update README config example 2022-02-11 14:28:05 +00:00
Alex Ling
ab3386546d Remove db_optimization from README 2022-02-06 06:39:59 +00:00
Alex Ling
857c11be85 Enable metadata cache by default 2022-02-06 06:39:46 +00:00