1038 Commits

Author SHA1 Message Date
Chris Alexander
be46dd1f86
Allow config defaults to be sourced from ENV
This allows the default config to source values from ENV variables if
they are set. With this change we don't have to modify the docker CMD or
edit the config.yml and then relaunch.
2022-06-15 12:03:40 -05:00
Alex Ling
2d97faa7c0
Merge pull request #305 from Leeingnyo/feature/unzipped-entry
Support unzipped entry
2022-06-05 16:23:57 +08:00
Leeingnyo
9ce8e918f0 Replace to is_valid? 2022-06-04 00:26:46 +09:00
Leeingnyo
8e4bb995d3 Add zip_path to API document, add path property 2022-06-04 00:18:45 +09:00
Alex Ling
39a331c879 Avoid not_nil in date_added 2022-05-29 05:44:11 +00:00
Alex Ling
df618704ea Fix linter 2022-05-29 05:28:50 +00:00
Alex Ling
2fb620211d Choose correct subclass based on YAML node 2022-05-29 05:24:41 +00:00
Alex Ling
5b23a112b2 Remove unnecessary path method 2022-05-22 05:17:05 +00:00
Alex Ling
e6dbeb623b Use is_valid? 2022-05-22 05:12:43 +00:00
Alex Ling
872e6dc6d6 Better method naming in DirEntry 2022-05-22 04:20:14 +00:00
Alex Ling
82c60ccc1d Replace puts with Logger.debug 2022-05-22 04:04:40 +00:00
Alex Ling
ae503ae099 Remove unnecessary createtime method 2022-05-22 02:54:05 +00:00
Alex Ling
648cdd772c Add back zip_path for backward compatibility 2022-05-22 02:48:06 +00:00
Leeingnyo
238539c27d Split files 2022-05-20 14:21:08 +09:00
Leeingnyo
1f5aed64f7 Rename Entries to ArchiveEntry and DirEntry 2022-05-20 09:51:56 +09:00
Alex Ling
f18f6a5418 Fix linter issues 2022-05-19 12:41:07 +00:00
Leeingnyo
0ed565519b Rollback crystal format 2022-05-15 17:38:21 +09:00
Leeingnyo
3da5d9ba4e Fix contents_signature 2022-05-15 17:36:57 +09:00
Leeingnyo
3a60286c3a Run 'crystal tool format' 2022-05-15 17:02:29 +09:00
Leeingnyo
9f6be70995 Rename Entry.exists? to Entry.examine 2022-05-15 16:28:53 +09:00
Leeingnyo
caf4cfb6cd Fix Entry.new in YAML::Serializable to support DirectyEntry
so hacky
2022-05-15 16:12:43 +09:00
Leeingnyo
137e84dfb6 Fix caching policy
Before rendering it, the Mango reader should check the E-Tag of page
or it renders wrong image when an image file is moved/removed/reordered
2022-05-15 16:12:31 +09:00
Leeingnyo
3b3a0738e8 Scan DirectoryEntry when init and examine 2022-05-15 16:12:31 +09:00
Leeingnyo
55ccd928a2 Implement DirectoryEntry 2022-05-15 16:12:31 +09:00
Leeingnyo
10587f48cb Implement is_supported_image_file 2022-05-15 16:12:31 +09:00
Leeingnyo
ea6cbbd9ce Split Entry and ZippedEntry, Fix to work anyway
make Entry an abstract class
2022-05-15 05:41:25 +09:00
Alex Ling
883e01bbdd
Merge pull request #302 from Leeingnyo/fix/preload-bug
Fix preload bug
2022-05-13 20:11:20 +08:00
Alex Ling
5f59b7ee42
Merge branch 'dev' into fix/preload-bug 2022-05-13 19:51:26 +08:00
Alex Ling
eac274a211
Merge pull request #301 from Leeingnyo/feature/show-control-at-end-in-paged-mode
Show control after reading all (in paged mode)
2022-05-13 19:47:57 +08:00
Leeingnyo
0e4169cb22 Fix preload bug
cause index error
2022-05-13 08:43:25 +09:00
Leeingnyo
28656695c6 Show control after reading at the end in paged mode 2022-05-13 08:35:04 +09:00
Alex Ling
ce1dcff229 Bump version to 0.26.2 2022-04-18 09:41:36 +00:00
Alex Ling
4f599fb719 Add back accidentally deleted OPDS routes
Resolves https://github.com/hkalexling/Mango/issues/255#issuecomment-1097588181
2022-04-18 08:49:09 +00:00
Alex Ling
c831879c23
Merge pull request #293 from hkalexling/rc/0.26.1
v0.26.1
v0.26.1
2022-04-04 22:11:24 +08:00
Alex Ling
171b44643c Bump version to 0.26.1 2022-04-04 13:33:03 +00:00
Alex Ling
a353029fcd Merge branch 'master' into dev 2022-04-04 13:20:36 +00:00
Alex Ling
75e26d8624
Merge pull request #292 from hkalexling/fix/sanitize-html
Sanitize parameters on user edit page (fixes #289)
2022-04-04 21:16:44 +08:00
Alex Ling
ebe2c8efed Sanitize parameters on user edit page (fixes #289) 2022-04-04 03:20:52 +00:00
Alex Ling
b8ce1cc7f1
Merge pull request #286 from hkalexling/rc/0.26.0
v0.26.0
v0.26.0
2022-04-03 18:41:14 +08:00
Alex Ling
24c90e7283 Update README config example 2022-03-28 14:17:54 +00:00
Alex Ling
9ffc34e8e6 Bump version to 0.26.0 2022-03-28 14:14:17 +00:00
Alex Ling
d1de8b7a4e Include admin info in /api/signin response 2022-03-23 06:05:12 +00:00
Alex Ling
7ae0577e4e Merge branch 'dev' of https://github.com/hkalexling/Mango into dev 2022-03-22 16:08:48 +00:00
Alex Ling
e9b1bccbc9 Fix schema for the parents field 2022-03-22 16:08:16 +00:00
Alex Ling
293fb84e1d Formatting 2022-03-22 16:04:39 +00:00
Alex Ling
9c07944390 Add endpoints for home page
- `/api/library/continue_reading`
- `/api/library/start_reading`
- `/api/library/recently_added`
2022-03-22 16:01:37 +00:00
Alex Ling
173d69eb26 Upgrade Koa 2022-03-22 15:59:56 +00:00
Alex Ling
21d8d0e8a7 Optionally include reading progress in response 2022-03-22 12:58:37 +00:00
Alex Ling
61e85dd49f Include archive error messages in API response 2022-03-22 11:42:25 +00:00
Alex Ling
c778364ca2 Formatting 2022-03-22 11:42:16 +00:00