Dan Stillman
c867b3bb85
Fix WebSocket reconnect delay
...
Only reset delay generator after regular message, not on connect,
because a subscription failure happens after a connect. Also cancel
reconnect if auto-sync is disabled during the failure delay.
2017-07-02 01:44:22 -04:00
Dan Stillman
2efd7121b8
Only skip retry for WebSocket errors between 4400 and 4499
2017-07-02 01:32:47 -04:00
Dan Stillman
72feaab6f4
Update locales from Transifex
2017-07-01 07:07:31 -04:00
Dan Stillman
dc89cfb3ba
Clean up Sync -> Reset pane
...
- Hide radio buttons for now, since there's only one option in each
section
- Tweak text for file sync history reset
2017-07-01 06:58:56 -04:00
Dan Stillman
88088c68db
Add Sync.Storage.Local.updateSyncStates()
...
This speeds up updating of sync states, particularly after resetting
file sync history.
2017-07-01 06:31:46 -04:00
Dan Stillman
b72f1c2a08
Don't calculate total file size for every uploaded attachment
...
This required checking the file size of every file (including auxiliary
snapshot files) in every attachment to be uploaded, and it was an
estimate anyway, because snapshots are compressed, so we kept track of
the compression ratio, but there was no particular reason to think later
files would have the same ratio... In any case, we're not currently
displaying file sync progress in 5.0 anyway, and while we should, we can
probably just show a count of attachments remaining.
2017-07-01 06:31:46 -04:00
Dan Stillman
9a3ff2d244
Add .contentType and .charset options for importFromFile()
...
And use them in new importTextAttachment() and importHTMLAttachment()
test support functions. These can be used to avoid needing a hidden
browser for determining the character set of the imported text
documents.
2017-07-01 06:31:46 -04:00
Dan Stillman
b1fad5a310
Automatically run JS build process before tests if not running
2017-07-01 06:31:46 -04:00
Dan Stillman
b633038bf9
Close directory iterator in Attachments.hasMultipleFiles()
...
This was leaving a file descriptor to the directory open during file
syncing.
2017-06-30 18:08:46 -04:00
Dan Stillman
22eab3e09d
Don't leave file descriptor open in md5Async()
...
This could cause "Too many open files" errors during file syncing
2017-06-30 17:54:33 -04:00
Dan Stillman
536d7254fb
Detect full disk during data migration on Windows (hopefully)
2017-06-30 16:59:33 -04:00
Dan Stillman
010bf3b8f9
Fix "not a directory" file sync error
2017-06-30 16:59:17 -04:00
Dan Stillman
16b2e82f74
Update non-English strings
2017-06-29 04:11:22 -04:00
Dan Stillman
aca774e132
Move connector install option to Tools menu
...
And rename from "Install Browser Connectors…" to "Install Browser Connector"
2017-06-29 04:08:32 -04:00
Dan Stillman
2119b5ab75
Update non-English strings
2017-06-27 16:26:48 -04:00
Dan Stillman
f6ac1732f2
"Install Browser Extensions" -> "Install Browser Connectors"
...
And change link from /extensions to /download/connectors
2017-06-27 16:26:13 -04:00
Dan Stillman
a56af4a101
Merge new English string
2017-06-27 01:10:27 -04:00
Dan Stillman
9b54ca9ca7
Show error and doc prefs if style can't be found or retrieved
...
Previously a 404 downloading the file would prevent opening the doc
prefs window.
2017-06-27 01:09:01 -04:00
Dan Stillman
a15261b3b3
Don't enforce Host header in translation server
...
Fixes #1251
Fixes zotero/translation-server#48
2017-06-26 19:04:24 -04:00
Dan Stillman
b2eea914e4
Update locales from Transifex
2017-06-26 19:00:08 -04:00
Dan Stillman
1d564970dc
Add "Install Browser Extensions…" menu option
2017-06-26 18:49:31 -04:00
Dan Stillman
9372979fb5
Allow Zotero.Server requests with Host: localhost
...
Previously only Host: 127.0.0.1 was allowed. (The check prevents a DNS
rebinding attack.)
This allows requests to translation-server using localhost
(zotero/translation-server#48).
Fixes #125
2017-06-26 07:52:23 -04:00
Dan Stillman
df2216960b
Fix permissions errors in child translators in translation-server
2017-06-26 07:21:18 -04:00
Adomas Venčkauskas
2414ec6472
Fix a debug log line
2017-06-26 09:49:41 +03:00
Dan Stillman
56f9f04340
Partial fix for CSL JSON export in translation-server
...
Zotero.Item doesn't exist in translation-server
Addresses zotero/translation-server#12
2017-06-25 04:38:50 -04:00
Dan Stillman
e9a80cb530
Fix JS compiling in watch mode
2017-06-24 19:24:52 -04:00
Dan Stillman
145a45e8e1
Support false
as deprecated translate() argument
2017-06-24 19:24:29 -04:00
Dan Stillman
8f63a5e20d
Check for Zotero.Prefs.getAsync() explicitly, not with isConnector
...
translation-server doesn't have Zotero.Prefs.getAsync() and isn't a
connector
2017-06-24 19:23:02 -04:00
Dan Stillman
5aaefff1d6
Update submodules
2017-06-24 01:25:32 -04:00
Dan Stillman
2ab46d3697
Update citeproc-js to 1.1.171
2017-06-24 01:24:11 -04:00
Dan Stillman
d8f8d8a3f8
Fix infinite loop restoring from trash if item has itself as relation
2017-06-24 01:23:39 -04:00
Dan Stillman
e89778c1ab
Remove some code that's unnecessary now that we're Fx52+ everywhere
2017-06-23 05:03:11 -04:00
Dan Stillman
ef1715e9ee
Fix "Generate Report from Collection" when sorting by creator or date
2017-06-22 05:48:11 -04:00
Dan Stillman
92435f398d
"A new database file has been created" -> "A new database has been created"
2017-06-21 17:03:38 -04:00
Dan Stillman
79b98ddc54
Tweak incompatible-DB error text
2017-06-21 17:02:01 -04:00
Dan Stillman
f2cc2204c9
Fix for some child items not showing up
...
https://forums.zotero.org/discussion/66140/5-0-beta-missing-item-attachments
2017-06-21 06:50:35 -04:00
Dan Stillman
e8257813f1
Update Travis to Firefox 54.0 and 52.0.3
...
Windows uses 52.2.0esr, but we need an unbranded build, and there don't
seem to be unbranded builds of the ESR.
2017-06-21 01:23:28 -04:00
Dan Stillman
d2400de870
Add build/ directory to Travis cache
2017-06-21 01:23:10 -04:00
Dan Stillman
38652f9362
Merge new English strings
2017-06-20 23:12:15 -04:00
Dan Stillman
abf08deb9d
Update broken string in ancient-database dialog
2017-06-20 22:54:05 -04:00
Tom Najdek
b53fabbb58
Better build process ( #1248 )
...
* Remove gulp, replace with custom scripts
* Symlink entire dirs where possible (fixes #1232 )
* Significantly speed up subsequent builds (fixes #1238 )
* Watch process now observes new/removed files, not only changed
* Add ignoreMask, exclude all files with names starting with a #
* Better logging during builds
* Update travis.yml to use new, non-gulp-based build
2017-06-20 19:18:46 -04:00
Dan Stillman
3259b63081
Fix error from f3b461ae1d
when no duplicate items found
2017-06-20 05:58:12 -04:00
Dan Stillman
041f79379c
Fix getAsync() integer warning when highlighting item collections
2017-06-20 05:48:38 -04:00
Dan Stillman
f3b461ae1d
Don't use DB transaction when loading Duplicates Items
...
This should help avoid some timeouts when clicking into that view.
2017-06-20 05:48:38 -04:00
Dan Stillman
a2d874c8bc
Don't schedule feed checks during tests
...
Tests create lots of fake feeds with invalid URLs, so auto-updating
would otherwise hang and block the explicit feed updates done by other
tests.
2017-06-20 05:48:38 -04:00
Dan Stillman
c11f1069d7
Add -e flag to runtests.sh to stop tests after a given file
...
This is useful when trying to debug an error that only happens after a
number of other tests have run -- specify -e and run tests from either
an earlier file with -s or from the beginning.
2017-06-20 05:48:38 -04:00
Adomas Venčkauskas
dcfddac519
Refactor Connector.callMethod calls to use the promisified form
2017-06-19 14:58:59 +03:00
Dan Stillman
7c020da594
Don't run feeds update until after schema update promise
...
And tweak feed scheduling in general
2017-06-19 01:25:03 -04:00
Dan Stillman
1372949523
Don't initialize DB backup idle observer until after schema init
2017-06-19 00:49:34 -04:00
Dan Stillman
b590c43edb
Disable reset translators/styles buttons while in progress
...
We should have a better progress notification, but this is better than
nothing.
2017-06-19 00:43:24 -04:00