J. Ryan Stinnett
eaa01901ef
Wire up new feed processor to Zotero's feed reader
...
This connects the new feed processor to Zotero's existing feed reader. The new
feed processor assumes a content window environment, so a sandbox in a parent
window is used to load it.
2021-06-16 20:59:57 +01:00
J. Ryan Stinnett
2bd4904ead
Add DOMParser-based XML reader
...
This adds a `DOMParser`-based XML reader which emits events like a SAX XML
reader for compatibility with the feed processor.
2021-06-16 20:59:57 +01:00
J. Ryan Stinnett
29ebaa5ec6
Assume fetch-based API for feed processsing
...
This converts the feed processor to expect a `fetch`-based API instead of an
XPCOM stream.
2021-06-16 20:59:57 +01:00
J. Ryan Stinnett
1d93296481
Convert feed processor to HTML attribute manipulation
...
This moves the feed processor away from custom XPCOM SAX attributes and over to
standard HTML attribute map APIs.
2021-06-16 20:59:57 +01:00
J. Ryan Stinnett
891ba599a6
Convert feed processor parsing to native DOM APIs
...
This uses native DOM APIs to create document fragments and parse content instead
of XPCOM utils.
2021-06-16 20:59:57 +01:00
J. Ryan Stinnett
b4303eaa45
Absorb feed processor types from interface
...
This moves the type constants into code, rather than pulling them from an XPCOM
interface.
2021-06-16 20:59:57 +01:00
J. Ryan Stinnett
a0694cd8fb
Convert feed processor type checks away from XPCOM
...
This converts the type checks for arrays and interfaces to use native JS
approaches instead of XPCOM.
2021-06-16 20:59:57 +01:00
J. Ryan Stinnett
a3e6f96289
Remove MIME type description feature from feed processor
...
This removes the feed processor's feature of converting enclosure MIME types to
a textual type description. This is not used by Zotero and removes an XPCOM
dependency.
2021-06-16 20:59:57 +01:00
J. Ryan Stinnett
af6029b854
Convert feed processor to native URLs
2021-06-16 20:59:57 +01:00
J. Ryan Stinnett
be80598c6b
Convert feed processor data away from XPCOM
...
This changes the feed processor XPCOM array and property bags to native arrays
and objects.
2021-06-16 20:59:57 +01:00
J. Ryan Stinnett
75eb8c51d4
Ignore feed processor *.idl files
2021-06-16 20:59:57 +01:00
J. Ryan Stinnett
bea3b3d3b2
Remove unimplemented registerExtensionPrefix API
2021-06-16 20:59:57 +01:00
J. Ryan Stinnett
9d0e1932dc
Convert feed processor structure away from XPCOM
...
This changes the various components to invoke each other directly as regular
objects without involving XPCOM.
2021-06-16 20:59:57 +01:00
J. Ryan Stinnett
e120ca7395
Align variable style in feed processor
...
This tweaks variable naming and related details to match Zotero conventions.
2021-06-16 20:59:57 +01:00
J. Ryan Stinnett
76873bda95
Approaching readable code in feed processor
...
This adjusts bracing style and other aesthetics to match Zotero conventions.
2021-06-16 20:59:57 +01:00
J. Ryan Stinnett
a210f1fbde
More style alignment for feed processor
2021-06-16 20:59:57 +01:00
J. Ryan Stinnett
088483b776
Fix lint issues in feedReader.js
2021-06-16 20:59:57 +01:00
J. Ryan Stinnett
bc4aafa8e4
Add feed reader tests for parsing behavior
...
This adds extra tests to check parsing behavior such as entities, tag handling,
CDATA, etc. This will help ensure the new feed processor matches the previous
behavior.
2021-06-16 20:59:57 +01:00
J. Ryan Stinnett
bb9b796efe
Tweak test runner to support more directories
...
This expands the test filtering in the test runner so that you can supply e.g.
`test/tests/feed*` from your shell in the `zotero` directory and correctly
filter to all feed-related tests.
2021-05-11 10:05:59 +01:00
J. Ryan Stinnett
71dc4e9bf9
Convert feed processor indentation to Zotero style
...
This adjust feed processor indentation to match Zotero conventions for tabs and
continuous indents in blocks.
2021-05-11 10:05:59 +01:00
J. Ryan Stinnett
48a6e90b4f
Initial import of feed processor
...
This imports Mozilla's feed processor which has been removed upstream as part of
Firefox 66. Some changes are likely needed before this will actually run in
Zotero.
2021-05-07 14:02:56 +01:00
Dan Stillman
65369ebb47
Merge pull request #1964 from tnajdek/1944-skip-scss-files-build-if-not-changed
...
Skip .scss files if build not required #1944
2021-05-03 12:11:41 -04:00
Dan Stillman
83a12bca89
Update locales from Transifex and merge new English strings
2021-04-30 07:34:01 -04:00
Dan Stillman
48d5ec240e
Mendeley import: Tweak intro text
2021-04-30 07:14:19 -04:00
Dan Stillman
3877563abe
Mendeley import: Clear cookies when closing OAuth window
2021-04-30 07:10:58 -04:00
Dan Stillman
911e1637f2
Update locales from Transifex and merge new English strings
2021-04-29 03:34:56 -04:00
Dan Stillman
cdef45d6c3
Merge branch 'mendeley-online-importer'
2021-04-29 00:48:08 -04:00
Dan Stillman
57fbe61f93
Use notifier queue during Mendeley import
...
This dramatically speeds up Mendeley imports by avoiding UI updates.
Regular imports in fileInterface have done this for a while, but the
Mendeley importer used a fake translation object that didn't use the
passed queue.
After this change, a 10,000-item import goes from 9m30s to 2m45s, a 71%
decrease.
2021-04-29 00:46:18 -04:00
Dan Stillman
bb75fcd784
Fix support link in encrypted Mendeley database message
...
It started being flattened at some point.
2021-04-29 00:46:18 -04:00
Dan Stillman
3032cc6a02
Increase default basicViewer height to 700
...
Though this is currently persisted, so it stops being relevant as soon
as one instance of the basic viewer is resized, which maybe we don't
want.
2021-04-29 00:45:52 -04:00
Dan Stillman
d35719d0e8
Mendeley online import tweaks
...
- Add "(online import)" and "(local import)" next to "Mendeley Referance
Manager" and "Mendeley Desktop", respectively
- Adjust size of OAuth window
- Use bound parameter instead of string literal for Fx78 compatibility
2021-04-29 00:45:23 -04:00
Tom Najdek
962222a5f5
Mendeley import: Import annotations from matching files in groups
...
All annotations in all groups are fetched and hashes are compared to
detect annotations created on the same file while it was in a group
library. Annotations created by other users are filtered out.
2021-04-29 00:40:44 -04:00
Tom Najdek
d4d2080a31
Mendeley online importer
2021-04-29 00:40:44 -04:00
Martynas Bagdonas
e55c0c3fc3
Merge pull request #2003 from mrtcode/display-report-images
...
Display embedded images in item reports
2021-04-28 13:43:23 +03:00
Martynas Bagdonas
8799de5284
Display embedded images in item reports
...
Fixes #2002
2021-04-28 13:05:43 +03:00
Martynas Bagdonas
65329dbf27
Improve popup actions when read-only or multiple annotations selected
...
Fixes #2046
2021-04-28 12:45:53 +03:00
Martynas Bagdonas
3c3c1ba88a
Add "Show in Library" option to PDF reader file menu #2032
2021-04-27 12:50:13 +03:00
Martynas Bagdonas
09125277ac
Focus note-editor faster
2021-04-27 11:01:23 +03:00
Martynas Bagdonas
0b219ed8a7
Prevent opening multiple PDFs in windows when shift isn't pressed
2021-04-26 22:49:52 +03:00
Martynas Bagdonas
e7eae06d8d
Optimize contextPane notes list rendering
2021-04-26 22:08:11 +03:00
Dan Stillman
76d8818bed
Don't count missing annotation values as changed if empty string passed
...
Similar to 0d377a1c4a
, this fixes an unnecessary annotation reload and
loss of unsaved typing on auto-sync immediately after an annotation is
created.
2021-04-26 03:49:59 -04:00
Dan Stillman
0d377a1c4a
Clear changed state of annotation after saving color change
...
This was resulting in an extra 'modify' event after each sync upload.
2021-04-24 19:49:08 -04:00
Dan Stillman
ea42789206
Avoid memory leaks from caching unique DB statements
...
Many DB statements that were being cached included embedded ids or temp
table names, so they would permanently use memory and never get reused.
During large imports, this could result in hundreds of megabytes of
extra memory usage.
This commit marks many more statements as `noCache`, adds `noCache`
support for column and value queries, adds a log line at DB shutdown in
source builds with the number of cached statements, and adds
Zotero.DB.getCachedStatements() for auditing of cached statements.
Addresses #1531
2021-04-22 02:53:29 -04:00
Dan Stillman
12045a7cf8
Add Zotero.isSourceBuild
...
This should be used sparingly, since it risks missing problems in
released builds.
2021-04-21 21:37:56 -04:00
Martynas Bagdonas
1eb888d026
Fix missing itemData
when creating a note from annotations
2021-04-21 16:55:44 +03:00
Martynas Bagdonas
3de7b6c5ec
Trim whitespace from highlights and comments when creating a note
2021-04-21 16:52:19 +03:00
Dan Stillman
6eed0876de
Update locales from Transifex and merge new English strings
2021-04-20 17:24:34 -04:00
Dan Stillman
78920f0aca
Missing string changes from 7065dacee
2021-04-20 16:32:42 -04:00
Dan Stillman
7065dacee8
Move About pane strings and URLs to ZOTERO_CONFIG
2021-04-19 18:30:21 -04:00
Dan Stillman
749e28dc1f
Fix alphabetical sorting of child attachments in new databases
...
Broken after global schema introduction
2021-04-18 01:44:39 -04:00