Commit Graph

46 Commits

Author SHA1 Message Date
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
7c9728683c On the title page, hide progress label of nested titles 2020-04-02 00:16:19 +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
e65d701e0a Show sum of entries and titles count when displaying the number of entries 2020-03-15 02:08:20 +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
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
dc5284968d Use helper function compare_alphanumerically(String, String) to make
the function call shorter
2020-03-12 23:53:51 +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
d50804830d Merge branch 'master' into v0.2.0 2020-02-29 17:50:38 +00:00
Alex Ling
5645f272df When an invalid zip file is found, instead of ignoring it silently, log
a warning message
2020-02-28 18:08:56 +00:00
Alex Ling
dc3bbd10d6 Close zip file after listing entries to prevent leaking 2020-02-28 17:55:45 +00:00
Alex Ling
cb76a96126 Removing the logging of the library json on scan 2020-02-28 17:52:50 +00:00
Alex Ling
bf37c4aa10 Sorting in library and title page 2020-02-28 17:51:26 +00:00
Alex Ling
f837be0718 Ignore invalid zip files in library 2020-02-28 17:45:30 +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
319967438b Merge branch 'master' into v0.2.0 2020-02-26 18:19:30 +00:00
Alex Ling
bb00c2e77f Close zip file after listing entries to prevent leaking 2020-02-26 17:24:16 +00:00
Alex Ling
7a21f4dc9b Sort titles in library by name by default 2020-02-23 18:36:10 +00:00
Alex Ling
650ebc7f9d Fix #6 2020-02-23 18:35:27 +00:00
Alex Ling
67d3d2bd55 Sorting in library and title page 2020-02-22 18:16:04 +00:00
Alex Ling
5ec35f3af6 Sort titles in library by name by default 2020-02-22 18:15:40 +00:00
Alex Ling
2cbb719855 - cbz support 2020-02-17 01:12:40 +00:00
Alex Ling
ec09a1b381 - 2020-02-17 00:43:10 +00:00
Alex Ling
8119f718db - better logging 2020-02-17 00:33:43 +00:00
Alex Ling
e5e2540b7c - define Image as struct 2020-02-16 23:44:58 +00:00
Alex Ling
7168c6bfb2 - use logger 2020-02-16 21:24:19 +00:00
Alex Ling
d9129ad58f - periodic scan 2020-02-16 17:20:12 +00:00
Alex Ling
e7583ce788 - create scan method to prepare for periodic scanning 2020-02-16 04:01:30 +00:00
Alex Ling
5a7a54d17e - next entry/exit reader after finishing an entry 2020-02-16 01:00:52 +00:00
Alex Ling
87255e8996 - make the page parameter in reader the actual page number instead of
index
2020-02-15 16:50:38 +00:00
Alex Ling
c7bde94495 - make the page parameter in the reader view the same as the page number in books 2020-02-14 16:57:48 +00:00
Alex Ling
9114c0b488 - do not show entries containing no pages 2020-02-14 16:29:38 +00:00
Alex Ling
5534b9bcdf - save/load reading progress 2020-02-14 03:22:12 +00:00
Alex Ling
042df2bf1f - 2020-02-14 00:57:39 +00:00
Alex Ling
f126dfb430 - implement reader 2020-02-12 20:17:45 +00:00
Alex Ling
9eedac280e - / and /book/:title 2020-02-12 17:52:33 +00:00
Alex Ling
cc031c9aef - implement login and load images from zip 2020-02-12 03:47:10 +00:00
Alex Ling
3c2b054ec8 - initial commit 2020-02-11 22:06:17 +00:00