Commit Graph

208 Commits

Author SHA1 Message Date
Alex Ling 1493c3de90 Set token cookie after successful basic auth 2020-06-05 14:21:47 +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 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 6b43ee7fe5 Add RAR/CBR support 2020-05-29 13:45:25 +00:00
Alex Ling 8665616c2e Bump version to v0.4.0 2020-05-24 06:36:40 +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 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 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 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 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 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 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 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 fcf9d39047 Project-wise refactoring to follow 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 2c31f594a4 Use the new Log module in Crystal 0.34.0 2020-04-07 12:58:42 +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