From 6a8dc1efe964b0f1a49595d6015e5b62bc0d8de2 Mon Sep 17 00:00:00 2001 From: Pirate Praveen Date: Mon, 7 Dec 2020 01:51:00 +0530 Subject: [PATCH 1/7] Use packaged version of pdfjs-dist and adapt for worker-loader 3 api --- debian/control | 1 + .../patches/0740-use-packaged-modules.patch | 14 +++++++++-- debian/patches/0790-worker-loader-3.patch | 24 +++++++++++++++++++ debian/patches/series | 1 + 4 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 debian/patches/0790-worker-loader-3.patch diff --git a/debian/control b/debian/control index 3b4c253f28..7dec42c39a 100644 --- a/debian/control +++ b/debian/control @@ -392,6 +392,7 @@ Depends: ${shlibs:Depends}, ${misc:Depends}, node-lodash (>= 4.17.15~), node-marked (>= 0.3~), node-mousetrap, + node-pdfjs-dist, # Include node-pikaday only after @gitlab/ui is accepted # node-pikaday, node-popper.js, diff --git a/debian/patches/0740-use-packaged-modules.patch b/debian/patches/0740-use-packaged-modules.patch index ee4c37508a..2916a7d735 100644 --- a/debian/patches/0740-use-packaged-modules.patch +++ b/debian/patches/0740-use-packaged-modules.patch @@ -121,7 +121,7 @@ Use debian packaged node modules when available "diff": "^3.4.0", "document-register-element": "1.14.3", "dompurify": "^2.0.11", -@@ -85,81 +62,55 @@ +@@ -85,81 +62,54 @@ "editorconfig": "^0.15.3", "emoji-regex": "^7.0.3", "emoji-unicode-version": "^0.2.1", @@ -160,7 +160,7 @@ Use debian packaged node modules when available "monaco-editor-webpack-plugin": "^1.9.0", "monaco-yaml": "^2.4.1", - "mousetrap": "1.6.5", - "pdfjs-dist": "^2.0.943", +- "pdfjs-dist": "^2.0.943", "pikaday": "^1.8.0", - "popper.js": "^1.16.1", - "prismjs": "^1.21.0", @@ -222,3 +222,13 @@ Use debian packaged node modules when available // See: https://gitlab.com/gitlab-org/gitlab/-/issues/229146 '@babel/plugin-transform-arrow-functions', 'lodash', +--- a/app/assets/javascripts/pdf/index.vue ++++ b/app/assets/javascripts/pdf/index.vue +@@ -1,6 +1,6 @@ +