Commit Graph

24821 Commits

Author SHA1 Message Date
Kovid Goyal 834b3217f4 Workaround for WebKit bug in layout of transformed images on window resize 2015-11-10 23:24:43 +05:30
Kovid Goyal d23f731c0c Let the browser handle resizing of the cover grid
Since we are depending on modern browsers in any case, we can use
viewport size based units
2015-11-10 18:11:59 +05:30
Kovid Goyal 29bf9b022d Start work on button to fetch more books 2015-11-10 17:36:14 +05:30
Kovid Goyal 07c9d1bb58 ... 2015-11-10 17:35:18 +05:30
Kovid Goyal ffe9bf4c1e Separate new ajax endpoints from legacy ajax endpoints 2015-11-10 17:35:01 +05:30
Kovid Goyal b3fd7e6409 Basic code for modals 2015-11-10 17:33:34 +05:30
Kovid Goyal 0d6178f129 Edit Book: Change the suggested prefix for bulk renaming of files depending on the type of files being renamed. Fixes #1514468 [Bulk renaming of non-Text files in the editor](https://bugs.launchpad.net/calibre/+bug/1514468)
Minor changes to the commit that actually implemented this
functionality:

1) List categories in only one place

2) Allow user to rename across categories -- although I can think
   of no good reason for this, I don't want to place an unnecessary
   restriction on the functionality.
2015-11-10 09:14:50 +05:30
Eli Schwartz b1b9a0020c Editor: Fix bulk renaming of non-Text files.
Do not allow bulk renaming of different categories of files.
Set the default prefix according to the category of file.
2015-11-10 08:46:18 +05:30
Kovid Goyal d1a1706dff Edit Book: When insert an image into the current document, add a button to paste the image from the clipboard 2015-11-09 16:41:12 +05:30
Kovid Goyal a0c0a3ffbb ... 2015-11-09 15:09:13 +05:30
Kovid Goyal 2b7cef952b Do not use curses to get terminal size
libncursesw.so is very difficult to bundle in the binary build and there
are now two major versions of it in use so.5 and so.6

