Skip to content

Commit

Permalink
Merge pull request #762 from nextcloud/automated/update-engines/default
Browse files Browse the repository at this point in the history
chore: update node engines to next LTS
  • Loading branch information
szaimen committed Jun 22, 2023
2 parents aaa3805 + 08ad832 commit 355ba3b
Show file tree
Hide file tree
Showing 89 changed files with 4,618 additions and 4,594 deletions.
1,658 changes: 829 additions & 829 deletions js/pdfjs/build/pdf.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/pdfjs/build/pdf.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/pdfjs/build/pdf.sandbox.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/pdfjs/build/pdf.sandbox.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/pdfjs/build/pdf.worker.js.map

Large diffs are not rendered by default.

Binary file modified js/pdfjs/web/cmaps/90ms-RKSJ-V.bcmap
Binary file not shown.
Binary file modified js/pdfjs/web/cmaps/Adobe-CNS1-UCS2.bcmap
Binary file not shown.
Binary file modified js/pdfjs/web/cmaps/Adobe-GB1-UCS2.bcmap
Binary file not shown.
Binary file modified js/pdfjs/web/cmaps/Adobe-Japan1-UCS2.bcmap
Binary file not shown.
Binary file modified js/pdfjs/web/cmaps/Adobe-Korea1-UCS2.bcmap
Binary file not shown.
Binary file modified js/pdfjs/web/cmaps/CNS-EUC-V.bcmap
Binary file not shown.
Binary file modified js/pdfjs/web/cmaps/GBK-EUC-H.bcmap
Binary file not shown.
Binary file modified js/pdfjs/web/cmaps/GBK2K-H.bcmap
Binary file not shown.
Binary file modified js/pdfjs/web/cmaps/GBKp-EUC-H.bcmap
Binary file not shown.
Binary file modified js/pdfjs/web/cmaps/GBT-H.bcmap
Binary file not shown.
Binary file modified js/pdfjs/web/cmaps/HKgccs-B5-H.bcmap
Binary file not shown.
Binary file modified js/pdfjs/web/cmaps/KSC-Johab-H.bcmap
Binary file not shown.
Binary file modified js/pdfjs/web/cmaps/Katakana.bcmap
Binary file not shown.
Binary file modified js/pdfjs/web/cmaps/UniCNS-UCS2-H.bcmap
Binary file not shown.
Binary file modified js/pdfjs/web/cmaps/UniCNS-UTF16-H.bcmap
Binary file not shown.
Binary file modified js/pdfjs/web/cmaps/UniCNS-UTF32-H.bcmap
Binary file not shown.
Binary file modified js/pdfjs/web/cmaps/UniCNS-UTF8-H.bcmap
Binary file not shown.
Binary file modified js/pdfjs/web/cmaps/UniGB-UCS2-H.bcmap
Binary file not shown.
Binary file modified js/pdfjs/web/cmaps/UniGB-UTF16-H.bcmap
Binary file not shown.
Binary file modified js/pdfjs/web/cmaps/UniGB-UTF32-H.bcmap
Binary file not shown.
Binary file modified js/pdfjs/web/cmaps/UniGB-UTF8-H.bcmap
Binary file not shown.
Binary file modified js/pdfjs/web/cmaps/UniJIS-UCS2-H.bcmap
Binary file not shown.
Binary file modified js/pdfjs/web/cmaps/UniJIS-UTF16-H.bcmap
Binary file not shown.
Binary file modified js/pdfjs/web/cmaps/UniJIS-UTF32-H.bcmap
Binary file not shown.
Binary file modified js/pdfjs/web/cmaps/UniJIS-UTF8-H.bcmap
Binary file not shown.
Binary file modified js/pdfjs/web/cmaps/UniJIS2004-UTF16-H.bcmap
Binary file not shown.
Binary file modified js/pdfjs/web/cmaps/UniJIS2004-UTF32-H.bcmap
Binary file not shown.
Binary file modified js/pdfjs/web/cmaps/UniJIS2004-UTF8-H.bcmap
Binary file not shown.
Binary file modified js/pdfjs/web/cmaps/UniJISX0213-UTF32-H.bcmap
Binary file not shown.
Binary file modified js/pdfjs/web/cmaps/UniJISX0213-UTF32-V.bcmap
Binary file not shown.
Binary file modified js/pdfjs/web/cmaps/UniJISX02132004-UTF32-H.bcmap
Binary file not shown.
Binary file modified js/pdfjs/web/cmaps/UniKS-UCS2-H.bcmap
Binary file not shown.
Binary file modified js/pdfjs/web/cmaps/UniKS-UTF16-H.bcmap
Binary file not shown.
Binary file modified js/pdfjs/web/cmaps/UniKS-UTF32-H.bcmap
Binary file not shown.
Binary file modified js/pdfjs/web/cmaps/UniKS-UTF8-H.bcmap
Binary file not shown.
Binary file modified js/pdfjs/web/compressed.tracemonkey-pldi-09.pdf
Binary file not shown.
242 changes: 121 additions & 121 deletions js/pdfjs/web/debugger.js
@@ -1,123 +1,4 @@
/* Copyright 2012 Mozilla Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

let opMap;

const FontInspector = (function FontInspectorClosure() {
let fonts;
let active = false;
const fontAttribute = "data-font-name";
function removeSelection() {
const divs = document.querySelectorAll(`span[${fontAttribute}]`);
for (const div of divs) {
div.className = "";
}
}
function resetSelection() {
const divs = document.querySelectorAll(`span[${fontAttribute}]`);
for (const div of divs) {
div.className = "debuggerHideText";
}
}
function selectFont(fontName, show) {
const divs = document.querySelectorAll(
`span[${fontAttribute}=${fontName}]`
);
for (const div of divs) {
div.className = show ? "debuggerShowText" : "debuggerHideText";
}
}
function textLayerClick(e) {
if (
!e.target.dataset.fontName ||
e.target.tagName.toUpperCase() !== "SPAN"
) {
return;
}
const fontName = e.target.dataset.fontName;
const selects = document.getElementsByTagName("input");
for (const select of selects) {
if (select.dataset.fontName !== fontName) {
continue;
}
select.checked = !select.checked;
selectFont(fontName, select.checked);
select.scrollIntoView();
}
}
return {
// Properties/functions needed by PDFBug.
id: "FontInspector",
name: "Font Inspector",
panel: null,
manager: null,
init(pdfjsLib) {
const panel = this.panel;
const tmp = document.createElement("button");
tmp.addEventListener("click", resetSelection);
tmp.textContent = "Refresh";
panel.append(tmp);

fonts = document.createElement("div");
panel.append(fonts);
},
cleanup() {
fonts.textContent = "";
},
enabled: false,
get active() {
return active;
},
set active(value) {
active = value;
if (active) {
document.body.addEventListener("click", textLayerClick, true);
resetSelection();
} else {
document.body.removeEventListener("click", textLayerClick, true);
removeSelection();
}
},
// FontInspector specific functions.
fontAdded(fontObj, url) {
function properties(obj, list) {
const moreInfo = document.createElement("table");
for (const entry of list) {
const tr = document.createElement("tr");
const td1 = document.createElement("td");
td1.textContent = entry;
tr.append(td1);
const td2 = document.createElement("td");
td2.textContent = obj[entry].toString();
tr.append(td2);
moreInfo.append(tr);
}
return moreInfo;
}
const moreInfo = properties(fontObj, ["name", "type"]);
const fontName = fontObj.loadedName;
const font = document.createElement("div");
const name = document.createElement("span");
name.textContent = fontName;
const download = document.createElement("a");
if (url) {
url = /url\(['"]?([^)"']+)/.exec(url);
download.href = url[1];
} else if (fontObj.data) {
download.href = URL.createObjectURL(
new Blob([fontObj.data], { type: fontObj.mimetype })
], { type: fontObj.mimetype })
);
}
download.textContent = "Download";
Expand Down Expand Up @@ -544,7 +425,126 @@ const PDFBug = (function PDFBugClosure() {
panels.setAttribute("class", "panels");
ui.append(panels);

container.append(ui);
container/* Copyright 2012 Mozilla Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

let opMap;

const FontInspector = (function FontInspectorClosure() {
let fonts;
let active = false;
const fontAttribute = "data-font-name";
function removeSelection() {
const divs = document.querySelectorAll(`span[${fontAttribute}]`);
for (const div of divs) {
div.className = "";
}
}
function resetSelection() {
const divs = document.querySelectorAll(`span[${fontAttribute}]`);
for (const div of divs) {
div.className = "debuggerHideText";
}
}
function selectFont(fontName, show) {
const divs = document.querySelectorAll(
`span[${fontAttribute}=${fontName}]`
);
for (const div of divs) {
div.className = show ? "debuggerShowText" : "debuggerHideText";
}
}
function textLayerClick(e) {
if (
!e.target.dataset.fontName ||
e.target.tagName.toUpperCase() !== "SPAN"
) {
return;
}
const fontName = e.target.dataset.fontName;
const selects = document.getElementsByTagName("input");
for (const select of selects) {
if (select.dataset.fontName !== fontName) {
continue;
}
select.checked = !select.checked;
selectFont(fontName, select.checked);
select.scrollIntoView();
}
}
return {
// Properties/functions needed by PDFBug.
id: "FontInspector",
name: "Font Inspector",
panel: null,
manager: null,
init(pdfjsLib) {
const panel = this.panel;
const tmp = document.createElement("button");
tmp.addEventListener("click", resetSelection);
tmp.textContent = "Refresh";
panel.append(tmp);

fonts = document.createElement("div");
panel.append(fonts);
},
cleanup() {
fonts.textContent = "";
},
enabled: false,
get active() {
return active;
},
set active(value) {
active = value;
if (active) {
document.body.addEventListener("click", textLayerClick, true);
resetSelection();
} else {
document.body.removeEventListener("click", textLayerClick, true);
removeSelection();
}
},
// FontInspector specific functions.
fontAdded(fontObj, url) {
function properties(obj, list) {
const moreInfo = document.createElement("table");
for (const entry of list) {
const tr = document.createElement("tr");
const td1 = document.createElement("td");
td1.textContent = entry;
tr.append(td1);
const td2 = document.createElement("td");
td2.textContent = obj[entry].toString();
tr.append(td2);
moreInfo.append(tr);
}
return moreInfo;
}
const moreInfo = properties(fontObj, ["name", "type"]);
const fontName = fontObj.loadedName;
const font = document.createElement("div");
const name = document.createElement("span");
name.textContent = fontName;
const download = document.createElement("a");
if (url) {
url = /url\(['"]?([^)"']+)/.exec(url);
download.href = url[1];
} else if (fontObj.data) {
download.href = URL.createObjectURL(
new Blob([fontObj.data.append(ui);
container.style.right = panelWidth + "px";

// Initialize all the debugging tools.
Expand Down
5 changes: 3 additions & 2 deletions js/pdfjs/web/images/toolbarButton-search.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 355ba3b

Please sign in to comment.