Commit Graph

533 Commits

Author SHA1 Message Date
Jonathan Rehm
d85e0b96dc Prevent jQuery from cache busting static assets
If the HTML that's returned from the `$.get` request contains a `<script src="..."/>` tag it loads the JavaScript file via ajax, and by default it attaches a timestamp to it to bust cache. That means the file loads every time the modal is opened, and the browser treats it as a new file each time. The result is that code fires multiple times and events listeners are added multiple times.
2017-07-22 11:11:14 -07:00
Jonathan Rehm
e1a88aa0ab Make change requested by Codacy 2017-07-22 07:34:38 -07:00
Jonathan Rehm
5c3a5b6c39 Use ajax to add/remove books from shelves
Gracefully fall back to standard requests if JavaScript is disabled
2017-07-21 21:15:03 -07:00
Ozzie Isaacs
2e8a268dfa Fix #241 No1 2017-07-18 20:39:35 +02:00
OzzieIsaacs
6a9d8efc93 Fixes for #233 (detection of permission errors) 2017-07-16 22:04:40 +02:00
Jonathan Rehm
85ce06850c Fix for Python 3 2017-07-13 21:28:00 -07:00
Jonathan Rehm
91ba0f0362 Resolve issues with unicode characters in author's name
I've been unable to reproduce the issue on macOS with Python 2.7/3.6 and Fedora with Python 2.7, but if it happens for others, then it's worth the change.
2017-07-13 21:22:34 -07:00
Jonathan Rehm
51bd2f89df Use dot notation 2017-07-13 18:09:33 -07:00
Jonathan Rehm
c9c6529567 Use SECRET_KEY from environment variable (#232) 2017-07-11 18:35:55 +02:00
OzzieIsaacs
5985342b79 Bugfix for typeahead in search function and on edit books page 2017-07-11 18:08:12 +02:00
OzzieIsaacs
a8aa1e7623 Merge remote-tracking branch 'button_padding/limit-typeahead-requests' 2017-07-11 17:48:33 +02:00
OzzieIsaacs
cfa69ff4f2 Merge remote-tracking branch 'button_padding/smtp-from' 2017-07-11 17:38:52 +02:00
Jonathan Rehm
9683d50f36 Send mail from the FROM address instead of the login
When SMTP is configured to use a service that doesn't use an email address to log in – e.g. AWS SES or Postmark – the sendmail request fails saying the FROM address is invalid.
2017-07-11 07:16:19 -07:00
Ozzie Isaacs
f79fb420ba Removed whitespaces 2017-07-11 16:13:33 +02:00
Jonathan Rehm
802eb628c8 Split event listener and selector string
Event and selectors appear to have been accidentally combined. The result is that typing in any input triggers a call to the `/get_matching_tags` route. We can probably limit the selector farther to only fire when `#tags` is typed into.
2017-07-10 13:03:58 -07:00
Jonathan Rehm
66231c8737 Associate label with correct input (#228) 2017-07-10 19:26:57 +02:00
Ozzie Isaacs
92f634b6a6 Bugfix link admin section 2017-07-10 12:04:15 +02:00
OzzieIsaacs
74e93e1cdf Code cosmetics 2017-07-09 20:15:15 +02:00
OzzieIsaacs
1fdb7dc497 Epub Viewer Bugfix Retenia Ipad devices 2017-07-09 16:28:22 +02:00
OzzieIsaacs
16ce7799a2 Improvement of margins in epub reader (fix #210) 2017-07-09 15:49:47 +02:00
OzzieIsaacs
470aea6106 Fix #214
Update epub.js lib
2017-07-09 13:27:56 +02:00
OzzieIsaacs
979bcdffd4 Bugfix non working download links
Bugfix missing divider in detail page
2017-07-09 12:41:09 +02:00
Jonathan Rehm
fe68c8a7f8 Add support for displaying author information from Goodreads
Requires the "goodread" module (added to optional-requirements.txt) and an API key

Retrieves Goodreads author information and displays their photo and "about" text
2017-07-08 16:07:45 -07:00
OzzieIsaacs
31e0025099 Update Translation 2017-07-08 19:50:44 +02:00
OzzieIsaacs
5a6ad970d8 Merge remote-tracking branch 'button_padding/magic-link' 2017-07-08 19:26:08 +02:00
Jonathan Rehm
d799b859ea Make changes suggested by codacy 2017-07-08 09:15:40 -07:00
Jonathan Rehm
649579eccd Move jquery.form to layout.html
This prevents it from getting loaded each time the details are viewed in a modal dialog.
2017-07-08 09:15:40 -07:00
Jonathan Rehm
675e8dd5cd Show book details in modal dialog
With them shown in a modal, you don't lose your place in the pagination. If the request comes via Ajax, the minimal layout is used. If via a normal request, the full layout is used. That lets you open the details in a new tab and have the full experience, but if you're clicking through the results of a search, you can view many without losing your place.
2017-07-08 09:15:40 -07:00
OzzieIsaacs
93dfb96174 Added Translation of title for read/unread books 2017-07-08 16:47:07 +02:00
OzzieIsaacs
f446e29276 Updater now uses correct "gid" instead of "uid" for change ownership of files (Fix for #213 ) -> update should now working if user id differs from groupid 2017-07-08 14:57:39 +02:00
OzzieIsaacs
2929d95b26 Display all authors names in shelf, like on all other pages (#202) 2017-07-08 13:50:21 +02:00
OzzieIsaacs
aed626b91b Merge remote-tracking branch 'button_padding/read-unread-counts' 2017-07-08 11:26:07 +02:00
OzzieIsaacs
254e1f5262 Merge remote-tracking branch 'button_padding/simplify-read-code'
# Conflicts:
#	cps/static/css/style.css
2017-07-08 11:25:20 +02:00
OzzieIsaacs
15531324ea Add translation of rich text editor 2017-07-08 11:19:36 +02:00
OzzieIsaacs
77c4da0f07 Merge remote-tracking branch 'button_padding/tinymce' 2017-07-08 11:03:21 +02:00
OzzieIsaacs
4f08608d75 Move download button to top of detail page (#174) 2017-07-08 11:01:40 +02:00
OzzieIsaacs
b876a03f26 - Changed link color on download button to white
- removed file icons on download button
- removed shadow style on download button
2017-07-08 10:57:40 +02:00
OzzieIsaacs
6b71e77436 Merge remote-tracking branch 'Download/feature/download-icon-20170410' 2017-07-08 09:35:09 +02:00
Jonathan Rehm
623f5c8ef0 Add "magic link" functionality
When using a device that is bothersome to log in on (e.g. a Kindle) you can use a magic link to log in via another device.

Configuration was added and is disabled by default.
2017-07-07 18:29:16 -07:00
Jonathan Rehm
b138c9edd5 Show read/unread counts 2017-07-06 22:33:57 -07:00
Jonathan Rehm
7631eea32e Add sort options when viewing books
Default view still shows the most recently added books, but adds ability to sort by newest/oldest books and books sorted alphabetically (ascending & descending).

I did not include translations for the next text, but they are split up for easy translating and are otherwise ready for translating.
2017-07-06 21:14:45 -07:00
OzzieIsaacs
5276bda153 Merge remote-tracking branch 'button_padding/pad-buttons' 2017-07-06 20:31:25 +02:00
Jonathan Rehm
4fe1536b7e Simplify the read functionality's code
* Use block label to toggle the checkbox
* Submit form when checkbox's value changes (regardless of whether mouse is used or not)
* Remove unused code
2017-07-06 10:33:47 -07:00
Jonathan Rehm
d25300a7fb Add padding to bottom of buttons on shelf page
This adds some space between the buttons when viewing them on a mobile device.
2017-07-06 07:44:28 -07:00
OzzieIsaacs
752b813119 Added copyright for language names translations 2017-06-24 13:08:57 +02:00
OzzieIsaacs
0e8d5f158c Dutch translation included (#207) 2017-06-24 13:04:09 +02:00
Jonathan Rehm
7853cb2602 Add TinyMCE to provide rich-text editing for descriptions 2017-06-22 08:59:28 -07:00
OzzieIsaacs
4ea9df753e For failed logins the source ip-adress is logged now ( #201) 2017-06-07 18:08:15 +02:00
OzzieIsaacs
e6c6c26fd1 No error 500 if kindlegen is not excecutable 2017-05-25 09:30:20 +02:00
OzzieIsaacs
0a08a07193 Fixed Deleting user 2017-05-25 09:09:35 +02:00
OzzieIsaacs
7ab8a5877b read PDF/TXT without temporary files (#197) 2017-05-25 08:46:33 +02:00
OzzieIsaacs
1366b36c32 Added integer-field to supported custom colums 2017-05-25 08:20:19 +02:00
nanu-c
3acf80c42b remove debuggingtool 2017-05-22 23:06:55 +02:00
nanu-c
26f314d371 support int custom fields 2017-05-22 22:54:53 +02:00
OzzieIsaacs
5f4d839895 Better output messages for failed kindlegen conversions (fix #191) 2017-05-19 21:30:39 +02:00
OzzieIsaacs
38fa9ce206 At deleting a book, the book is also deleted from all Shelfs, Download list and read list (#192) 2017-05-19 20:36:58 +02:00
OzzieIsaacs
2b50dea304 Updated pdf.js to 1.7.225 (Fix #193) 2017-05-13 14:01:52 +02:00
OzzieIsaacs
a73372d71a Make kindlegen work again 2017-05-05 21:05:52 +02:00
OzzieIsaacs
6d597f96e5 Integrate Iso639 language name translations to russian translation 2017-05-01 16:24:20 +02:00
Pavel Korovin
a305b65299 Added Russian translation 2017-04-30 22:54:16 +03:00
Murat L
b6fccbd486 Added Google Books and Kobo links (#189)
* Added Google Books and Kobo links

* International link to google
2017-04-27 14:32:30 +01:00
Ozzie Isaacs
4259aa69df Get rid of shel=true again 2017-04-26 19:39:45 +01:00
Ozzie Isaacs
2d918bfb72 Fix for invalid db path 2017-04-26 19:21:40 +01:00
林檎
95f22aa4b5 add drop shadow to distinct the fixed area 2017-04-26 17:14:18 +08:00
林檎
f6076bc337 media tweak for better download placement 2017-04-26 17:14:18 +08:00
林檎
720c07b9ee remove empty style 2017-04-26 17:14:18 +08:00
林檎
45eeb6588a Change Download Style. 2017-04-26 17:14:18 +08:00
Ozzie Isaacs
b8fa748c49 Fix #187 on linux 2017-04-25 22:04:08 +01:00
Ozzie Isaacs
651961ac5e Fix #187 2017-04-25 20:07:54 +01:00
Matt Hazinski
6f7a240ce2 Ensure file paths in uploads are non-empty, fix #183 (#184)
* Ensure file paths in uploads are non-empty, fix #183

* Fix AttributeError in process(), handle strings of spaces
2017-04-23 07:22:10 +01:00
Ozzie Isaacs
ede8ae6742 Fix #182, #176 2017-04-21 20:44:17 +02:00
OzzieIsaacs
c80e517c28 Delete books prepared for deleting on doogle drive 2017-04-15 18:24:48 +02:00
OzzieIsaacs
195e581aef Missing file for deletion of books 2017-04-15 18:18:33 +02:00
OzzieIsaacs
7667da6e12 Books now really deleted from hard disk (#119) 2017-04-15 18:18:08 +02:00
OzzieIsaacs
2b8c29c535 Further fix delete books (#119) 2017-04-15 18:07:53 +02:00
OzzieIsaacs
9c679c8908 Delete books should now work (#119) 2017-04-15 11:35:05 +02:00
OzzieIsaacs
cd0d450829 Allow deleting books (fixes #119) 2017-04-14 20:29:11 +02:00
OzzieIsaacs
daaee5b67e remove unused variables 2017-04-14 19:16:39 +02:00
林檎
b51afe3ead Code Fix
Fix pagination logic.

_ is gettext , use __ as dummy variable instead of _

Need more test.

Test on following
http://localhost:8083/opds/new
http://localhost:8083/opds/new?offset=60
http://localhost:8083/opds/new?offset=120
2017-04-14 21:57:27 +08:00
OzzieIsaacs
7a07edaff4 Update polish translation 2017-04-14 09:42:15 +02:00
Radosław Kierznowski
3c3720aa0f Update polish translation (POT: 2017-04-11 22:51) 2017-04-12 14:27:57 +02:00
Radosław Kierznowski
ccf563023b Merge remote-tracking branch 'refs/remotes/janeczku/master' 2017-04-12 14:00:30 +02:00
林檎
622b1435f1 Fix #172 2017-04-06 22:50:05 +08:00
OzzieIsaacs
fb43110f1c Merge remote-tracking branch 'spanish_translation/master' 2017-04-04 19:07:20 +02:00
OzzieIsaacs
699bd036e8 Code cosmetics 2017-04-04 19:05:09 +02:00
Gonzalo Cao Cabeza de Vaca
286196fa1d Updated spanish translations 2017-04-04 15:10:54 +02:00
OzzieIsaacs
dc45b53b24 code cosmetics 2017-04-03 21:05:28 +02:00
OzzieIsaacs
8c7a8a954a Code cosmetics 2017-04-03 20:05:55 +02:00
OzzieIsaacs
d59be5faf4 Code cosmetics
Bugfix upload
2017-04-03 19:57:45 +02:00
OzzieIsaacs
ab534b21c1 Code cosmetics 2017-04-02 10:42:33 +02:00
OzzieIsaacs
7dd70db837 Code cosmetics 2017-04-02 10:27:37 +02:00
OzzieIsaacs
7c6d527a55 Code cosmetics 2017-04-02 10:05:07 +02:00
OzzieIsaacs
66181daf6d Merge remote-tracking branch 'custom-dbpath' 2017-04-02 08:45:47 +02:00
OzzieIsaacs
79d5bab4ba Code cosmetics 2017-03-31 18:41:05 +02:00
OzzieIsaacs
5044b78b08 Code cosmetics 2017-03-31 18:31:16 +02:00
OzzieIsaacs
00462237fe Merge remote-tracking branch 'chinese_translation/master' 2017-03-31 16:52:25 +02:00
OzzieIsaacs
986f40b80a Code cosmetics 2017-03-30 21:17:18 +02:00
OzzieIsaacs
78067b87bc Code cosmetics 2017-03-29 21:43:55 +02:00
OzzieIsaacs
395c6679b7 Fix #163 2017-03-29 20:59:37 +02:00
林檎
ebb3acecca Fix Download Bug. 2017-03-29 12:59:20 +08:00