GitLab Bot
520f317866
Add latest changes from gitlab-org/gitlab@master
2020-08-20 15:10:18 +00:00
Stan Hu
c34138e09e
Remove pdf.js deprecation warnings
...
1. `page.getViewpoint()` now takes in JSON instead of an integer.
2. Promises are returned from loading and rendering tasks.
See https://mozilla.github.io/pdf.js/examples/index.html for more
details.
2019-07-30 06:52:56 -07:00
Mike Greiling
0a0b442f14
Merge branch 'sh-add-cmaps-for-pdfjs' into 'master'
...
Make pdf.js render CJK characters
Closes #62152
See merge request gitlab-org/gitlab-ce!31220
2019-07-29 18:56:06 +00:00
Lukas Eipert
5246626d2c
Simplify pdf.js logic
...
Instead of complicated splicing, we can simply return all pages.
Promise.all will take care of the correct ordering for us.
2019-07-29 18:04:00 +02:00
Stan Hu
6d3b203dd8
Fix pdf.js rendering pages in the wrong order
...
There was an implicit assumption that the pages returned from the
Promise of `pdf.getPage(num)` would return in order, but no such
guarantee exists. To handle this, we explicitly set which array index
based on the page number and then trigger a Vue update via `splice`.
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/64467
2019-07-29 17:33:53 +02:00
Stan Hu
cb3290a1a3
Make pdf.js render CJK characters
...
As mentioned in
https://github.com/wojtekmaj/react-pdf/blob/master/README.md ,
pdf.js needs the bundled cMaps files to work.
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/62152
2019-07-28 00:28:33 -07:00
Lukas Eipert
c2674c2d37
Move to pdf.js distributed with npm
...
pdf.js is available on npm. Importing the dependency from there instead
of vendoring it has certain benefits, e.g. the discoverability of
updates (especially security fixes).
2019-05-10 15:07:41 -05:00
Natalia Tepluhina
c89742b1be
fix: changed PDFJS prop to GlobalWorkerOptions
2019-03-13 13:55:42 +02:00
Mike Greiling
5b9495c5db
Prettify all the things
2018-11-20 09:30:01 -06:00
Mike Greiling
c559bcca03
Prettify additional modules (I through Z)
2018-10-16 13:01:19 -05:00
Filipa Lacerda
647a4d6a3b
Updates eslint vue plugin version
2018-06-11 15:36:54 +01:00
Filipa Lacerda
cbdbb64523
[ci skip] Fix more eslint rules
2018-01-06 19:03:01 +00:00
Filipa Lacerda
cdc4938834
[ci skip] Fix more rules
2018-01-05 00:45:32 +00:00
Eric Eastwood
b88f70606d
Re-arrange <script> tags before <template> tags in .vue files
...
Fix https://gitlab.com/gitlab-org/gitlab-ce/issues/38743
2017-10-03 19:12:53 -05:00
Mike Greiling
d935278055
Fix issues with pdf-js dependencies
2017-08-07 07:47:29 +00:00
Sam Rose
9f3985c613
Move PDFLab into GitLab
2017-04-28 12:52:36 -04:00