Brian Gough
4ab0f00b8d
do not render offscreen pdf pages yet
...
they cause a delay without a visible spinner
2015-01-21 14:37:59 +00:00
Henry Oswald
535d4435bf
added missing err check
2015-01-21 12:31:06 +00:00
Henry Oswald
704bf53fe5
Write docs to do collection and project collection
...
- docs are written to project collection then doc collection
- deletes used to insert into doc collection, now its the same upsert
with deleted = true
- does not set delted = false for new docs as it is not needed, save space
- changed delete to be seperate update on mongo
2015-01-21 11:52:39 +00:00
Brian
f510c5d19f
render current page immediately
2015-01-20 21:33:49 +00:00
Brian
62d5916883
replace $timeout by setTimeout in pdf viewer update
2015-01-20 21:06:53 +00:00
Brian
ed6eedd9e2
remove unused functions in pdfRenderer
2015-01-20 20:36:43 +00:00
Brian
c8012dc22c
fix getVisiblePages in pdf viewer to allow optimisation
2015-01-20 20:35:29 +00:00
Brian Gough
debc3037ae
remove debugging from pdf viewer
2015-01-20 16:22:34 +00:00
Brian Gough
441bc63935
use setTimeout instead of $timeout in pdf scrollhandler
2015-01-20 16:20:38 +00:00
Brian Gough
591498a056
fix dom position calculation in pdf viewer
2015-01-20 16:20:19 +00:00
Henry Oswald
883a7329f1
Merge branch 'master' of https://github.com/sharelatex/docstore-sharelatex
2015-01-20 15:56:47 +00:00
Brian
53e9086094
remove useless scope.$apply in pdf scrollhandler
2015-01-20 15:37:11 +00:00
Brian
721843695b
avoid using jquery in pdf scrollhandler to improve peformance
2015-01-20 15:36:52 +00:00
Henry Oswald
b3d653f930
added grep for tests
2015-01-20 15:25:35 +00:00
Brian Gough
96af4e0b4a
fix selection of prerender pages in pdf viewer
2015-01-20 14:28:43 +00:00
Brian Gough
f18f862be2
handle different page size in pdf viewer
2015-01-20 14:28:14 +00:00
Henry Oswald
28990d5a39
changed logging to easier to see when the http request starts
2015-01-20 13:46:57 +00:00
Brian Gough
c9e019b4a7
clean up calculation of visible pdf pages and display on redraw
2015-01-20 11:06:40 +00:00
metbosch
43d723bcfb
Allowed scroll on binary-file container
...
Set overflow in auto mode to allow large images.
2015-01-19 23:34:49 +01:00
Henry Oswald
90bb12db40
added state to payment form
2015-01-19 20:27:01 +00:00
Brian Gough
776535f9f3
move pdf page visibility calculation up into pdfViewer directive
...
removes per-page watch for visibility
2015-01-19 16:55:44 +00:00
Henry Oswald
208dfea5c8
pull right the total prices on the payment page
2015-01-19 15:35:05 +00:00
Brian Gough
2e021b64d8
remove per-page $watch on default page size in pdf viewer
2015-01-19 14:36:20 +00:00
Brian Gough
906c9114cd
replace per-page pdf highlight $watch with highlight event
2015-01-19 14:26:14 +00:00
Brian Gough
adab8c6769
delay pdf spinner by 100ms
2015-01-19 14:24:52 +00:00
Henry Oswald
00810eaf21
Merge branch 'recurlyv3'
2015-01-19 13:51:02 +00:00
Henry Oswald
08000f647d
Merge branch 'master' of https://github.com/sharelatex/web-sharelatex
2015-01-19 10:49:45 +00:00
Henry Oswald
17fe30ca0f
sanitise the ref for universities site. and remove unneeded sanitise
2015-01-19 10:49:40 +00:00
Brian
06330e6506
add pdfng scroll handler using requestAnimationFrame
2015-01-16 15:51:22 +00:00
Brian Gough
4e31833131
Merge pull request #138 from sharelatex/pdfng-use-browser-fonts
...
use font-face for pdfjs rendering
2015-01-16 14:31:37 +00:00
Brian Gough
e9366aa88a
Merge pull request #137 from sharelatex/fix-pdfng-progress-bar
...
Fix pdfng progress bar
2015-01-16 14:31:05 +00:00
Brian Gough
751166d987
Merge branch 'master' into fix-pdfng-progress-bar
...
Conflicts:
public/coffee/ide/pdfng/directives/pdfRenderer.coffee
public/coffee/ide/pdfng/directives/pdfViewer.coffee
2015-01-16 14:19:59 +00:00
Brian Gough
df9cb03dcc
Merge pull request #134 from sharelatex/pdfng-reload-on-error
...
Pdfng reload on error
2015-01-16 14:18:17 +00:00
Brian Gough
d832406923
pdfng: add comment about getDestinations vs getDestination
2015-01-16 12:50:08 +00:00
Xavier Trochu
4b54372466
miscellaneous cleanup
...
_ Remove some references to scribtex
_ Fix some issue when templates are unavailable
2015-01-16 11:04:15 +01:00
Winston Li
682a7e93ad
Added stack trace print.
2015-01-15 23:03:12 +00:00
Winston Li
70808b14b5
Added try-catch-finally block for remaining instances of lock releasing.
2015-01-15 23:00:32 +00:00
Henry Oswald
a0f5c09cb9
remove raven source map line
2015-01-15 15:22:45 +00:00
Henry Oswald
f2bc98bc3c
Change debuging to stringify messages in exception message
2015-01-15 15:18:15 +00:00
Henry Oswald
f33d9956f9
added minimum memory requirements
2015-01-15 12:30:42 +00:00
Brian Gough
157424c7b6
use font-face for pdfjs rendering
2015-01-13 16:39:49 +00:00
Brian Gough
8d568d9663
increase pdfng page load/render timeouts to 1 minute
2015-01-13 16:38:40 +00:00
Brian Gough
5e06043fcb
add loadedCallback to pdfng, detects when pdf is fully loaded
2015-01-13 16:28:24 +00:00
Brian Gough
953821959d
hide progress bar when pdfng has loaded
2015-01-13 16:27:04 +00:00
Brian Gough
1d3d316595
capture all pdfng error callbacks with raven
2015-01-13 15:47:27 +00:00
Brian Gough
823bdcf583
fix scope error in pdf viewer
2015-01-12 17:03:03 +00:00
Brian Gough
887423f8d7
report timeout errors to sentry
2015-01-12 17:02:51 +00:00
Brian Gough
560919b78f
avoid exception in pdf viewer
...
if file was previously bigger, current position could be greater than
the number of pages
2015-01-12 16:47:38 +00:00
Brian Gough
bf8bc27de0
catch errors in pdf viewer and reload if necessary
...
if more than 3 reloads, display error to the user
2015-01-12 16:46:17 +00:00
Brian Gough
7f750ae692
add an error callback to the pdf renderer
...
use page load and render timeouts of 30 seconds to detect hanging pages
2015-01-12 16:45:24 +00:00