493 Commits

Author SHA1 Message Date
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
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
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
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
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
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
943076ccf7 Simplify the download queue tasks APIs 2020-03-11 18:11:32 +00:00
Alex Ling
36e2b2bfaf Add dark mode support 2020-03-07 02:51:08 +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
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
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
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