Compare commits

...

924 Commits

Author SHA1 Message Date
Alex Ling c831879c23 Merge pull request #293 from hkalexling/rc/0.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
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 a612500b0f.

* Use auto overflow tables

cherry-picked from a612500b0f

* 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
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
Alex Ling b3ea3c6154 Remove unnecessary type restrictions in config 2022-02-06 06:28:39 +00:00
Alex Ling 84168b4f53 Update config example in README 2022-02-06 06:28:10 +00:00
Alex Ling 59528de44d Remove mangadex entry from config 2022-02-06 06:18:09 +00:00
Alex Ling a29d6754e8 Expand paths in config (closes #277) 2022-02-06 06:17:42 +00:00
Alex Ling 167e207fad Bump version to 0.25.0 2022-01-26 12:12:01 +00:00
Alex Ling 3b52d72ebf Merge branch 'master' into rc/0.25.0 2022-01-26 12:11:06 +00:00
Alex Ling dc5edc0c1b Merge pull request #272 from hkalexling/all-contributors/add-nduja
docs: add nduja as a contributor for code
2022-01-26 20:09:32 +08:00
allcontributors[bot] 7fa8ffa0bd docs: update .all-contributorsrc [skip ci] 2022-01-26 11:52:12 +00:00
allcontributors[bot] 85b57672e6 docs: update README.md [skip ci] 2022-01-26 11:52:11 +00:00
Alex Ling 9b111b0ee8 Ignore thumbnail progress in cache (fixes #270) 2022-01-26 09:10:47 +00:00
Alex Ling 8b1c301950 Merge pull request #269 from hkalexling/all-contributors/add-BradleyDS2
docs: add BradleyDS2 as a contributor for doc
2022-01-25 14:01:02 +08:00
allcontributors[bot] 3df4675dd7 docs: update .all-contributorsrc [skip ci] 2022-01-25 05:14:09 +00:00
allcontributors[bot] 312de0e7b5 docs: update README.md [skip ci] 2022-01-25 05:14:08 +00:00
Alex Ling d57ccc8f81 Merge pull request #264 from BradleyDS2/patch-1
Update README.md
2022-01-25 13:13:59 +08:00
Alex Ling fea6c04c4f Fix actions on download manager (fixes #266) 2022-01-24 14:24:35 +00:00
Alex Ling 77df418390 Compare with DB when loading library cache (fixes #256) 2022-01-24 14:18:52 +00:00
Alex Ling 750fbbb8fe Delete cache when dir mismatch (fixes #265) 2022-01-24 13:25:55 +00:00
BradleyDS2 cfe46b435d Update README.md
Fix typo: 'thrid' to 'third'
2022-01-24 00:08:18 +11:00
Alex Ling b2329a79b4 Gracefully handle nullish fields 2022-01-18 15:02:16 +00:00
Alex Ling 2007f13ed6 Merge pull request #259 from Leeingnyo/feature/custom-sort-title-and-sorting-titles
Implement custom sort title and sorting titles
2022-01-15 20:56:16 +08:00
Alex Ling f70be435f9 Merge branch 'dev' into feature/custom-sort-title-and-sorting-titles 2022-01-15 20:30:56 +08:00
Alex Ling 1b32dc3de9 Add sort title to API response 2022-01-15 12:09:03 +00:00
Alex Ling b83ccf1ccc Fix down SQL 2022-01-15 12:08:23 +00:00
Alex Ling a68783aa21 Merge pull request #261 from nduja/feature/right-to-left
Feature/right to left
2022-01-06 16:54:47 +08:00
Robbo 86beed0c5f Cast RightToLeft value to boolean when retrieving from local storage. 2022-01-05 19:04:40 +11:00
Robbo b6c8386caf Merge branch 'dev' into feature/right-to-left 2022-01-04 21:01:56 +11:00
Robbo 27cc669012 Fix Right to Left for keyboard input 2022-01-04 20:43:55 +11:00
Robbo 4b302af2a1 Add Right to Left option to Paged viewing mode 2022-01-04 00:20:52 +11:00
Alex Ling ab29a9eb80 Fix down SQL for removing columns 2021-12-31 14:33:49 +00:00
Leeingnyo e7538bb7f2 Use val(), Remove callbacks after modal hidden 2021-12-26 05:56:45 +09:00
Leeingnyo ecaec307d6 Fix title sort bug, invalidate titles of the Library
Refactor remove cache
2021-12-26 05:15:21 +09:00
Leeingnyo b711072492 Fix lint 2021-12-26 04:10:03 +09:00
Leeingnyo 0f94288bab Avoid N+1 queries problem 2021-12-26 03:29:41 +09:00
Leeingnyo bd2ed1b338 Implement to restore a display name with an empty input
Add a placeholder for the default display name
Remove some console.log() callings
2021-12-26 03:29:23 +09:00
Leeingnyo 1cd777d27d Cache sorted titles 2021-12-26 02:56:57 +09:00
Leeingnyo 1ec8dcbfda Use sort_title, sort_titles in title page 2021-12-26 02:55:52 +09:00
Leeingnyo 8fea35fa51 Use sorted_titles 2021-12-26 00:27:00 +09:00
Leeingnyo 234b29bbdd Fix save 2021-12-25 23:05:12 +09:00
Leeingnyo edfef80e5c Invalidate sort result cache after change sort_title 2021-12-25 23:05:12 +09:00
Leeingnyo 45ffa3d428 Implement UI to edit sort title 2021-12-25 23:05:12 +09:00
Leeingnyo 162318cf4a Add Api call 2021-12-25 23:05:12 +09:00
Leeingnyo d4b58e91d1 Implement sort title api 2021-12-25 22:43:35 +09:00
Leeingnyo 546bd0138c Use sort_title instead of title 2021-12-25 22:43:35 +09:00
Leeingnyo ab799af866 Implement sort_title getter, setter 2021-12-25 22:43:35 +09:00
Leeingnyo 3a932d7b0a Add column 'sort_title' to titles, ids table 2021-12-25 21:49:30 +09:00
Leeingnyo 57683d1cfb Add sort option "Name" for title 2021-12-24 16:44:07 +09:00
Alex Ling d7afd0969a Merge pull request #258 from Leeingnyo/fix/fix-bug-on-scan
Fix bug on scanning
2021-12-22 20:33:12 +08:00
Alex Ling 4eda55552b Linter fix 2021-12-22 12:16:44 +00:00
Leeingnyo f9254c49a1 Fix lint error 2021-12-19 17:14:47 +09:00
Leeingnyo 6d834e9164 Fix formatting 2021-12-19 17:03:39 +09:00
Leeingnyo 70259d8e50 Do same with an entry 2021-12-19 17:03:10 +09:00
Leeingnyo 0fa2bfa744 Fix bug on examine 2021-12-19 16:40:38 +09:00
Leeingnyo cc33fa6595 Fix bug: remove titles not in root library anymore 2021-12-19 16:31:43 +09:00
Alex Ling 921628ba6d Limit max length in download table (fixes #244) 2021-11-17 13:10:44 +00:00
Alex Ling 1199eb7a03 Use mobile menu at @m (fixes #246) 2021-11-16 13:37:19 +00:00
Alex Ling f075511847 Merge pull request #245 from hkalexling/feature/login-api
Add endpoint `/api/login`
2021-10-11 13:20:34 +08:00
Alex Ling 80344c3bf0 Add endpoint /api/login 2021-10-08 10:07:40 +00:00
Alex Ling 8a732804ae Merge pull request #232 from hkalexling/rc/0.24.0
v0.24.0
2021-09-25 13:39:48 +08:00
Alex Ling 9df372f784 Merge branch 'dev' into rc/0.24.0 2021-09-23 07:52:58 +00:00
Alex Ling cf7431b8b6 Merge pull request #236 from hkalexling/fix/shallow-api-fix
Use `depth` instead of `shallow` in API
2021-09-23 15:52:14 +08:00
Alex Ling 974b6cfe9b Use depth instead of shallow in API 2021-09-22 09:17:14 +00:00
Alex Ling 4fbe5b471c Update README 2021-09-20 01:36:31 +00:00
Alex Ling 33e7e31fbc Bump version to 0.24.0 2021-09-20 01:11:26 +00:00
Alex Ling 72fae7f5ed Fix typo cbz -> gz 2021-09-18 12:41:25 +00:00
Alex Ling f50a7e3b3e Merge branch 'dev' into rc/0.24.0 2021-09-18 12:40:56 +00:00
Alex Ling 66c4037f2b Merge pull request #233 from Leeingnyo/feature/avoid-unnecessary-sort
Avoid a unnecessary sorting
2021-09-18 20:40:25 +08:00
Leeingnyo 2c022a07e7 Avoid unnecessary sorts when getting deep percentage
This make page loading fast
2021-09-18 18:49:29 +09:00
Alex Ling 91362dfc7d Merge branch 'master' into rc/0.24.0 2021-09-18 09:20:59 +00:00
Alex Ling 97168b65d8 Make library cache path configurable 2021-09-18 08:40:08 +00:00
Alex Ling 6e04e249e7 Merge pull request #229 from Leeingnyo/feature/preserve-scanned-titles
Reuse scanned titles on boot and scanning
2021-09-18 16:14:31 +08:00
Alex Ling 16397050dd Update comments 2021-09-18 02:24:50 +00:00
Alex Ling 3f73591dd4 Update comments 2021-09-18 02:14:22 +00:00
Alex Ling ec25109fa5 Merge branch 'feature/preserve-scanned-titles' of https://github.com/Leeingnyo/Mango into feature/preserve-scanned-titles 2021-09-18 02:04:02 +00:00
Alex Ling 96f1ef3dde Improve comments on examine 2021-09-18 02:00:10 +00:00
Leeingnyo b56e16e1e1 Remove counter, yield everytime 2021-09-18 10:59:43 +09:00
Leeingnyo 9769e760a0 Pass a counter to recursive calls, Ignore negative threshold 2021-09-16 07:49:12 +09:00
Leeingnyo 70ab198a33 Add config 'forcely_yield_count'
the default value 1000 would make a fiber yield on each 4ms on SSD

Apply yield counter in Dir.contents_signauture
Use contents_signature cache in Title.new
2021-09-16 00:16:26 +09:00
Alex Ling 44a6f822cd Simplify Title.new 2021-09-15 09:00:30 +00:00
Alex Ling 2c241a96bb Merge branch 'dev' into feature/preserve-scanned-titles 2021-09-15 08:58:24 +00:00
Alex Ling 219d4446d1 Merge pull request #231 from hkalexling/feature/api-improvements
API Improvements
2021-09-15 16:54:41 +08:00
Alex Ling d330db131e Simplify mark_unavailable 2021-09-15 08:46:30 +00:00
Leeingnyo de193906a2 Refactor mark_unavailable 2021-09-15 16:54:55 +09:00
Leeingnyo d13cfc045f Add a comment 2021-09-15 01:27:05 +09:00
Leeingnyo a3b2cdd372 Lint 2021-09-15 01:17:44 +09:00
Leeingnyo f4d7128b59 Mark unavailable only in candidates 2021-09-14 23:30:03 +09:00
Leeingnyo 663c0c0b38 Remove nested title including self 2021-09-14 23:28:28 +09:00
Leeingnyo 57b2f7c625 Get nested ids when title removed 2021-09-14 23:08:07 +09:00
Leeingnyo 9489d6abfd Use reference instead of primitive 2021-09-14 23:07:47 +09:00
Leeingnyo 670cf54957 Apply yield forcely 2021-09-14 22:51:37 +09:00
Leeingnyo 2e09efbd62 Collect deleted ids 2021-09-14 22:51:25 +09:00
Leeingnyo 523195d649 Define ExamineContext, apply it when scanning 2021-09-14 22:37:30 +09:00
Leeingnyo be47f309b0 Use cache when calculating contents_signature 2021-09-14 18:11:08 +09:00
Alex Ling 03e044a1aa Improve logging 2021-09-14 07:16: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
Leeingnyo a151ec486d Fix file extension of gzip file 2021-09-12 18:04:41 +09:00
Leeingnyo 8f1383a818 Use Gzip instead of Zip 2021-09-12 18:01:16 +09:00
Leeingnyo f5933a48d9 Register mime_type scan, thumbnails when loading instance 2021-09-12 17:40:40 +09:00
Leeingnyo 7734dae138 Remove unnecessary sort 2021-09-12 14:36:17 +09:00
Leeingnyo 8c90b46114 Remove removed titles from title_hash 2021-09-12 13:39:28 +09:00
Leeingnyo cd48b45f11 Add 'require "yaml"' 2021-09-12 12:45:24 +09:00
Leeingnyo bdbdf9c94b Fix to pass 'make check', fix comments 2021-09-12 11:09:48 +09:00
Leeingnyo 7e36c91ea7 Remove debug print 2021-09-12 10:47:15 +09:00
Leeingnyo 9309f51df6 Memoization on dir contents_signature 2021-09-12 02:19:49 +09:00
Leeingnyo a8f729f5c1 Sort entries and titles when they needed 2021-09-12 02:19:49 +09:00
Leeingnyo 4e8b561f70 Apply contents signature of directories 2021-09-12 02:19:49 +09:00
Leeingnyo e6214ddc5d Rescan only if instance loaded 2021-09-12 02:19:49 +09:00
Leeingnyo 80e13abc4a Spawn scan job 2021-09-12 02:14:58 +09:00
Leeingnyo fb43abb950 Enhance the examine method 2021-09-12 02:14:58 +09:00
Leeingnyo eb3e37b950 Examine titles and recycle them 2021-09-12 02:14:58 +09:00
Leeingnyo 0a90e3b333 Ignore caches 2021-09-12 02:14:58 +09:00
Leeingnyo 4409ed8f45 Implement save_instance, load_instance 2021-09-12 02:14:58 +09:00
Leeingnyo 291a340cdd Add yaml serializer to Library, Title, Entry 2021-09-12 02:14:58 +09:00
Leeingnyo 0667f01471 Measure scan only 2021-09-12 02:14:58 +09:00
Alex Ling d5847bb105 Merge pull request #224 from hkalexling/fix/sanitize-download-filename
Stricter sanitization rules for download filenames
2021-09-09 08:47:41 +08:00
Alex Ling 3d295e961e Merge branch 'dev' into fix/sanitize-download-filename 2021-09-09 00:31:24 +00:00
Alex Ling e408398523 Merge pull request #227 from hkalexling/all-contributors/add-lincolnthedev
docs: add lincolnthedev as a contributor for infra
2021-09-09 08:18:22 +08:00
Alex Ling 566cebfcdd Remove all leading dots and spaces 2021-09-09 00:13:58 +00:00
Alex Ling a190ae3ed6 Merge pull request #226 from lincolnthedev/master
Better .dockerignore
2021-09-08 20:42:12 +08:00
allcontributors[bot] 17d7cefa12 docs: update .all-contributorsrc [skip ci] 2021-09-08 12:42:10 +00:00
allcontributors[bot] eaef0556fa docs: update README.md [skip ci] 2021-09-08 12:42:09 +00:00
i use arch btw 53226eab61 Forgot .github 2021-09-08 07:58:58 -04:00
Alex Ling ccf558eaa7 Improve filename sanitization rules 2021-09-08 10:03:05 +00:00
Alex Ling 0305433e46 Merge pull request #225 from hkalexling/feature/support-all-image-types
Support additional image formats (resolves #192)
2021-09-08 11:03:59 +08:00
i use arch btw d2cad6c496 Update .dockerignore 2021-09-07 21:12:51 -04:00
Alex Ling 371796cce9 Support additional image formats:
- APNG
- AVIF
- GIF
- SVG
2021-09-07 11:04:05 +00:00
Alex Ling d9adb49c27 Revert "Support all image types (resolves #192)"
This reverts commit f67e4e6cb9.
2021-09-07 10:45:59 +00:00
Alex Ling f67e4e6cb9 Support all image types (resolves #192) 2021-09-06 13:32:10 +00:00
Alex Ling 60a126024c Stricter sanitization rules for download filenames
Fixes #212
2021-09-06 13:01:05 +00:00
Alex Ling da8a485087 Merge pull request #222 from Leeingnyo/feature/enhance-loading-library
Improve loading pages (library, titles)
2021-09-06 16:49:19 +08:00
Alex Ling d809c21ee1 Document CacheEntry 2021-09-06 08:23:54 +00:00
Alex Ling ca1e221b10 Rename ids2entries -> ids_to_entries 2021-09-06 08:23:31 +00:00
Alex Ling 44d9c51ff9 Fix logging 2021-09-06 08:10:42 +00:00
Alex Ling 15a54f4f23 Add :sorted_entries suffix to gen_key 2021-09-06 08:10:13 +00:00
Alex Ling 51806f18db Rename config fields and improve logging 2021-09-06 03:35:46 +00:00
Alex Ling 79ef7bcd1c Remove unused variable 2021-09-06 03:01:21 +00:00
Leeingnyo 5cb85ea857 Set cached data when changed 2021-09-06 09:41:46 +09:00
Leeingnyo 9807db6ac0 Fix bug on entry_cover_url_cache 2021-09-06 02:32:13 +09:00
Leeingnyo 565a535d22 Remove caching verbosely, add cached_cover_url 2021-09-06 02:32:13 +09:00
Alex Ling c5b6a8b5b9 Improve instance_size for Tuple 2021-09-05 13:57:20 +00:00
Leeingnyo c75c71709f make check 2021-09-05 11:21:53 +09:00
Leeingnyo 11976b15f9 Make LRUCache togglable 2021-09-05 03:02:20 +09:00
Leeingnyo 847f516a65 Cache TitleInfo using LRUCache 2021-09-05 02:35:44 +09:00
Leeingnyo de410f42b8 Replace InfoCache to LRUCache 2021-09-05 02:08:11 +09:00
Leeingnyo 0fd7caef4b Rename 2021-09-05 00:02:05 +09:00
Leeingnyo 5e919d3e19 Make entry generic 2021-09-04 23:56:17 +09:00
Leeingnyo 9e90aa17b9 Move entry specific method 2021-09-04 14:37:05 +09:00
Leeingnyo 0a8fd993e5 Use bytesize and add comments 2021-09-03 11:11:28 +09:00
Leeingnyo 365f71cd1d Change kbs to mbs 2021-08-30 23:10:08 +09:00
Leeingnyo 601346b209 Set cache if enabled 2021-08-30 23:07:59 +09:00
Leeingnyo e988a8c121 Add config for sorted entries cache
optional
2021-08-30 22:59:23 +09:00
Leeingnyo bf81a4e48b Implement sorted entries cache
sorted_entries cached
2021-08-30 22:58:40 +09:00
Leeingnyo 4a09aee177 Implement library caching TitleInfo
* Cache sum of entry progress
* Cache cover_url
* Cache display_name
* Cache sort_opt
2021-08-30 11:31:45 +09:00
Leeingnyo 00c9cc1fcd Prevent saving a sort opt unnecessarily 2021-08-30 11:31:45 +09:00
Leeingnyo 51a47b5ddd Cache display_name 2021-08-30 11:31:45 +09:00
Leeingnyo 244f97a68e Cache entries' cover_url 2021-08-30 08:24:40 +09:00
Alex Ling 8d84a3c502 Merge pull request #221 from hkalexling/rc/0.23.0
v0.23.0
2021-08-28 18:44:50 +08:00
Alex Ling a26b4b3965 Add Discord badge 2021-08-28 10:27:43 +00:00
Alex Ling f2dd20cdec Bump version to 0.23.0 2021-08-22 08:20:24 +00:00
Alex Ling 64d6cd293c Remove MangaDex from README 2021-08-22 08:20:01 +00:00
Alex Ling 08dc0601e8 Remove page_margin from README 2021-08-22 08:18:28 +00:00
Alex Ling 9c983df7e9 Merge pull request #216 from Leeingnyo/feature/update-crystal-1.0
Update crystal version to 1.0
2021-08-22 15:59:20 +08:00
Alex Ling efc547f5b2 Fix "Executing query" spam in log 2021-08-22 07:34:29 +00:00
Alex Ling 995ca3b40f Update ARM Dockerfile 2021-08-20 08:26:11 +00:00
Alex Ling 864435d3f9 Upgrade dependencies for Crystal 1.0.0 2021-08-20 07:15:16 +00:00
Alex Ling 64c145cf80 Merge branch 'dev' of https://github.com/hkalexling/Mango into feature/update-crystal-1.0 2021-08-20 00:36:38 +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 400c3024fd Merge pull request #219 from Leeingnyo/feature/enhance-paged-mode
Enhance the paged mode reader
2021-08-20 08:13:39 +08:00
Leeingnyo a703175b3a Parenthesize to avoid a misbehavior 2021-08-19 15:03:01 +09:00
Leeingnyo 83b122ab75 Implement a controller to toggle flip animation 2021-08-18 23:46:45 +09:00
Leeingnyo 1e7d6ba5b1 Keep an image ratio at the paged mode, clamping the image in a screen 2021-08-18 23:46:45 +09:00
Leeingnyo 4d1ad8fb38 Prevent load images 2021-08-18 23:46:45 +09:00
Leeingnyo d544252e3e Add preload lookahead controller 2021-08-18 23:46:45 +09:00
Leeingnyo b02b28d3e3 Implement to preload images when viewer is paged mode 2021-08-18 23:07:38 +09:00
Leeingnyo d7efe1e553 Use yaml-static in Dockerfile 2021-08-18 21:23:28 +09:00
Alex Ling 1973564272 Revert "Subscription manager"
This reverts commit a612500b0f.
2021-08-18 12:09:59 +00:00
Alex Ling 29923f6dc7 Merge pull request #214 from Leeingnyo/feature/http-cache
HTTP cache for thumbnails, pages, dimensions
2021-08-18 07:37:21 +08: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 a21681a6d7 Update a container version of bulid workflow 2021-08-16 13:23:58 +09:00
Leeingnyo 208019a0b9 Update Docker image 2021-08-16 01:48:18 +09:00
Leeingnyo 54e2a54ecb Update cyrstal-lang, libraries 2021-08-16 01:48:18 +09: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 7f0c256fe6 Log login errors 2021-04-25 12:41:29 +00:00
Alex Ling 46e6e41bfe Fix reader buttons stacking on mobile 2021-03-29 00:41:33 +00:00
Alex Ling c9f55e7a8e Use yaml-static 2021-03-28 12:49:50 +00:00
Alex Ling 741c3a4e20 Update config example in README 2021-03-28 11:56:06 +00:00
Alex Ling f6da20321d Bump version to 0.22.0 2021-03-28 11:49:49 +00:00
Alex Ling 2764e955b2 Show success alert on plugin download page 2021-03-15 17:07:15 +00:00
Alex Ling 00c15014a1 Document subscription APIs 2021-03-15 07:12:30 +00:00
Alex Ling c6fdbfd9fd Better format ranges on subscription manager page 2021-03-15 07:12:10 +00:00
Alex Ling e03bf32358 Show success alerts on the download page 2021-03-14 17:36:43 +00:00
Alex Ling bbf1520c73 Make in_range? private 2021-03-14 17:36:26 +00:00
Alex Ling 8950c3a1ed Fix downloader stuck on external chapters 2021-03-14 16:27:08 +00:00
Alex Ling 17837d8a29 Add tooltips to download manager 2021-03-14 16:03:37 +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 9bb7144479 Fix warning 2021-03-12 15:28:39 +00:00
Alex Ling ee52c52f46 Fix new linter errors 2021-03-12 15:03:12 +00:00
Alex Ling daec2bdac6 Update ameba 2021-03-12 14:06:20 +00:00
Alex Ling e9a490676b Update the mangadex shard 2021-03-12 13:59:11 +00:00
Alex Ling 757f7c8214 Upgrade Crystal to 0.36.1 2021-03-12 13:41:24 +00:00
Alex Ling eed1a9717e Merge branch 'master' into dev 2021-03-10 16:48:51 +00:00
Alex Ling 8829d2e237 Merge pull request #173 from hkalexling/rc/0.21.0 2021-03-11 00:44:49 +08:00
Alex Ling eec6ec60bf Warn about old API url (#174) 2021-03-10 05:47:25 +00:00
Alex Ling 3a82effa40 Update config in README 2021-03-09 18:01:03 +00:00
Alex Ling 0b3e78bcb7 Merge branch 'rc/0.21.0' into dev 2021-03-09 16:45:26 +00:00
Alex Ling cb4e4437a6 Update MD API URL (closes #174) 2021-03-09 16:43:46 +00:00
Alex Ling 6a275286ea Merge branch 'rc/0.21.0' into dev 2021-03-07 14:14:46 +00:00
Alex Ling 2743868438 Remove outdated MD API link in warning 2021-03-06 17:03:48 +00:00
Alex Ling d3f26ecbc9 Move the page margin config to frontend 2021-03-06 15:04:44 +00:00
Alex Ling f62344806a Bump version to 0.21.0 2021-03-06 06:16:07 +00:00
Alex Ling b7b7e6f718 Fix typo [skip ci] 2021-03-05 17:04:23 +00:00
Alex Ling 05b4e77fa9 Entry selector on reader page (closes #168) 2021-03-05 17:02:45 +00:00
Alex Ling 8aab113aab Expiration date should be nil when theres no token 2021-03-05 11:01:00 +00:00
Alex Ling 371c8056e7 Wording 2021-03-05 10:57:23 +00:00
Alex Ling a9a2c9faa8 Finish search for MD 2021-03-05 04:58:56 +00:00
Alex Ling 011768ed1f Rename the dots-scripts component to dots 2021-03-05 04:58:56 +00:00
Alex Ling c36d2608e8 Make uk-card adaptive to dark/light mode 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 3c3549a489 Merge pull request #172 from hkalexling/hotfix/bind-localhost 2021-03-04 13:47:59 +08:00
Alex Ling 8160b0a18e Bump version to 0.20.2 2021-03-04 04:49:37 +00:00
Alex Ling a7eff772be Update example config in README 2021-03-04 04:48:51 +00:00
Alex Ling bf3900f9a2 Add host to config 2021-03-03 17:35:39 +00:00
Alex Ling 6fa575cf4f Bind localhost when a proxy auth header is set 2021-03-03 16:28:31 +00:00
Alex Ling 604c5d49a6 Merge pull request #166 from hkalexling/dev 2021-02-28 19:38:02 +08:00
Alex Ling 7449d19075 Bump version to 0.20.1 2021-02-26 10:35:34 +00:00
Alex Ling c5c9305a0b Merge pull request #162 from hkalexling/all-contributors/add-davidkna
docs: add davidkna as a contributor
2021-02-14 23:30:02 +08:00
allcontributors[bot] fdceab9060 docs: update .all-contributorsrc [skip ci] 2021-02-14 15:28:33 +00:00
allcontributors[bot] c18591c5cf docs: update README.md [skip ci] 2021-02-14 15:28:32 +00:00
Alex Ling bb5cb9b94c Merge pull request #161 from davidkna/docker-usr-local
Move binary in docker image to /usr/local
2021-02-14 23:26:38 +08:00
David Knaack fb499a5caf Move binary in docker image to /usr/local 2021-02-14 11:42:00 +01:00
Alex Ling 154d85e197 Use only woff and woff2 2021-02-11 08:40:24 +00:00
Alex Ling 933617503e Optimize the static files
- Use webfont version of FontAwesome
- Use CDN for UIKit JS files
2021-02-10 16:24:34 +00:00
Alex Ling 31c6893bbb Display book spines in original size (fixes #152) 2021-02-06 13:37:25 +00:00
Alex Ling 171125e8ac Merge pull request #159 from Leeingnyo/fix/favicon-500-error
Fix HTTP 500 Error when accessing the favicon
2021-02-06 16:34:56 +08:00
Leeingnyo d81334026b add MIME type of ico file
The server returns 500 error when requested '/favion.ico'
The handler worked fine, but send_file has failed with
- Missing MIME type for extension ".ico"
so I register mime type for .ico file
2021-02-06 16:58:49 +09:00
Alex Ling 2b3b2eb8ba Fill default configs before pre-processing 2021-02-03 05:27:41 +00:00
Alex Ling ffd5f4454b Merge branch 'feature/auth-proxy' into dev 2021-02-03 05:23:00 +00:00
Alex Ling cb25d7ba00 Merge branch 'feature/mangadex-api-upgrade' into dev 2021-02-03 05:22:35 +00:00
Alex Ling 3abd2924d0 Merge pull request #156 from hkalexling/dev
v0.20.0
2021-02-02 12:16:05 +08:00
Alex Ling 21233df754 Fix group filter on the download page 2021-02-01 11:37:00 +00:00
Alex Ling c61eb7554e Update the mangadex shard 2021-02-01 11:35:16 +00:00
Alex Ling edd9a2e093 Add MutationObserver polyfill 2021-01-31 15:32:38 +00:00
Alex Ling 1f50785e8f Rewrite MangaDex download page with Alpine 2021-01-31 12:48:37 +00:00
Alex Ling 70d418d1a1 Upgrade to MangaDex API v2 2021-01-30 17:08:04 +00:00
Alex Ling 45e20c94f9 Merge branch 'dev' into feature/auth-proxy 2021-01-30 10:55:27 +00:00
Alex Ling ca8e9a164e Fix the /api page error when using base URL 2021-01-30 10:54:21 +00:00
Alex Ling 4da263c594 Rewrite auth_handler
Make sure the OPDS pages are accessible without login when login is
disabled
2021-01-30 10:54:03 +00:00
Alex Ling d67a24809b Allow proxy authentication (#141) 2021-01-30 07:43:02 +00:00
Alex Ling cd268af9dd Fix tags.css base URL 2021-01-30 07:39:54 +00:00
Alex Ling 135fa9fde6 Update sample config in README [skip ci] 2021-01-29 14:42:58 +00:00
Alex Ling 77333aaafd Bump version to 0.20.0 2021-01-29 10:27:31 +00:00
Alex Ling 1fad530331 Fix admin page theme setting syncing (#155) 2021-01-29 08:40:50 +00:00
Alex Ling a1bd87098c Escape single quotes in migration 8 2021-01-28 12:41:51 +00:00
Alex Ling a389fa7178 Allow delete all missing items (#151) 2021-01-28 09:55:41 +00:00
Alex Ling b5db508005 Fix relative path mismatch (#151) 2021-01-28 04:04:42 +00:00
Alex Ling 30178c42ef Merge branch 'master' into dev 2021-01-27 09:47:49 +00:00
Alex Ling b712db9e8f Merge pull request #154 from hkalexling/hkalexling-patch-1
Update autoapproval.yml
2021-01-27 16:28:05 +08:00
Alex Ling dd9c75d1c9 Update autoapproval.yml 2021-01-27 16:17:33 +08:00
Alex Ling 2d150c3bf2 Create autoapproval.yml 2021-01-27 16:14:47 +08:00
Alex Ling 40f74ea375 Merge pull request #153 from hkalexling/hotfix/reader-bg
Fix incorrect background color on reader page
2021-01-27 15:19:04 +08:00
Alex Ling adf260bc35 Bump version to v0.19.1 2021-01-27 06:33:45 +00:00
Alex Ling 432d6f0cd5 Run CI for hotfix/* branches 2021-01-27 06:33:45 +00:00
Alex Ling 3de314ae9a Fix incorrect background color on reader page 2021-01-27 06:33:45 +00:00
Alex Ling c1c8cca877 Use Ameba to enforce max line width
Didn't know Ameba supports this!
2021-01-27 04:18:47 +00:00
Alex Ling 07965b98b7 Force File::Info#inode to return UInt64 2021-01-27 03:42:51 +00:00
Alex Ling 5779d225f6 Merge branch 'dev' of https://github.com/hkalexling/Mango into dev 2021-01-27 03:23:08 +00:00
Alex Ling bf18a14016 Use inode number 2021-01-27 03:19:58 +00:00
Alex Ling 605dc61777 Merge pull request #150 from Leeingnyo/fix/allow-uppercase-extensions
Make file extension check case-insensitive
2021-01-26 19:16:12 +08:00
Alex Ling def64d9f98 Rename interesting files to supported files 2021-01-26 10:55:50 +00:00
Leeingnyo 0ba2409c9a add tests about is_interesting_file 2021-01-26 04:18:09 +09:00
Leeingnyo 2b0cf41336 add and apply util method is_interesting_file 2021-01-26 04:17:32 +09:00
Leeingnyo c51cb28df2 make filename extension downcase for comparing 2021-01-25 23:13:35 +09:00
Alex Ling 2b079c652d Fix duplicating options on the download page 2021-01-20 08:02:07 +00:00
Alex Ling 68050a9025 Fix incorrect dropdown color in dark mode 2021-01-20 05:20:03 +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 781de97c68 Make thumbnail generation slower
This reduces the IO stress
2021-01-19 15:06:27 +00:00
Alex Ling c7be0e0e7c Separate insert_id into titles and entries 2021-01-19 09:08:31 +00:00
Alex Ling 667d390be4 Signature matching 2021-01-19 08:43:45 +00:00
Alex Ling 7f76322377 Merge branch 'dev' into feature/signature 2021-01-18 06:54:38 +00:00
Alex Ling 377c4c6554 Stop the process when the server fails to start 2021-01-18 06:44:10 +00:00
Alex Ling 952aa0c6ca Fix linter 2021-01-17 15:59:42 +00:00
Alex Ling bd81c2e005 Fix incorrect migration SQL 2021-01-17 15:58:13 +00:00
Alex Ling b471ed2fa0 Upgrade MG 2021-01-17 15:49:10 +00:00
Alex Ling 7507ab64ad Bump version to v0.19.0 2021-01-17 08:34:35 +00:00
Alex Ling e4587d36bc Fix linter 2021-01-17 08:25:01 +00:00
Alex Ling 7d6d3640ad Disable the tagging UI for non-admin users 2021-01-17 08:16:40 +00:00
Alex Ling 3071d44e32 Fix admin API bypassing 2021-01-17 08:10:43 +00:00
Alex Ling 7a09c9006a Set up foreign keys 2021-01-17 04:47:06 +00:00
Alex Ling 959560c7a7 Add titles and move insert_ids to class variable
This fixes the bug where the new ids are not saved
2021-01-17 04:45:55 +00:00
Alex Ling ff679b30d8 Capitalize the UNIQUE keyword 2021-01-17 04:41:05 +00:00
Alex Ling f7a360c2d8 Proper DB migration 2021-01-16 17:11:57 +00:00
Alex Ling 1065b430e3 Rewrite tagging UI with suggestions (#146) 2021-01-14 13:08:50 +00:00
Alex Ling 5abf7032a5 Use less 2021-01-14 13:04:57 +00:00
Alex Ling 18e8e88c66 Initial work on title signature 2021-01-14 08:23:39 +00:00
Alex Ling 44336c546a Bump version to v0.18.3 2021-01-12 10:14:12 +00:00
Alex Ling a4c6e6611c Try WSS first, and fallback to WS (#144) 2021-01-12 10:13:06 +00:00
Alex Ling 0b457a2797 Merge branch 'master' of https://github.com/hkalexling/Mango 2021-01-11 15:37:34 +00:00
Alex Ling 653751bede Merge branch 'dev' 2021-01-11 15:37:06 +00:00
Alex Ling a02bf4a81e Bump version to v0.18.2 2021-01-11 15:22:51 +00:00
Alex Ling 5271d12f4c Respect base URL in WS connections 2021-01-11 15:05:58 +00:00
Alex Ling c2e2f0b9b3 Merge pull request #143 from hkalexling/all-contributors/add-h45h74x
docs: add h45h74x as a contributor
2021-01-11 19:32:47 +08:00
allcontributors[bot] 72d319902e docs: update .all-contributorsrc [skip ci] 2021-01-11 11:31:21 +00:00
allcontributors[bot] bbd0fd68cb docs: update README.md [skip ci] 2021-01-11 11:31:20 +00:00
Alex Ling 0fb1e1598d Remove sourcerer.io HoF and use all-contributors
[skip ci]
RIP sourcerer.io https://github.com/sourcerer-io/sourcerer-app/issues/632
2021-01-11 11:28:30 +00:00
Alex Ling 4645582f5d Bump version to v0.18.1 2021-01-11 05:29:28 +00:00
Alex Ling ac9c51dd33 Remove non-existing #root from css selectors (#142) 2021-01-11 05:28:44 +00:00
Alex Ling f51d27860a Validate input index before flipping page 2021-01-09 15:49:34 +00:00
Alex Ling 4a7439a1ea Merge branch 'dev' of https://github.com/hkalexling/Mango into dev 2021-01-09 06:40:49 +00:00
Alex Ling 00e19399d7 Check login is disabled before accessing default username 2021-01-09 06:35:26 +00:00
Alex Ling cb723acef7 Update config in README 2021-01-09 06:35:11 +00:00
Alex Ling 794bed12bd Merge pull request #139 from h45h74x/feature/plugin-helper-function-post
Added post helper function
2021-01-09 14:30:52 +08:00
Simon bae8220e75 Added post helper function 2021-01-08 21:17:58 +01:00
Alex Ling 0cc5e1626b Fix broken buttons on download manager page 2021-01-08 11:38:51 +00:00
Alex Ling da0ca665a6 Mark entry as read when exiting reader at the end 2021-01-08 11:38:25 +00:00
Alex Ling a91cf21aa9 Bump version to v0.18.0 2021-01-07 16:27:22 +00:00
Alex Ling 39b2636711 Sort tags in title 2021-01-07 16:21:23 +00:00
Alex Ling 2618d8412b Update the API doc to include margin in dimensions 2021-01-07 16:06:43 +00:00
Alex Ling 445ebdf357 Merge pull request #136 from h45h74x/feature/adjustable-page-gaps
Feature/adjustable page gaps
2021-01-07 01:11:34 +08: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
Simon 0f39535097 Added new entry in example config 2021-01-06 15:28:09 +01:00
Simon e086bec9da Added adjustable page gaps via config 2021-01-06 15:27:48 +01:00
Alex Ling dcdcf29114 Sort tags on the tags page 2021-01-05 07:34:31 +00:00
Alex Ling c5c73ddff3 Rewrite download-manager.js 2021-01-01 09:19:16 +00:00
Alex Ling f18ee4284f Rewrite admin.js with Alpine component 2021-01-01 09:04:53 +00:00
Alex Ling 0fbc11386e Fix broken "Exit Reader" button 2021-01-01 09:04:18 +00:00
Alex Ling a68282b4bf Rewrite reader.js with a reusable alpine function 2020-12-31 16:21:00 +00:00
Alex Ling e64908ad06 Remove the outdated styleModal call 2020-12-31 14:08:14 +00:00
Alex Ling af0913df64 Dynamic HTML title 2020-12-31 14:08:14 +00:00
Alex Ling 5685dd1cc5 Use tallboy to draw CLI table 2020-12-30 16:44:23 +00:00
Alex Ling af2fd2a66a Remove the Context and Router classes 2020-12-30 15:58:51 +00:00
Alex Ling db2a51a26b Clean up library classes 2020-12-30 15:23:38 +00:00
Alex Ling cf930418cb Update rename spec 2020-12-30 12:53:48 +00:00
Alex Ling 911848ad11 Merge branch 'feature/tagging' into dev 2020-12-30 11:15:44 +00:00
Alex Ling 93f745aecb Only admins can add or delete tags 2020-12-30 11:13:43 +00:00
Alex Ling 981a1f0226 Add /tags to nav bar 2020-12-30 11:13:43 +00:00
Alex Ling 8188456788 Finish tagging 2020-12-30 11:13:43 +00:00
Alex Ling 1eace2c64c Add the /tags/:tag page 2020-12-30 11:13:43 +00:00
Alex Ling c6ee5409f8 Trim input tag 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 0f1d1099f6 Add unique constraint to tags and error handling 2020-12-30 11:13:43 +00:00
Alex Ling 40a24f4247 Add tags to the web UI 2020-12-30 11:13:43 +00:00
Alex Ling a6862e86d4 Update alpine 2020-12-30 11:13:43 +00:00
Alex Ling bfc1b697bd Add tag related methods for Title 2020-12-30 11:13:43 +00:00
Alex Ling 276f62cb76 Update DB for tags 2020-12-30 11:13:43 +00:00
Alex Ling 45a81ad5f6 Display the entries and sub-titles count 2020-12-30 11:13:43 +00:00
Alex Ling ce88acb9e5 Simplify the request_path_startswith helper method 2020-12-30 11:13:43 +00:00
Alex Ling bd34b803f1 Tokens take precedence over default user setting 2020-12-30 11:13:43 +00:00
Alex Ling 2559f65f35 Display the entries and sub-titles count 2020-12-29 04:33:55 +00:00
Alex Ling 93c21ea659 Simplify the request_path_startswith helper method 2020-12-28 16:29:29 +00:00
Alex Ling 85ad38c321 Allow disable login 2020-12-28 16:13:51 +00:00
Alex Ling b6a204f5bd Escape illegal filename characters in Windows 2020-12-28 15:20:09 +00:00
Alex Ling f7b8e2d852 Bump version to v0.17.1 2020-12-27 09:46:14 +00:00
Alex Ling 946017c8bd Fix function redeclaration 2020-12-27 09:42:06 +00:00
Alex Ling ec5256dabd Improve batch mark UX (#97) 2020-12-27 09:42:06 +00:00
Alex Ling 4e707076a1 By default use the system theme setting (#111) 2020-12-27 09:42:06 +00:00
Alex Ling 66a3cc268b Merge branch 'master' into dev 2020-12-26 09:34:23 +00:00
Alex Ling 96949905b9 Cache entry display names
This improves the title page load time (#116)
2020-12-26 09:32:03 +00:00
Alex Ling 30c0199039 Merge branch 'dev' 2020-12-26 07:33:04 +00:00
Alex Ling 7a7cb78f82 Check bool environment variables are "1" or "true" 2020-12-26 07:11:10 +00:00
Alex Ling 8931ba8c43 Bump version to 0.17.0 2020-12-26 04:02:58 +00:00
Alex Ling d50981c151 Fix typos 2020-12-26 04:01:57 +00:00
Alex Ling df4deb1415 Allow proxy with authentication 2020-12-22 02:32:07 +00:00
Alex Ling aa5e999ed4 Allow users to disable SSL verification 2020-12-21 06:04:26 +00:00
Alex Ling 84d4b0c529 Switch to redoc and update API description 2020-12-21 06:04:26 +00:00
Alex Ling d3e5691478 Add overall description of the API 2020-12-14 15:20:50 +00:00
Alex Ling 1000b02ae0 Exclude /src/routes/api.cr from line width check 2020-12-14 14:59:18 +00:00
Alex Ling 1f795889a9 Move the entry download route to API 2020-12-14 13:03:23 +00:00
Alex Ling d33b45233a Use the correct verbs in the API 2020-12-14 12:49:56 +00:00
Alex Ling 4f6df5b9a3 Rename bulk-progress to bulk_progress 2020-12-14 11:54:25 +00:00
Alex Ling 341b586cb3 Add API documentation 2020-12-14 11:09:38 +00:00
Alex Ling 9dcc9665ce Cancel a download job when deleted from web UI 2020-12-12 16:15:16 +00:00
Alex Ling 1cd90926df Bind boolean attributes 2020-12-11 10:22:08 +00:00
Alex Ling ac1ff61e6d Move theme.js to common.js
This reduces the number of JS files to include when loading
2020-12-11 10:11:39 +00:00
Alex Ling 6ea41f79e9 Simplify the showControl calls on reader page 2020-12-11 09:47:32 +00:00
Alex Ling dad02a2a30 Move getProp and setProp to common.js 2020-12-11 09:46:56 +00:00
Alex Ling 280490fb36 Rewrite the download manager page 2020-12-11 07:46:47 +00:00
Alex Ling 455315a362 Upgrade to Crystal 0.35.1 2020-12-11 07:46:47 +00:00
Alex Ling df51406638 Use $GITHUB_ENV [skip ci] 2020-11-24 13:43:54 +08:00
Alex Ling 531d42ef18 [skip ci] enable set-env
https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/
2020-11-24 13:38:15 +08:00
Alex Ling 2645e8cd05 Merge branch 'dev' 2020-11-24 05:31:06 +00:00
Alex Ling b2dc44a919 Reverse J and K for page navigation 2020-11-24 05:09:06 +00:00
Alex Ling c8db397a3b Bump version to v0.16.0 2020-11-24 04:30:47 +00:00
Alex Ling 6384d4b77a Log "DB optimization finished" in the info level 2020-11-24 04:05:07 +00:00
Alex Ling 1039732d87 Log the full file path in error messages (#123) 2020-11-24 04:03:53 +00:00
Alex Ling 011123f690 Allow keyboard navigation on reader page (#124) 2020-11-24 03:57:38 +00:00
Alex Ling e602a35b0c Merge branch 'dev' 2020-11-02 16:32:08 +00:00
Alex Ling 7792d3426e Bump version to v0.15.1 2020-11-01 09:22:05 +00:00
Alex Ling b59c8f85ad Fix scroller issues in continuous reader (#121) 2020-10-31 04:29:46 +00:00
Alex Ling 18834ac28e Set thumbnail size and mimetype 2020-10-29 04:06:44 +00:00
Alex Ling bf68e32ac8 Merge branch 'dev' 2020-10-25 07:57:26 +00:00
Alex Ling 54eb041fe4 Update README 2020-10-25 07:29:19 +00:00
Alex Ling 57d8c100f9 Bump version to v0.15.0 2020-10-25 07:22:38 +00:00
Alex Ling 56d973b99d Get progress when page loads and when post 2020-10-25 07:21:08 +00:00
Alex Ling 670e5cdf6a Better logging when optimizing DB 2020-10-25 07:09:37 +00:00
Alex Ling 1b35392f9c Remove unnecessary properties 2020-10-25 07:09:21 +00:00
Alex Ling c4e1ffe023 Trigger thumbnail generation from the admin page 2020-10-25 05:41:27 +00:00
Alex Ling 44f4959477 Finish thumbnail generation and DB optimization
(#93)
2020-10-24 04:13:11 +00:00
Alex Ling 0582b57d60 Add config options for optimization tasks 2020-10-24 03:50:26 +00:00
Alex Ling 83d96fd2a1 Add the route to serve thumbnails 2020-10-23 12:30:47 +00:00
Alex Ling 8ac89c420c Add helper methods for thumbnail generation 2020-10-23 12:30:29 +00:00
Alex Ling 968c2f4ad5 Update DB to save thumbnails 2020-10-23 12:29:20 +00:00
Alex Ling ad940f30d5 Update image_size.cr to 0.4.0 for better err msg 2020-10-23 12:21:05 +00:00
Alex Ling 308ad4e063 Only truncate visible titles to improve load time 2020-10-20 14:36:56 +00:00
Alex Ling 4d709b7eb5 Update default config in README 2020-10-18 12:53:43 +00:00
Alex Ling 5760ad924e Bump version to v0.14.0 2020-10-18 12:22:26 +00:00
Alex Ling fff171c8c9 Bump version to v0.13.0 2020-10-18 11:39:24 +00:00
Alex Ling 44ff566a1d Merge branch 'feature/paged-reader' into dev 2020-10-15 11:52:15 +00:00
Alex Ling 853f422964 Configurable read timeout (#108) 2020-10-15 11:51:04 +00:00
Alex Ling 3bb0917374 Allow /manga/<id> URL for MangaDex 2020-10-15 11:38:22 +00:00
Alex Ling a86f0d0f34 Add paged reading mode 2020-10-09 10:09:42 +00:00
Alex Ling 16a9d7fc2e Merge pull request #110 from XavierSchiller/master
[arm64] Fix Wrong libgc.so location when building Image
2020-09-27 20:07:44 +08:00
Xavier ee2b4abc85 Fix Wrong libgc.so location when building Image.
The Repo Maintainer was using the location of libgc.so from the armhf package, however, according to:
https://debian.pkgs.org/9/debian-main-arm64/libgc-dev_7.4.2-8_arm64.deb.html and
https://packages.ubuntu.com/focal/arm64/libgc-dev/filelist
it exists under /usr/lib/aarch64-linux-gnu/
2020-09-27 14:35:43 +05:30
Alex Ling a6c2799521 Bump version to v0.12.3 2020-09-22 08:55:29 +00:00
Alex Ling 2370e4d2c6 Add browserstack as a sponsor 2020-09-22 08:54:20 +00:00
Alex Ling 32b0384ea0 Clearer gulpfile 2020-09-22 08:46:53 +00:00
Alex Ling 50d4ffdb7b Use babel and polyfill.io 2020-09-22 07:40:47 +00:00
Alex Ling 96463641f9 Update progress on last page (#105) 2020-09-21 04:35:23 +00:00
Alex Ling ddbba5d596 Bump version to v0.12.2 2020-09-17 16:08:52 +00:00
Alex Ling 2a04f4531e Bound the page number in the reader route
fixes #104
2020-09-17 16:06:01 +00:00
Alex Ling a5b6fb781f Bump version to v0.12.1 2020-09-17 13:32:00 +00:00
Alex Ling 8dfdab9d73 Respect the base URL in direct download link (#103) 2020-09-17 13:29:52 +00:00
Alex Ling 3a95270dfb Don't copy unused UIKit files 2020-09-17 13:25:35 +00:00
Alex Ling 2960ca54df Move fontawesome to NPM 2020-09-17 13:20:24 +00:00
Alex Ling f5fe3c6b1c Use image_size.cr v0.2.0 2020-09-16 15:40:01 +00:00
Alex Ling a612cc15fb Bump version to v0.12.0 2020-09-12 14:35:56 +00:00
Alex Ling c9c0818069 Add inline documentation to reader.js 2020-09-12 14:32:29 +00:00
Alex Ling 2f8efc382f Clean up 2020-09-12 14:05:15 +00:00
Alex Ling a0fb1880bd Update Dockerfile [skip ci] 2020-09-12 13:59:32 +00:00
Alex Ling a408f14425 Add .dockerignore 2020-09-12 13:59:14 +00:00
Alex Ling 243b6c8927 Typo fix [skip ci] 2020-09-12 07:13:15 +00:00
Alex Ling ff3a44d017 Update ARM dockerfiles to use image_size.cr 2020-09-12 07:03:30 +00:00
Alex Ling 67ef1f7112 DRY when listing archive entries 2020-09-12 06:58:03 +00:00
Alex Ling 5d7b8a1ef9 Skip error entries in OPDS feed 2020-09-12 06:57:42 +00:00
Alex Ling a68f3eea95 Allow hyphens in username (#99) 2020-09-12 05:29:25 +00:00
Alex Ling 220fc42bf2 Add system dependencies for image_size.cr 2020-09-11 17:02:45 +00:00
Alex Ling a45e6ea3da Rewrite web reader 2020-09-11 17:00:42 +00:00
Alex Ling 88394d4636 Expose page ratios through API 2020-09-11 17:00:28 +00:00
Alex Ling ef1ab940f5 Fix GitHub tags of dependencies in the Dockerfiles
[skip ci]
2020-08-16 16:45:57 +00:00
Alex Ling 97a1c408d8 Bump version to v0.11.0 2020-08-16 12:44:02 +00:00
Alex Ling abbf77df13 Merge branch 'master' into dev 2020-08-10 14:32:53 +00:00
Alex Ling 3b4021f680 Workflow retry hack
I got random "Invalid memory access" when running `crystal build`.
This is probably a compiler or LLVM bug.
We use this temporary hack to retry until they fix it.
2020-08-10 13:14:05 +00:00
Alex Ling 68b1923cb6 Clear title ID at the end of scans
This minimizes the chance of getting an unexpected empty home page
2020-08-10 11:45:50 +00:00
Alex Ling 3cdd4b29a5 Add back to top button to all pages (#95) 2020-08-10 11:42:23 +00:00
Alex Ling af84c0f6de Fix typo 2020-08-08 17:04:42 +08:00
Alex Ling 85a65f84d0 Remove unnecessary "require" statements 2020-08-06 18:10:13 +00:00
Alex Ling 5027a911cd Respect the *_PROXY environment variables (#94) 2020-08-06 17:01:53 +00:00
Alex Ling ac63bf7599 Add sponsors [skip ci] 2020-08-06 12:49:43 +08:00
Alex Ling 30b0e0b8fb Pin down mythml and duktape versions in Dockerfile
[skip ci]
2020-08-05 12:00:49 +00:00
Alex Ling ddda058d8d Fix spec 2020-08-05 09:59:52 +00:00
Alex Ling 46db25e8e0 Fix wildcard in workflow 2020-08-05 09:50:46 +00:00
Alex Ling c07f421322 Fix CLI tool not exiting 2020-08-05 09:48:31 +00:00
Alex Ling 99a77966ad Add arm64v8 to Makefile and rename object files 2020-08-05 09:48:03 +00:00
Alex Ling d00b917575 Build the object file in Action 2020-08-04 17:24:36 +00:00
Alex Ling 4fd8334c37 Name the object file 2020-08-04 17:24:13 +00:00
Alex Ling 3aa4630558 Use Crystal 0.34.0 2020-08-04 17:23:19 +00:00
Alex Ling cde5af7066 Remove interactive prompt for easier use in docker 2020-08-04 12:57:40 +00:00
Alex Ling eb528e1726 Add the arm32v7 target to Makefile 2020-08-04 11:50:07 +00:00
Alex Ling 5e01cc38fe Fix downloaders 2020-08-04 11:36:36 +00:00
Alex Ling 9a787ccbc3 Formatting 2020-08-04 11:36:24 +00:00
Alex Ling 8a83c0df4e ARM support (#25, #78) 2020-08-04 11:00:33 +00:00
Alex Ling 87dea01917 Add ASCII banner, because we can :) 2020-08-02 17:52:52 +00:00
Alex Ling 586ee4f0ba Bump version to v0.10.0 2020-08-02 12:33:31 +00:00
Alex Ling 53f3387e1a Rephrase the plugin part in README 2020-08-02 12:32:14 +00:00
Alex Ling be5d1918aa Add offset to the sticky bar 2020-08-02 12:29:49 +00:00
Alex Ling df2cc0ffa9 Display nested titles and entries separately 2020-08-02 10:43:46 +00:00
Alex Ling b8cfc3a201 Remove unnecessary ids from HTML 2020-08-02 10:43:24 +00:00
Alex Ling 8dc60ac2ea Add select all button to the selection bar 2020-08-02 09:28:31 +00:00
Alex Ling 1719335d02 Add "Start Reading" section to home page (#92) 2020-08-01 15:17:18 +00:00
Alex Ling 0cd46abc66 Finish batch marking (#75) 2020-07-30 11:39:23 +00:00
Alex Ling e4fd7c58ee Add multi-select for cards in web interface 2020-07-30 08:32:00 +00:00
Alex Ling d4abee52db Fix .uk-card-media-top width 2020-07-30 08:29:41 +00:00
Alex Ling d29c94e898 Use Alpine.js 2020-07-30 08:28:54 +00:00
Alex Ling 1c19a91ee2 Merge branch 'master' of https://github.com/hkalexling/Mango 2020-07-29 12:19:24 +00:00
Alex Ling 7eb5c253e9 Bump version to v0.9.0 2020-07-29 10:07:36 +00:00
Alex Ling 22a660aabf Fix 500 for empty plugins 2020-07-29 10:07:10 +00:00
Alex Ling 6e9466c9d2 Rename plugin function search to listChapters 2020-07-29 07:15:55 +00:00
Alex Ling ab34fb260c Fix memory leak through archive.cr 2020-07-28 07:51:55 +00:00
Alex Ling 0e9a659828 Instantiate Plugin objects with IDs 2020-07-26 15:34:54 +00:00
Alex Ling 361d37d742 Decode plugin title before using it 2020-07-26 12:56:46 +00:00
Alex Ling c6adb4ee18 Fix plugin hot load 2020-07-26 12:56:29 +00:00
Alex Ling 8349fb68a4 Save last used plugin in local storage 2020-07-26 12:42:28 +00:00
Alex Ling 0e1e4de528 Add image placeholder to the reader page 2020-07-26 12:15:22 +00:00
Alex Ling b47788a85a Add download sub-nav to the mobile nav 2020-07-26 06:59:09 +00:00
Alex Ling f7004549b8 Remove MangaDex module tests 2020-07-26 06:48:49 +00:00
Alex Ling 8d99400c5f Return strings as header values 2020-07-25 16:19:39 +00:00
Alex Ling ce59acae7a Fix variable shadowing 2020-07-25 07:25:38 +00:00
Alex Ling 37c5911a23 Make plugin download table sortable 2020-07-25 07:20:22 +00:00
Alex Ling 8694b4beaf Show plugin info on the plugin download page 2020-07-24 15:02:05 +00:00
Alex Ling 3b315ad880 Pass status code and headers to plugin scripts 2020-07-24 13:56:54 +00:00
Alex Ling 33107670ce Use index.js instead of main.js 2020-07-24 09:30:10 +00:00
Alex Ling f116e2f1d0 Rename the state helper function to storage 2020-07-24 09:27:54 +00:00
Alex Ling ebf6221876 Rename Job#plugin_name to plugin_id 2020-07-24 07:50:50 +00:00
Alex Ling 2a910335af Easier to use mango.css helper method 2020-07-24 05:11:13 +00:00
Alex Ling 9ea26474b4 Fix formatting 2020-07-23 17:15:40 +00:00
Alex Ling df8a6ee6da Finish plugin functionalities 2020-07-23 17:15:40 +00:00
Alex Ling 70ea1711ce Handle selectable table dark mode more elegantly 2020-07-22 17:31:38 +00:00
Alex Ling 2773c1e67f Plugin download page WIP 2020-07-22 13:52:28 +00:00
Alex Ling dcfd1c8765 Expose @filename from the Plugin class 2020-07-22 13:51:45 +00:00
Alex Ling 10b6047df8 Process filenames before downloading 2020-07-22 13:51:03 +00:00
Alex Ling 8de735a2ca Add download dropdown in nav
and remove download manager from admin page
2020-07-22 12:12:29 +00:00
Alex Ling 6c2350c9c7 Fix modal and dropdown colors in dark mode
and get rid of the hacky `styleModal` function
2020-07-22 12:06:29 +00:00
Alex Ling a994c43857 Plugin downloader WIP 2020-07-22 09:09:02 +00:00
Alex Ling 7e4532fb14 Instantiate Plugins by plugin names 2020-07-22 09:09:02 +00:00
Alex Ling d184d6fba5 Expand path by home 2020-07-21 17:20:40 +00:00
Alex Ling 92f5a90629 Move pop to the Downloader classes 2020-07-21 17:20:03 +00:00
Alex Ling 2a36804e8d Validate returned JSON 2020-07-21 16:11:56 +00:00
Alex Ling 87b6e79952 Use macro to DRY the self.default method 2020-07-21 12:33:50 +00:00
Alex Ling b75a838e14 Move common code to Queue::Downloader 2020-07-21 12:32:48 +00:00
Alex Ling ae7c72ab85 Decouple Queue and related classes from MangaDex 2020-07-21 11:47:14 +00:00
Alex Ling 5cee68d76c Cleanup 2020-07-21 10:44:12 +00:00
Alex Ling f444496915 Check plugins dir exists before listing plugins 2020-07-21 10:08:30 +00:00
Alex Ling a812e3ed46 Add duktape.cr and the Plugin class 2020-07-21 09:30:45 +00:00
Alex Ling 1be089b53e Add open collective 2020-07-19 23:37:03 +08:00
Alex Ling a7f4e161de Add make setup 2020-07-19 13:53:50 +00:00
Alex Ling ba31eb0071 Use UIKit JS files from node_modules/ 2020-07-19 13:50:46 +00:00
Alex Ling 192474c950 Fix 404 icons 2020-07-19 13:29:05 +00:00
Alex Ling 87b72fbd30 Support 'System' theme setting (#91) 2020-07-19 10:58:23 +00:00
Alex Ling 6acfa02314 Remove unneeded property title_id from Entry 2020-07-18 13:34:55 +00:00
Alex Ling bdba7bdd13 Show unreadable archives in web interface (#49) 2020-07-18 13:29:03 +00:00
Alex Ling 1b244c68b8 Bump version to v0.8.0 2020-07-17 08:18:24 +00:00
Alex Ling 281f626e8c More tie-breaking 2020-07-16 13:17:58 +00:00
Alex Ling 5be4f51d7e Name partially downloaded cbz files .part (#90) 2020-07-16 13:16:36 +00:00
Alex Ling cd7782ba1e Respect custom sorting method in continue reading
(#86)
2020-07-15 17:06:54 +00:00
Alex Ling 6d97bc083c Break library.cr into multiple files 2020-07-15 16:12:36 +00:00
Alex Ling ff4b1be9ae Template cleanup 2020-07-15 16:04:03 +00:00
Alex Ling ba16c3db2f Add SortOptions.from_info_json 2020-07-15 15:33:26 +00:00
Alex Ling 69b06a8352 Use auto sort to break ties when sorting 2020-07-15 15:13:38 +00:00
Alex Ling 687788767f Use auto when an unknown sorting method is passed 2020-07-15 10:47:27 +00:00
Alex Ling 94a1e63963 Handle library/title sorting on backend (#86) 2020-07-15 10:34:53 +00:00
Alex Ling 360913ee78 Add chapter sort 2020-07-12 08:59:40 +00:00
Alex Ling ea366f263a Move require "big" to relevant util file 2020-07-12 08:53:46 +00:00
Alex Ling 0d11cb59e9 Break util.cr into multiple files 2020-07-12 08:53:04 +00:00
Alex Ling 2208f90d8e Properly close archive files after validating them 2020-07-11 15:51:57 +00:00
Alex Ling 07100121ef Bump version to v0.7.3 2020-07-05 14:36:12 +00:00
Alex Ling a0e550569e Use archive.cr v0.3.0 for 32bit support 2020-07-05 14:34:19 +00:00
Alex Ling bbbe2e0588 Move uikit.less 2020-07-04 11:17:27 +00:00
Alex Ling 9d31b24e8c Fix nested a tags 2020-07-04 11:10:32 +00:00
Alex Ling 38ba324fa9 Save the sorting option in local storage (#76) 2020-07-04 09:47:51 +00:00
Alex Ling c00016fa19 Remove link to title page from the entry modal 2020-07-04 08:56:58 +00:00
Alex Ling 4d5a305d1b Reduce card font size and link to the title pages
(#84)
2020-07-04 08:56:58 +00:00
Alex Ling f9ca52ee2f Keep progress label color in dark mode (#85) 2020-07-03 06:53:39 +00:00
Alex Ling f6c393545c Only show started entries in "continue reading"
(#83)
2020-07-03 06:52:50 +00:00
Alex Ling 466aee62fe Bump version to v0.7.2 2020-07-01 14:15:29 +00:00
Alex Ling eab0800376 Improve scan performance (#79) 2020-07-01 14:01:26 +00:00
Alex Ling 1725f42698 Use HTML.escape to escape XML 2020-07-01 13:27:30 +00:00
Alex Ling f5cdf8b7b6 Explicitly register supported mime types (#82) 2020-07-01 13:21:14 +00:00
Alex Ling fe082e7537 Escape illegal characters in XML (#82) 2020-06-30 16:46:47 +00:00
Alex Ling c87b96dd0b Improve performance for library and title pages 2020-06-24 16:29:34 +00:00
Alex Ling 9d76ca8c24 Improve home page loading time (#81) 2020-06-24 15:52:26 +00:00
Alex Ling 5f21653e07 Bump version to v0.7.1 2020-06-20 16:25:14 +00:00
Alex Ling 0035cd9177 Revert "Upgrade Crystal to 0.35.1"
Kemal is having some issues in 0.35.0: https://github.com/kemalcr/kemal/issues/575
2020-06-20 16:24:01 +00:00
Alex Ling 899b221842 Merge branch 'dev' 2020-06-20 13:50:37 +00:00
Alex Ling a317086f81 Bump version to v0.7.0 2020-06-20 13:39:14 +00:00
Alex Ling b83313b231 Set recently added group range to 1 day 2020-06-20 13:12:13 +00:00
Alex Ling 62af879bfa Upgrade Crystal to 0.35.1 2020-06-20 13:12:13 +00:00
Alex Ling 96f98f6c78 Rename and format ECR files 2020-06-19 11:34:03 +00:00
Alex Ling 841d5051cb Copy robots.txt to dist/ in gulpfile 2020-06-18 15:09:18 +00:00
Alex Ling 0768e2177b Bring back original behavior for recently added
(#37 https://github.com/hkalexling/Mango/issues/37#issuecomment-644748066)
2020-06-17 16:17:29 +00:00
Alex Ling 0e4d67cf29 Hide the progress badge with incorrect value 2020-06-17 16:16:35 +00:00
Alex Ling 00fcc881ee Start from page 1 if the entry has been completed
(#71)
2020-06-16 06:17:52 +00:00
Alex Ling ca8d9efcfd Show entry display name and path in reader modal
(#71)
2020-06-16 06:06:32 +00:00
Alex Ling 0e7be6392d Fix incorrect modal colors on the reader page 2020-06-16 06:06:32 +00:00
Alex Ling 4af5258602 Show Mango version on the admin page (#71) 2020-06-16 05:26:34 +00:00
Alex Ling 23c6256552 Merge branch 'feature/color-label' into dev 2020-06-16 05:16:27 +00:00
Alex Ling ef0e3fd346 Add color to labels in dark mode (#70) 2020-06-16 05:15:39 +00:00
Alex Ling b70fad13a7 Restrict "recently added" from 3 months to 1 2020-06-15 14:54:28 +00:00
Alex Ling d2f9735250 Add space between entry title and button in modal 2020-06-15 14:53:16 +00:00
Alex Ling 06d6311080 Display book percentage in "recently added" 2020-06-15 14:32:37 +00:00
Alex Ling 674da55bde Add entry download button (#45) 2020-06-15 12:54:42 +00:00
Alex Ling dc084aff7c Support webp (#69, nice) 2020-06-15 12:35:44 +00:00
Alex Ling 4c2cf64f53 Limit load_progress to @pages 2020-06-15 12:34:51 +00:00
Alex Ling f4c4bb536c Include nested entries in continue reading 2020-06-15 12:10:31 +00:00
Alex Ling 47edb3008b Refactor get_recently_added_entries 2020-06-15 12:09:17 +00:00
Alex Ling e28dadc94e Add started? and deep_titles helper methods 2020-06-15 12:05:59 +00:00
Alex Ling 3dc9bd2264 Add finished? helper method 2020-06-15 09:48:41 +00:00
Alex Ling 9302601307 Move relevant methods from Title to Entry 2020-06-13 15:54:55 +00:00
Alex Ling 650ba98039 Merge pull request #67 from flying-sausages/patch-1
Added Use-case to Feature Request template
2020-06-11 22:45:02 +08:00
flying-sausages bb2173788b Added Use-case to Feature Request template 2020-06-11 14:14:41 +01:00
Alex Ling c8be2849b9 Show progress for titles and nested titles 2020-06-11 12:36:25 +00:00
Alex Ling aa269f26ee Fix incorrect breadcrumb menu order 2020-06-11 12:34:13 +00:00
Alex Ling 5c26b0d6dc Handle nested titles in the recently added section 2020-06-11 10:03:34 +00:00
Alex Ling c9d3c35bdd Add robots.txt 2020-06-09 15:48:08 +00:00
Alex Ling 9255de710f Link to Wiki in README 2020-06-09 15:12:23 +00:00
Alex Ling 39b251774f Bump version to v0.6.1 [skip ci] 2020-06-09 15:08:15 +00:00
Alex Ling 156e511d4a Fix failed build (omitted parentheses) 2020-06-09 14:54:23 +00:00
Alex Ling 5cd6f3eacb Fix incorrect login redirect (#64) 2020-06-09 14:46:45 +00:00
Alex Ling a0e5a03052 DRY html modal and head 2020-06-09 10:34:24 +00:00
Alex Ling e53641add1 Handle the rare case when renamed string is ".." 2020-06-09 09:42:28 +00:00
Alex Ling 45cdfd5306 Merge branch 'fix/mangadex-slash' into dev 2020-06-09 09:31:17 +00:00
Alex Ling 3d352ed062 Add test for slash escaping 2020-06-09 09:28:37 +00:00
Alex Ling bac7be5163 Escape slash in filename when downloading (#62) 2020-06-09 09:25:20 +00:00
Alex Ling 717d44e029 Refactor get_recently_added_entries method 2020-06-09 05:37:10 +00:00
Alex Ling 8da4475a74 Remove duplicate title ID (#56) 2020-06-08 15:55:40 +00:00
Alex Ling 680504779f Use component template on home page 2020-06-08 15:51:42 +00:00
Alex Ling 926d0e66a5 Formatting 2020-06-08 15:29:05 +00:00
Alex Ling 0f3dd51d6b Respect base URL 2020-06-08 15:24:35 +00:00
Alex Ling 53c3798691 Merge branch 'feature/home' into dev 2020-06-08 15:11:09 +00:00
Jared Turner 6d4e8ea544 Show config path for empty libraries and link to Admin for manual re-scan 2020-06-08 15:24:51 +01:00
Jared Turner 0bd94a2290 Add config path to Config 2020-06-08 15:24:17 +01:00
Jared Turner cff599f688 refactor get_recently_added_entries, new_user and empty_library 2020-06-08 15:23:36 +01:00
Jared Turner fa85d9834f Onboarding for new libraries and new users 2020-06-07 18:40:31 +01:00
Jared Turner aaf0a3c6af Group Recently Added by neighbouring Title 2020-06-07 18:39:05 +01:00
Jared Turner 5ed2a8affa Add Library link to mobile nav 2020-06-07 18:36:51 +01:00
Alex Ling de690fbf29 Store token and callback URI in memory session 2020-06-07 16:18:34 +00:00
Alex Ling 12c3c3f356 Bump version to v0.6.0 2020-06-06 15:45:44 +00:00
Alex Ling 1ddcabcc12 Use component templates 2020-06-06 12:00:02 +00:00
Alex Ling 8b04f2c96b Remove comment in the OPDS xml file [skip ci] 2020-06-05 16:41:55 +00:00
Alex Ling 66e2fc138a Mention OPDS support in README [skip ci] 2020-06-05 16:15:55 +00:00
Alex Ling 6817113523 Clean up 2020-06-05 15:25:41 +00:00
Alex Ling 6ad4385b18 Respect base URL in OPDS feed 2020-06-05 15:18:46 +00:00
Alex Ling 012fd71ab4 Use a helper function to set token cookie 2020-06-05 14:31:12 +00:00
Alex Ling 373ff6520a Merge branch 'feature/opds' into dev 2020-06-05 14:28:36 +00:00
Alex Ling 8a0e9250c8 Finish OPDS 2020-06-05 14:21:47 +00:00
Alex Ling 871a5fe755 Add render_xml helper function 2020-06-05 14:21:47 +00:00
Alex Ling 1493c3de90 Set token cookie after successful basic auth 2020-06-05 14:21:47 +00:00
Jared Turner 808074e478 Add Recently Added to home 2020-06-05 15:13:19 +01:00
Jared Turner 49193b9b00 Merge branch 'feature/home' of github.com:hkalexling/Mango into feature/home 2020-06-04 19:44:07 +01:00
jaredlt 1cb470fb2d Merge pull request #57 from hkalexling/feature/home-ctime
Add `ctime` helper function
2020-06-04 19:43:46 +01:00
Alex Ling e443176a79 Add ctime helper function 2020-06-04 16:31:49 +00:00
Alex Ling bec257c99f Update HTML description meta tag 2020-06-04 15:07:32 +00:00
Alex Ling f2df493d79 Add Ko-Fi link [skip ci] 2020-06-04 14:54:46 +00:00
Alex Ling b74f61c025 Bump version to v0.5.2 [skip ci] 2020-06-04 14:52:38 +00:00
Alex Ling c76c287e66 Fix URL of uploaded images when using base URL 2020-06-04 12:38:38 +00:00
Alex Ling 8e7eaa680a Fix favicon for base URL (#55) [skip-ci] 2020-06-04 05:43:37 +00:00
Alex Ling 30cdb3ec8f Remove duplicate title ID (#56) 2020-06-04 05:37:20 +00:00
Alex Ling 9c367e7d35 Format HTML files with html-beautify 2020-06-04 05:36:39 +00:00
Jared Turner 4f5e05c008 refactor continue reading into Library class 2020-06-03 13:48:49 +01:00
Alex Ling d2f95e5970 Bump version to v0.5.1 2020-06-03 08:22:05 +00:00
Alex Ling 82bcd03f15 Always create initial user if the DB is empty when started 2020-06-03 08:20:40 +00:00
Alex Ling fe799f30c8 Make the user listing command handles empty DB 2020-06-03 08:19:40 +00:00
Alex Ling 54123917af Empty ARGV before starting Kemal (#53) 2020-06-03 07:55:18 +00:00
Alex Ling 3b737c0bee Add library URL in README [skip ci] 2020-06-02 15:57:14 +00:00
Alex Ling 14bf4da06c Merge branch 'dev' 2020-06-02 15:45:11 +00:00
Alex Ling a72dfcecd3 Bump version to v0.5.0 2020-06-02 15:29:32 +00:00
Alex Ling 160a249dc6 Update CLI help message in README 2020-06-02 15:26:38 +00:00
Alex Ling f9a2534f80 Mention CBR support in README 2020-06-02 15:21:08 +00:00
Alex Ling 06fe2ccf16 Handle escaped characters when filtering (#51) [skip ci] 2020-06-02 15:08:43 +00:00
Jared Turner 13c0878357 Merge branch 'feature/home' of github.com:hkalexling/Mango into feature/home 2020-06-01 15:29:36 +01:00
Jared Turner 3ef6a7bfc4 continue reading sorted by last read 2020-06-01 15:29:18 +01:00
Alex Ling e214e00dfb Include port number in token 2020-06-01 13:50:51 +00:00
Alex Ling 9b5aea223d Promote archive error log level to warning 2020-06-01 13:38:15 +00:00
Alex Ling 60100c51fe Add send_attachment function for direct download 2020-06-01 13:21:10 +00:00
Alex Ling 27c111d273 Handle basic auth for OPDS 2020-06-01 13:20:05 +00:00
Alex Ling 1b9d83f367 Report if archive is not readable #49 2020-06-01 04:54:28 +00:00
Alex Ling 96b8186add Merge branch 'feature/admin-cli' into dev 2020-06-01 04:33:27 +00:00
Alex Ling 27dab3c989 Disable initial user creation in spec 2020-05-31 15:26:11 +00:00
Alex Ling bcb95d1462 Make validate_archive more thorough 2020-05-31 15:14:17 +00:00
Alex Ling 4371c7877d Use base URL in cookies path 2020-05-31 14:34:42 +00:00
Alex Ling d72d635c68 Add admin/user sub-command 2020-05-31 14:30:45 +00:00
Alex Ling b724b4d508 Move username/password validation to Storage class 2020-05-31 14:26:20 +00:00
Alex Ling 8bbbe650f1 Allow skipping initial user creation 2020-05-31 14:25:15 +00:00
Alex Ling 651bd17612 Rewrite option parsing using clim and add the admin subcommand 2020-05-30 15:14:39 +00:00
Alex Ling dd01e632a2 Promote ameba from development dependency to regular dependency
So I can use it in CI while keeping the `--production` flag in Makefile
2020-05-29 16:33:15 +00:00
Alex Ling 43ee8f3b85 Pass in production flag when installing shards 2020-05-29 16:23:48 +00:00
Alex Ling 4841f90cc1 Remove edit buttons from home 2020-05-29 15:51:01 +00:00
Alex Ling bedcac4e35 Add missing libarchive-dev library 2020-05-29 14:28:18 +00:00
Alex Ling 5260a82e88 Add libarchive libraries to Docker and build files 2020-05-29 14:04:17 +00:00
Alex Ling 1efb300988 Use archive.cr v0.1.0 2020-05-29 14:00:59 +00:00
Alex Ling 6b43ee7fe5 Add RAR/CBR support 2020-05-29 13:45:25 +00:00
Jared Turner e99d7b8b29 Merge branch 'feature/home' of github.com:hkalexling/Mango into feature/home 2020-05-29 13:31:00 +01:00
Jared Turner d2ad7fef77 WIP last_read property for Entries 2020-05-29 13:26:47 +01:00
Jared Turner ddb6a860ae add 'jump to title' to home modal 2020-05-24 10:35:35 +01:00
Alex Ling 3039031924 Merge branch 'master' of https://github.com/hkalexling/Mango 2020-05-24 06:47:19 +00:00
Alex Ling 8665616c2e Bump version to v0.4.0 2020-05-24 06:36:40 +00:00
Alex Ling 4453b0ee9f Link to development guideline in README [skip ci] 2020-05-24 14:34:19 +08:00
Alex Ling 487154e68c Add base url and rename rules to README [skip ci] 2020-05-24 14:33:05 +08:00
Alex Ling 60609263ab Explicitly set icon size (#40) [skip ci] 2020-05-23 14:47:35 +00:00
Alex Ling 4a245d2504 Check supplied base url has leading slash and append tailing slash if needed 2020-05-23 14:30:41 +00:00
Alex Ling 48c3a82078 Use base url when generating cover URLs 2020-05-23 14:16:56 +00:00
Alex Ling 4a59459773 Use base url in JS files 2020-05-23 14:18:14 +00:00
Alex Ling eefa8c3982 Use base url in some hardcoded URLs 2020-05-23 14:17:11 +00:00
Alex Ling 8fe2f3b4cc Use base url in views 2020-05-23 14:16:56 +00:00
Alex Ling 6a9105605d Fix library link in the breadcrumb menu 2020-05-23 12:16:08 +00:00
Alex Ling 60d4cee0a9 Respect base url setting when redirecting 2020-05-23 10:42:59 +00:00
Alex Ling 8658cb8306 Add base url to config 2020-05-23 10:42:39 +00:00
Alex Ling c74a01f546 Remove unnecessary JS files from home.ecr 2020-05-21 09:10:46 +00:00
Alex Ling 2aeb38a271 Remove edit button from home screen 2020-05-21 09:06:50 +00:00
Jared Turner a2c7638141 refactor on deck to continue reading and show percentages on home 2020-05-20 10:38:23 +01:00
Alex Ling c35e840694 Refactor the / route 2020-05-19 12:16:32 +00:00
Alex Ling ff6e64f12a Refactor get_on_deck_entry 2020-05-19 12:05:15 +00:00
Jared Turner 16fa27e4f6 update comments 2020-05-18 21:09:11 +01:00
Jared Turner 16734c2c59 rename root to library and add home with on deck WIP 2020-05-18 21:06:14 +01:00
Jared Turner 392b3d8339 fix load_percetage method name typo 2020-05-18 20:32:09 +01:00
Alex Ling d4e523c337 [skip ci] allow skip CI 2020-05-17 14:08:46 +00:00
Alex Ling d49c0092c2 Generate artifact 2020-05-17 13:57:28 +00:00
Alex Ling d75009f088 Rename scripts/ to dev/ 2020-05-17 13:44:10 +00:00
Alex Ling d416dc6618 Use rename when downloading 2020-05-17 06:29:13 +00:00
Alex Ling 7233e6e5c3 Type annotate the self.default methods 2020-05-17 06:28:33 +00:00
Alex Ling bd8ae9497f Initialize the downloader when started 2020-05-07 15:42:31 +00:00
Alex Ling 34b11dc2c7 Only hijack HTTP 500 when in release mode 2020-05-07 15:41:02 +00:00
Alex Ling 30dea57346 Use singleton in tests 2020-05-07 10:12:58 +00:00
Alex Ling 7448592216 Optionally pass in db path for testing 2020-05-07 10:12:58 +00:00
Alex Ling 049bd3ab2c Fix long lines 2020-05-07 10:12:58 +00:00
Alex Ling c3608c101b Enforce 80 characters limit in make check 2020-05-07 10:12:58 +00:00
Alex Ling 1bec9f0108 Use singleton in various classes 2020-05-07 10:12:58 +00:00
Alex Ling 09b297cd8e Add rename method to Manga and Chapter 2020-05-07 10:12:06 +00:00
Alex Ling b7cd55e692 Add rename rules to config 2020-05-07 10:11:45 +00:00
Alex Ling 986939ecb6 Add tests for the Rename module 2020-05-07 10:01:32 +00:00
Alex Ling a5e97af3a3 Use abstract class in the Rename module 2020-05-03 16:31:00 +00:00
Alex Ling 4cee5faecd Allow | character outside of patterns 2020-05-03 16:30:35 +00:00
Alex Ling 711add74ef Allow spaces in patterns 2020-05-03 16:29:54 +00:00
Alex Ling f6f09c54bc Add Rename module 2020-05-03 12:02:12 +00:00
Alex Ling 0f58ebb87b Ignore markdown files 2020-05-03 12:01:57 +00:00
Alex Ling 46347a8fe4 Update README.md 2020-04-23 14:49:06 +08:00
Alex Ling a354d811d9 Merge branch 'dev' 2020-04-22 14:36:36 +00:00
Alex Ling 22d757362a Update README.md 2020-04-22 22:34:02 +08:00
Alex Ling 8afcea7e87 Update README.md 2020-04-22 22:31:40 +08:00
Alex Ling fb05e913a0 Limit cover image types to png/jpeg in the web UI 2020-04-20 07:36:55 +00:00
Alex Ling 490888ad71 Bump version to 0.3.0 2020-04-19 16:23:00 +00:00
Alex Ling 20d71bfa81 Finish #30 2020-04-19 16:11:23 +00:00
Alex Ling ec6a7bd3d9 Read/unread a directory with API 2020-04-19 15:47:36 +00:00
Alex Ling b449d906ec Merge branch 'cover' into dev 2020-04-19 14:39:19 +00:00
Alex Ling f66bec5545 Update frontend for cover upload 2020-04-19 14:33:24 +00:00
Alex Ling ce5f444012 Remove debug code in upload handler 2020-04-19 14:32:58 +00:00
Alex Ling 8506044232 Handle errors in the "/" endpoint 2020-04-14 06:08:10 +00:00
Alex Ling 079dd8e280 Fix layout macro message displaying bug 2020-04-14 06:08:10 +00:00
Alex Ling 8262a163db Finish the API endpoint for cover upload 2020-04-14 06:09:23 +00:00
Alex Ling d6b22ef736 Don't return from DB blocks 2020-04-10 15:24:49 +00:00
Alex Ling 39f4897fc5 Set status as "Error" if downloaded zip is invalid
(#29)
2020-04-08 10:31:30 +00:00
Alex Ling fc6a33e5fd Update Makefile 2020-04-08 07:18:25 +00:00
Alex Ling 7d97d21d40 Run Ameba and Crystal formatting tool on push 2020-04-08 07:09:54 +00:00
Alex Ling fcf9d39047 Project-wise refactoring to follow Ameba 2020-04-08 06:45:45 +00:00
Alex Ling d33cae7618 Use Ameba 2020-04-08 06:45:45 +00:00
Alex Ling 8b184ed48d Project-wise code formatting 2020-04-08 05:25:12 +00:00
Alex Ling d3309a810b Update bug_report.md 2020-04-07 22:15:07 +08:00
Alex Ling 3866c81588 Use the updated Logger class in spec 2020-04-07 13:26:09 +00:00
Alex Ling 2c31f594a4 Use the new Log module in Crystal 0.34.0 2020-04-07 12:58:42 +00:00
Alex Ling c572c56a39 Upgrade Crystal version to 0.34.0 2020-04-07 12:57:50 +00:00
Alex Ling e670a083a3 Update shards.lock 2020-04-07 12:57:50 +00:00
Alex Ling 9b23e1759d Update shards.lock 2020-04-07 12:57:50 +00:00
Alex Ling 14e3470b12 Hide rename buttons when the login user is not admin 2020-04-07 12:57:50 +00:00
Alex Ling 8ce51a6163 Hide the "Admin" and "Download" buttons when user is not admin 2020-04-07 12:57:50 +00:00
Alex Ling 1d4237d687 Pass in admin information when rendering all pages 2020-04-07 12:57:50 +00:00
Alex Ling b7c0515af7 Fix dark mode on login page 2020-04-07 12:57:50 +00:00
Alex Ling 75edfcdb5b Set and load display names in frontend 2020-04-07 12:57:50 +00:00
Alex Ling 51d19328be Set up API endpoint for setting display names 2020-04-07 12:57:50 +00:00
Alex Ling d405498af4 Update shards.lock 2020-04-07 04:01:04 +00:00
Alex Ling 696f79aea1 Merge pull request #28 from noirscape/env-file
Use a .env file for docker-compose configuration.
2020-04-07 11:43:32 +08:00
noirscape d2da8d0b9a docker: Use a .env file 2020-04-06 21:49:14 +02:00
Alex Ling 4e961192d4 Update README.md 2020-04-06 22:44:45 +08:00
Alex Ling 8b90524a2c Create dockerhub.yml 2020-04-06 21:45:08 +08:00
Alex Ling c9b8770b9f Bump version to v0.2.5 2020-04-02 09:12:35 +00:00
Alex Ling e568ec8878 Fix the unexpected sorting behavior on Chrome 2020-04-02 09:06:16 +00:00
Alex Ling ac3df03d88 Show page counts on chapter cards 2020-04-02 05:44:29 +00:00
Alex Ling 7c9728683c On the title page, hide progress label of nested titles 2020-04-02 00:16:19 +00:00
Alex Ling d921d04abf Bump version to v0.2.4 2020-04-01 23:32:16 +00:00
Alex Ling 5400c8c8ef Fix a UI bug that shows "resume download" button on download manager even when the downloading process is not paused 2020-04-01 23:21:32 +00:00
Alex Ling 58e96cd4fe Watch the title element size for change 2020-04-01 06:13:03 +00:00
Alex Ling aa09f3a86f Only show tooltips for truncated titles 2020-04-01 05:59:46 +00:00
Alex Ling a5daded453 Fix the width and height of cover images (#23) 2020-04-01 04:51:57 +00:00
Alex Ling 4968cb8e18 Add tooltips to show un-truncated titles 2020-04-01 04:49:53 +00:00
Alex Ling 27c6e02da8 Run the truncate function after DOM is ready 2020-04-01 04:48:53 +00:00
Alex Ling 68d1b55aea Limit title text height in CSS 2020-04-01 04:47:55 +00:00
Alex Ling 32dc3e84b9 Lazy load images in library/title page to improve page load time 2020-03-31 08:44:07 +00:00
Alex Ling 460fcdf2f5 Limit the number of lines to display in card titles 2020-03-30 20:36:27 +00:00
Alex Ling c6369f9f26 Prevent flash of white in cards 2020-03-30 20:35:30 +00:00
Alex Ling aa147602fc Bump version number 0.2.2 -> 0.2.3 2020-03-27 05:00:14 +00:00
Alex Ling d58c83fbd8 Use BigInt when sorting filenames (#22) 2020-03-27 04:45:03 +00:00
Alex Ling 1a0c3d81ce Add Patreon 2020-03-21 05:18:53 +00:00
Alex Ling 33c61fd8c1 Add build badge 2020-03-19 16:04:06 -04:00
Alex Ling 6eba3fe351 Create build.yml 2020-03-19 19:58:59 +00:00
Alex Ling da2708abe5 Put mango binary in / instead of /root/Mango/ 2020-03-19 18:17:26 +00:00
Alex Ling febf344d33 Remove unnecessary libraries 2020-03-19 18:16:48 +00:00
Alex Ling ae15398b6c Name the builder stage 2020-03-19 18:14:02 +00:00
Alex Ling b28f6046dd Merge pull request #17 from WROIATE/master
Update Dockerfile to reduce the image size
2020-03-19 12:29:19 -04:00
Jarao 91b823450c Update Dockerfile 2020-03-19 13:00:11 +08:00
Alex Ling 085fba611c Update README.md 2020-03-17 11:59:32 -04:00
Alex Ling f8d633c751 Add example library structure to README 2020-03-17 11:45:46 -04:00
Alex Ling f5e6f42fc2 Update README.md 2020-03-15 13:16:19 -04:00
Alex Ling 3ca6d3d338 Bump version (0.2.0 -> 0.2.1) 2020-03-15 17:09:27 +00:00
Alex Ling 750a28eccb Break words in modal title and path to handle long text 2020-03-15 02:58:27 +00:00
Alex Ling 88b16445e2 Show entry title instead of book title in modal 2020-03-15 02:55:35 +00:00
Alex Ling 7774efa471 When a title has no entry as immediate child, always return 0 as the reading progress 2020-03-15 02:30:18 +00:00
Alex Ling 4aeda53806 Sort title_ids and entries alphanumerically 2020-03-15 02:29:45 +00:00
Alex Ling 5d62a87720 Fix inaccurate sorting when sorting by progress 2020-03-15 02:28:21 +00:00
Alex Ling e902e1dff0 Merge branch 'nested' into v0.2.1 2020-03-15 02:15:55 +00:00
Alex Ling 9fe32b5011 When a title contains no entry as immediate child, display mango logo and remove progress badge 2020-03-15 02:10:22 +00:00
Alex Ling e65d701e0a Show sum of entries and titles count when displaying the number of entries 2020-03-15 02:08:20 +00:00
Alex Ling 5a500364fc Show a list of parent directories on the title page 2020-03-15 01:45:10 +00:00
Alex Ling 3e42266955 List the parent title objects in Title.to_json 2020-03-15 01:31:14 +00:00
Alex Ling 6407cea7bf Refactor src/library.cr to reduce memory usage
- Store the `Title` objects in `Library@title_hash`
- The `Title` objects only stores IDs to other titles
2020-03-15 01:05:37 +00:00
Alex Ling 7e22cc5f57 Fix bug in API /api/book/:tid that causes 500 2020-03-15 01:03:49 +00:00
Alex Ling e68678f2fb Remove unnecessary JSON::Field calls 2020-03-14 23:59:46 +00:00
Alex Ling 82fb45b242 Use json builder in src/library.cr instead of json mapping 2020-03-14 23:58:49 +00:00
Alex Ling 46dfc2f712 Set login cookie expiration date 2020-03-14 22:53:52 +00:00
Alex Ling 79aa816ca8 Merge branch 'v0.2.0' of https://github.com/hkalexling/Mango into v0.2.0 2020-03-13 18:16:14 +00:00
Alex Ling e35cf2ce0c Update README.md 2020-03-13 14:00:22 -04:00
Alex Ling 47ba0e39af Add dark mode screenshot 2020-03-13 13:59:25 -04:00
Alex Ling aedb13ac92 Update README.md 2020-03-13 13:53:54 -04:00
Alex Ling d1c0e52f90 Fix crash after generating default config 2020-03-13 17:46:28 +00:00
Alex Ling 173ff2d2e6 Ignore key mangadex_default in config YAML and remove unnecessary
calls to `YAML::Field`
2020-03-13 17:45:29 +00:00
Alex Ling ae281e2e21 Bump version number (0.1.2 -> 0.2.0) 2020-03-13 17:03:20 +00:00
Alex Ling 2c10623731 Formatting 2020-03-13 17:03:06 +00:00
Alex Ling 31da5acdc5 Preserve line-breaks in download error messages 2020-03-13 17:00:52 +00:00
Alex Ling 77237a274a Color the close button in alert black so it won't disappear in dark
mode
2020-03-13 01:38:16 +00:00
Alex Ling 318501bc9b Show reading progress in reader 2020-03-13 01:05:16 +00:00
Alex Ling dc5284968d Use helper function compare_alphanumerically(String, String) to make
the function call shorter
2020-03-12 23:53:51 +00:00
Alex Ling 01216d806c Add a helper function to combine the two steps of filenames sorting
(splitting and comparing)
2020-03-12 23:52:49 +00:00
Alex Ling c4ffb5cd59 Handle the case when two split arrays have different size in
`compare_alphanumerically`
2020-03-12 23:51:09 +00:00
Alex Ling 50ce0e2b54 Fix typo 2020-03-12 23:49:40 +00:00
Alex Ling 8b8967de26 Simplify the split_by_alphanumeric function 2020-03-12 23:49:02 +00:00
Alex Ling 335fb45de6 Add spec for util.cr 2020-03-12 23:47:14 +00:00
Alex Ling 8c7ced87f1 Add nested library support (WIP) 2020-03-12 20:37:03 +00:00
Alex Ling 00d2540b95 Merge pull request #14 from Leeingnyo/change-page-sort
Sort page names alphanumerically
2020-03-12 13:37:59 -04:00
Leeingnyo d120433525 Sort page alphanumerically
See https://ux.stackexchange.com/questions/95431/how-should-sorting-work-when-numeric-is-mixed-with-alpha-numeric
2020-03-13 02:27:59 +09:00
Alex Ling 9536ce62e6 Add the "auto" sorting option (#9) 2020-03-12 03:10:56 +00:00
Alex Ling 4ba81b9ffe Sort download jobs listed on the download manager by time 2020-03-11 19:28:04 +00:00
Alex Ling c355c67415 Download older chapters (as shown on MangaDex) first 2020-03-11 19:26:23 +00:00
Alex Ling 4def23a5cf Fix the problem that URLs are not being parsed on the download page 2020-03-11 18:15:43 +00:00
Alex Ling 943076ccf7 Simplify the download queue tasks APIs 2020-03-11 18:11:32 +00:00
Alex Ling 36034042f2 Fix styling issues with dark theme on the download page 2020-03-11 03:07:09 +00:00
Alex Ling 36e2b2bfaf Add dark mode support 2020-03-07 02:51:08 +00:00
Alex Ling c6c908953b Use transparent icon 2020-03-07 02:50:44 +00:00
Alex Ling 3ae0ad6348 Add fontawesome and add the "adjust" icon to navigation bar to prepare for dark
mode.
2020-03-06 02:25:10 +00:00
Alex Ling 7ca40215b6 Remove temp DB files before resetting the state 2020-03-04 01:56:48 +00:00
Alex Ling 54206bc6ac Finish the test cases for MangaDex::Queue 2020-03-04 01:52:17 +00:00
Alex Ling 1abdac2fdd Better state management in spec and add some tests for MangaDex::Queue 2020-03-03 18:34:39 +00:00
Alex Ling 9ffe896705 Only log the "baking dist/" message when building for release 2020-03-03 02:51:45 +00:00
Alex Ling 7a7c855ce4 Remove the unused gzip import from static_handler.cr 2020-03-03 02:51:09 +00:00
Alex Ling e2d01f7eb9 Remove error handling in the parse_query_result method of
MangaDex::Job, and pass the possible exceptions to the frontend and
handle them there.
2020-03-03 02:33:32 +00:00
Alex Ling 7575785c1c Remove the unused get method from MangaDex::Queue 2020-03-03 02:32:08 +00:00
Alex Ling dfd53bc51d Fix incorrect variable in MangaDex::Downloader (@stop -> @stopped) 2020-03-03 02:06:27 +00:00
Alex Ling f140ffa4b2 Add and use MLogger in MangaDex::Queue and MangaDex::Downloader 2020-03-03 02:05:55 +00:00
Alex Ling 589483cd75 Center the message on message.ecr 2020-03-02 16:55:08 +00:00
Alex Ling 306edc3c77 Handle HTTP 404 and 500 errors 2020-03-02 16:54:29 +00:00
Alex Ling 30af64e9ca Add pause/resume download button to the download manager 2020-03-02 16:30:05 +00:00
Alex Ling fecb96c91b Redirect to the download manager after adding jobs to the queue 2020-03-02 02:10:01 +00:00
Alex Ling 4f01aba3e1 Add link to the download manager page on the admin page 2020-03-02 01:57:09 +00:00
Alex Ling f13f7989d5 Finish the download manager page 2020-03-02 01:50:04 +00:00
Alex Ling 1ce553f541 Add the /admin/downloads page for monitoring download queue 2020-03-01 03:05:40 +00:00
Alex Ling c4253db572 Add status message to MangaDex::Job and improve formatting 2020-03-01 03:04:55 +00:00
Alex Ling db6d33eae1 Add sourcerer.io contributors 2020-02-29 21:47:59 -05:00
Alex Ling 8fbc5528a8 Move the JS alert function definition to /js/alert.js and move the alert div to views/layout.ecr 2020-03-01 01:23:16 +00:00
Alex Ling d50804830d Merge branch 'master' into v0.2.0 2020-02-29 17:50:38 +00:00
Alex Ling 5d7bbc7c9b Remove @log from MangaDex::Job and save the @success_count and
@fail_count instead
2020-02-29 04:11:48 +00:00
Alex Ling 0b463539c9 Better log in MangaDex::API when status is not OK, and handles external
chapters
2020-02-29 04:10:09 +00:00
Alex Ling 7f0088f45a Fix typo (embeded -> embedded) 2020-02-29 00:08:27 +00:00
Alex Ling 8c47d50291 Update download API to use Queue in Context and use @full_title 2020-02-28 17:38:45 +00:00
Alex Ling 4ca8daca29 Add API to fetch download queue 2020-02-28 17:38:08 +00:00
Alex Ling d3d8dff6d2 Add MangaDex::Queue to Context 2020-02-28 17:37:08 +00:00
Alex Ling f11a5cd608 Finish downloader 2020-02-28 17:36:21 +00:00
Alex Ling 6bccba16da Add MangaDex::PageJob and MangaDex::Downloader 2020-02-28 17:31:09 +00:00
Alex Ling 28ac5c7a00 Formatting in mangadex/api.cr 2020-02-28 17:17:57 +00:00
Alex Ling f8e0c6d795 Remove download code from mangadex/api.cr, as the download functionality
is now handled by mangadex/downloader.cr
2020-02-28 17:15:55 +00:00
Alex Ling e3d505d62b Add @full_title to MangaDex::Chapter 2020-02-28 17:14:38 +00:00
Alex Ling 77864afa67 Removing the logging of the library json on scan 2020-02-28 16:55:39 +00:00
Alex Ling 5abdca24c2 Ignore invalid zip files in library 2020-02-28 16:54:37 +00:00
Alex Ling e8c365b7a1 Rename module Mangadex to MangaDex 2020-02-28 16:48:48 +00:00
Alex Ling 6659041631 Allow missing keys in the "mangadex" dictionary in the config file 2020-02-28 16:24:46 +00:00
Alex Ling fa50f4cb88 Delete the single job push method 2020-02-26 23:55:38 +00:00
Alex Ling c39a1ddbaf Merge branch 'master' into v0.2.0 2020-02-26 18:26:49 +00:00
Alex Ling 7de01991a0 Fix the problem that all chapters (regardless of selections) will be
posted to the API
2020-02-26 18:20:14 +00:00
Alex Ling 319967438b Merge branch 'master' into v0.2.0 2020-02-26 18:19:30 +00:00
Alex Ling 1bbb08eede Show spinner and hide download button when posting to API 2020-02-26 17:46:28 +00:00
Alex Ling d9d1dbc26f Post selected chapter JSON object to API, instead of just posting the
IDs
2020-02-26 17:45:37 +00:00
Alex Ling c33884ea29 Add mangadex download enpoint to API 2020-02-26 17:42:40 +00:00
Alex Ling 2dd980b92c Add mangadex/downloader.cr (implements MangaDex::Job and
MangaDex::Queue)
2020-02-26 17:41:50 +00:00
Alex Ling 89e747d3ee Get Chapter object directly from chapter ID 2020-02-26 17:31:53 +00:00
Alex Ling 468f109776 Add Manga object as a property of MangaDex::Chapter 2020-02-26 17:31:04 +00:00
Alex Ling 905d02e911 Add queue db path to config.cr 2020-02-26 17:29:34 +00:00