So instead use an IOCTL directly. Should be faster as well :)
2015-11-09 14:37:50 +05:30
Kovid Goyal 899d358e5c Zoom in instead of out on :active to prevent mouseup in areas close to border from being lost 2015-11-07 15:52:45 +05:30
Kovid Goyal a45645c32a Disable selection in the cover grid 2015-11-07 15:37:51 +05:30
Kovid Goyal 02170b067f Dont use zoom for hover on top bar buttons as it makes it ignore clicks if the mouse is close to the border 2015-11-07 15:36:11 +05:30
Kovid Goyal b54dfb6db6 ... 2015-11-07 15:19:31 +05:30
Kovid Goyal f14f6babb9 DRYer 2015-11-07 15:03:27 +05:30
Kovid Goyal 8f0dd0f714 A button widget 2015-11-07 14:08:06 +05:30
Kovid Goyal 1a826d6625 Fix device views state not being saved when device is ejected/disconnected 2015-11-07 10:39:45 +05:30
Kovid Goyal 620262d6b8 Use shorter encoding of UUID when using UUID as id 2015-11-06 22:41:54 +05:30
Kovid Goyal 5935c435ea A module to generate shorter UUID encodings 2015-11-06 22:02:38 +05:30
Kovid Goyal 66c4618556 Fix #1513849 [Edit E-Book will not save after editing if original file is not in its directory.](https://bugs.launchpad.net/calibre/+bug/1513849) 2015-11-06 20:25:24 +05:30
Kovid Goyal 2f8c415f49 Use new spinner for cover downloads in the edit metadata dialog as well 2015-11-06 14:19:06 +05:30
Kovid Goyal 9e231f9e32 On Linux, use the system tray icon from the system theme, if available
Merge branch 'master' of https://github.com/Arkq/calibre
2015-11-06 12:50:56 +05:30
Arkadiusz Bokowy ad9dd159b0 Load system tray icon from the current theme
Loading the tray icon from the theme allows the user to customize the
desktop in greater extent. If the icon is not present in the icon set,
then the bundled one is loaded, so the previous behavior is preserved.
The themed icon name is consistent with the application name -
calibre-gui.
2015-11-06 07:53:57 +01:00
Kovid Goyal 5d4628a993 ... 2015-11-06 10:12:04 +05:30
Kovid Goyal 47334ca59b version 2.43.0 2015-11-06 09:14:02 +05:30
Kovid Goyal 145523e08a CLI to manage user accounts for the new server 2015-11-05 18:45:25 +05:30
Kovid Goyal 44ebdeb176 ... 2015-11-05 14:20:07 +05:30
Kovid Goyal b53305c316 Tag mapper: Add rule types to upper-case, lower-case or capitalize tags 2015-11-05 13:52:38 +05:30
Kovid Goyal 5a488dc7fd Preserve order when tag rule replacement contains multiple tags 2015-11-05 13:15:55 +05:30
Kovid Goyal c9d4221e68 ... 2015-11-05 13:13:02 +05:30
Kovid Goyal 3378bf6af4 Tag mapper: Special case case-change rules for performance. See #1513330 (Freezes loading books) 2015-11-05 13:06:48 +05:30
Kovid Goyal 08f6eb1c1f More work on the authentication infrastructure 2015-11-05 12:01:16 +05:30
Kovid Goyal bdab1296a5 Tag mapper: Prevent cycles in the replacement rules from causing the tag mapper to hang 2015-11-05 11:57:51 +05:30
Kovid Goyal 8832143e14 Amazon metadata download: Fix for website change at amazon.com that prevented ratings from being downloaded. Fixes #1513318 [ratings dont download](https://bugs.launchpad.net/calibre/+bug/1513318) 2015-11-05 11:32:17 +05:30
Kovid Goyal b24d9ef07a More places where SHGetFolder could fail 2015-11-04 21:51:45 +05:30
Kovid Goyal 2d71675fe1 Handle SHGetFolder failing to return home directory on windows 2015-11-04 21:38:00 +05:30
Kovid Goyal 7459e67a2a Get rid of bleach
html5lib's sanitizer actually turns out to be good enough for our
use case.
2015-11-04 20:30:35 +05:30
Kovid Goyal dbb4092b35 Fix a couple of things I forgot to merge from upstream html5lib 2015-11-04 20:24:57 +05:30
Kovid Goyal 424a430d15 Add basic user management to the server
This code is mostly just a stub, will need to be fleshed out later.
2015-11-04 19:53:01 +05:30
Kovid Goyal 08fa7a72c1 Store session defaults centrally 2015-11-04 15:53:56 +05:30
Kovid Goyal 4476e0f0ce ... 2015-11-04 15:06:17 +05:30
Kovid Goyal 919de5f28c ... 2015-11-04 15:05:28 +05:30
Kovid Goyal e2bfb32dc9 Switch to using localStorage instead of cookies for sessions 2015-11-04 14:59:04 +05:30
Kovid Goyal 84047474b6 Nicer icon for smart comment 2015-11-04 10:21:52 +05:30
Kovid Goyal 1bb87b7677 Edit Book: Add a "Smart Comment" tool to easily comment/uncomment text
Press Ctrl+` to trigger the tool, or add the tool to your toolbar via
Preferences->Toolbar->Tools for all editors

It will either insert comments around the selected text or uncomment an
existing comment if the cursor is inside one.
2015-11-04 10:16:52 +05:30
Kovid Goyal 4d6eaedfb4 Add build test for bleach 2015-11-03 11:27:47 +05:30
Kovid Goyal 5cbd9ef5da Better error message when URL parsing fails 2015-11-03 11:25:46 +05:30
Kovid Goyal 182d9b0d40 Do not use the deprecated safe_mode of markdown
Instead use the Bleach library. Include a bundled copy of bleach because
of: https://github.com/mozilla/bleach/pull/175
2015-11-03 11:16:47 +05:30
Kovid Goyal 892571a180 Merge in changes from upstream html5lib 2015-11-03 10:41:47 +05:30