35427 Commits

Author SHA1 Message Date
Kovid Goyal
6a0a4811a2
Use a single iframe for all comments columns 2017-05-21 13:39:38 +05:30
Kovid Goyal
daf89ef4bc
Fix clickin on thje details part of books list items not working 2017-05-21 13:39:37 +05:30
Kovid Goyal
f502da812a
Sandbox comments HTML 2017-05-21 13:39:37 +05:30
Kovid Goyal
a50a2c7cca
Be more explicit about setting innerHTML 2017-05-21 13:39:37 +05:30
Kovid Goyal
7a4ddafb9b
Remove u regex flag as it is not supported by dukpy 2017-05-21 13:39:37 +05:30
Kovid Goyal
8fe05d1e6c
Escape markup when using innerHTML 2017-05-21 13:39:37 +05:30
Kovid Goyal
c651219654
Utility function to sanitize simple inline HTML markup 2017-05-21 13:39:37 +05:30
Charles Haley
1aa59276bd
Store and access user template functions on a per-library basis. This is used when the DB evaluates composites, avoiding using the global copy.
The ability to pre-compile templates was removed because the one-true list of available functions is known only at execution time. The compiled copy depended on the global state being accurate. And in any event, I was never totally convinced that the compiled version was significantly faster than the pre-lexed version.

Includes a bug fix: the booklist must be refreshed if a user-defined function changed.
2017-05-21 13:39:37 +05:30
Kovid Goyal
c77ffc6075
Nicer button box for popup modals 2017-05-21 13:39:37 +05:30
Kovid Goyal
04d4cb923c
Fix library names becoming full paths when user is logged in 2017-05-21 13:39:37 +05:30
Kovid Goyal
f1d24fc349
... 2017-05-21 13:39:37 +05:30
Kovid Goyal
c5de98a8b1
calibre-server.exe: If no libraries are specified, use all the libraries known to the GUI 2017-05-21 13:39:36 +05:30
Kovid Goyal
0bddbb67ad
Allow running calibre in debug mode via an environment variable 2017-05-21 13:39:36 +05:30
Kovid Goyal
ea39c2f7e6
Fix failing tests that compare olddb to newdb results 2017-05-21 13:39:36 +05:30
Kovid Goyal
bd000c52f4
Refactor SavedSearchQueries to use the new db API 2017-05-21 13:39:36 +05:30
Kovid Goyal
abcf435b2b
Reset the file cache when starting the embedded server prevents the memory cache from going out of sync with the file system cache on server restart 2017-05-21 13:39:36 +05:30
Kovid Goyal
795cb3e8a8
Ensure book list is either scrolled to a book or the top 2017-05-21 13:39:36 +05:30
Kovid Goyal
623651d84b
Fix caching of parsed URL queries broken
Ensure that changes to query objects dont make it into
the cache
2017-05-21 13:39:36 +05:30
Kovid Goyal
03e9fe6195
Show a message when no books found 2017-05-21 13:39:36 +05:30
Kovid Goyal
12c8f8f29c
Fix library restriction not fully case-insensitive 2017-05-21 13:39:36 +05:30
Kovid Goyal
fd9b16ece2
Better error message for network errors on AJAX queries 2017-05-21 13:39:36 +05:30
Kovid Goyal
900841e13a
Ensure that no duplicates are present in the list of libraries on case-insensitive filesystems 2017-05-21 13:39:35 +05:30
Kovid Goyal
9cc3571808
... 2017-05-21 13:39:35 +05:30
Kovid Goyal
e2cf4642cc
bump beta version 2017-05-21 13:39:35 +05:30
Kovid Goyal
407d392445
Clean up pdfinfo output processing 2017-05-21 13:39:35 +05:30
Kovid Goyal
0ab03e4485
Use -siodates with pdfinfo as it generates non UTF-8 date strings on some windows locales otherwise 2017-05-21 13:39:35 +05:30
Kovid Goyal
6eb8526c3d
Remove no longer needed Qt version check 2017-05-21 13:39:35 +05:30
Kovid Goyal
c91e321f42
Workaround for Qt 5.6 bug on windows that broke exporting QPixmap to PNG 2017-05-21 13:39:35 +05:30
Kovid Goyal
f2cf7eb825
Bump beta version 2017-05-21 13:39:35 +05:30
Kovid Goyal
b5b7b9798a
forgot the file in my last commit 2017-05-21 13:39:35 +05:30
Kovid Goyal
cccd5e8f1a
Add a button to enter full screen mode to the viewer controls 2017-05-21 13:39:34 +05:30
Kovid Goyal
fdb98fdb4e
Ensure book details and book readers start with window scrolled to top 2017-05-21 13:39:34 +05:30
Kovid Goyal
67f95c3e1d
Fix swiping up/down in paged mode generating endless chapter changes 2017-05-21 13:39:34 +05:30
Kovid Goyal
0dfe97269c
... 2017-05-21 13:39:34 +05:30
Kovid Goyal
8743efbed1
Fix server not working on some windows systems with non-English locales 2017-05-21 13:39:34 +05:30
Kovid Goyal
2089449769
Update read percent on content load 2017-05-21 13:39:34 +05:30
Kovid Goyal
f3c371a254
Request full screen when opening a book for reading 2017-05-21 13:39:34 +05:30
Kovid Goyal
4974f3b7c0
Utility function to request full screen 2017-05-21 13:39:34 +05:30
Kovid Goyal
5ef974e782
... 2017-05-21 13:39:34 +05:30
Kovid Goyal
f92f70da44
Same work around for the search overlay in Chrome for Android 2017-05-21 13:39:34 +05:30
Kovid Goyal
de6e5ec8d6
Workaround for bug on Chrome on Android that made typing in the viewer preferences impossible
Chrome resizes the viewport when the on screen keyboard is opened. This
causes the overlay to be closed. Hopefully, it will be fixed soon.

See https://bugs.chromium.org/p/chromium/issues/detail?id=404315
2017-05-21 13:39:33 +05:30
Kovid Goyal
5b3d7c04cf
Handle Chrome changing window level touch even handlers to passive by default in newer releases 2017-05-21 13:39:33 +05:30
Kovid Goyal
5b2f202a2c
Dont show ids that have no urls in the book details view. Follows behavior of book details panel in the GUI 2017-05-21 13:39:33 +05:30
Kovid Goyal
edfbb3c7bc
Recognize http URLs in identifiers with arbitrary keys 2017-05-21 13:39:33 +05:30
Kovid Goyal
496b0ce0f9
Make the category links on the book details page middle-clickable 2017-05-21 13:39:33 +05:30
Kovid Goyal
d8dae7a7f2
... 2017-05-21 13:39:33 +05:30
Kovid Goyal
0f2d23ae3c
Cover grid: Auto-resizing of covers based on window size now takes window aspect ratio into account
The resizing algorithm ensures that at least three covers fit along the
smaller of the window width/height
2017-05-21 13:39:33 +05:30
Kovid Goyal
7a56b8e5b7
Make the covers on the home page take up no more than 40% of viewport height 2017-05-21 13:39:33 +05:30
Kovid Goyal
97d3c79275
Ensure button text is not wrapped 2017-05-21 13:39:33 +05:30
Kovid Goyal
739f595e3d
Fix list of library buttons not wrapping 2017-05-21 13:39:33 +05:30