summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/pdf
Commit message (Collapse)AuthorAgeFilesLines
* Remove pdf.js deprecation warningssh-remove-pdfjs-deprecationsStan Hu2019-07-302-3/+3
| | | | | | | | 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.
* Merge branch 'sh-add-cmaps-for-pdfjs' into 'master'Mike Greiling2019-07-291-1/+5
|\ | | | | | | | | | | | | Make pdf.js render CJK characters Closes #62152 See merge request gitlab-org/gitlab-ce!31220
| * Make pdf.js render CJK characterssh-add-cmaps-for-pdfjsStan Hu2019-07-281-1/+5
| | | | | | | | | | | | | | | | 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
* | Simplify pdf.js logicsh-fix-pdfjs-page-orderingLukas Eipert2019-07-292-15/+11
| | | | | | | | | | Instead of complicated splicing, we can simply return all pages. Promise.all will take care of the correct ordering for us.
* | Fix pdf.js rendering pages in the wrong orderStan Hu2019-07-291-1/+7
|/ | | | | | | | | 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
* Move to pdf.js distributed with npmleipert-move-pdf-jsLukas Eipert2019-05-101-2/+2
| | | | | | 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).
* fix: changed PDFJS prop to GlobalWorkerOptionsNatalia Tepluhina2019-03-131-1/+1
|
* Prettify all the thingsMike Greiling2018-11-202-9/+2
|
* Prettify additional modules (I through Z)Mike Greiling2018-10-162-101/+105
|
* Updates eslint vue plugin versionFilipa Lacerda2018-06-112-3/+3
|
* [ci skip] Fix more eslint rulesFilipa Lacerda2018-01-061-15/+17
|
* [ci skip] Fix more rulesFilipa Lacerda2018-01-051-9/+13
|
* Re-arrange <script> tags before <template> tags in .vue files3612-update-script-template-order-in-vue-filesEric Eastwood2017-10-032-17/+17
| | | | Fix https://gitlab.com/gitlab-org/gitlab-ce/issues/38743
* Fix issues with pdf-js dependenciesMike Greiling2017-08-071-2/+2
|
* Move PDFLab into GitLabpdflab-in-repoSam Rose2017-04-283-0/+141