Skip to content

Commit b40fc10

Browse files
authored
Merge pull request #1027 from nextcloud/fix/stable29-user-lang
[stable29] fix: Use the user configured UI language for PDFjs instead of browser language #1026
2 parents 4d6a69d + 5878856 commit b40fc10

25 files changed

Lines changed: 1027 additions & 1251 deletions

File tree

.eslintrc.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ module.exports = {
33
PDFViewerApplicationOptions: true,
44
PDFViewerApplication: true,
55
pdfjsLib: true,
6+
SUPPORTED_LANGUAGES: true,
67
},
78
extends: [
89
'@nextcloud',
9-
]
10+
],
1011
}

js/files_pdfviewer-data_image_svg_xml_3c_21--_20-_20SPDX-FileCopyrightText_202020_20Google_20Inc_20-_20SPDX-Lice-cc29b1.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/files_pdfviewer-data_image_svg_xml_3csvg_20xmlns_27http_www_w3_org_2000_svg_27_20width_2724_27_20height_2724_-b2e651.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

js/files_pdfviewer-main.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/files_pdfviewer-main.js.LICENSE.txt

Lines changed: 17 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@
1313
* Copyright (C) 2018 Varun A P
1414
*/
1515

16+
/*!
17+
* Vue.js v2.7.16
18+
* (c) 2014-2023 Evan You
19+
* Released under the MIT License.
20+
*/
21+
1622
/*!
1723
* escape-html
1824
* Copyright(c) 2012-2013 TJ Holowaychuk
@@ -21,34 +27,22 @@
2127
* MIT Licensed
2228
*/
2329

24-
/*! @license DOMPurify 3.1.4 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.4/LICENSE */
30+
/*!
31+
* focus-trap 7.5.4
32+
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
33+
*/
34+
35+
/*!
36+
* tabbable 6.2.0
37+
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
38+
*/
39+
40+
/*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */
2541

2642
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
2743

2844
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
2945

30-
/**
31-
* @copyright Copyright (c) 2019 Julius Härtl <[email protected]>
32-
*
33-
* @author Julius Härtl <[email protected]>
34-
* @author John Molakvoæ <[email protected]>
35-
*
36-
* @license GNU AGPL version 3 or any later version
37-
*
38-
* This program is free software: you can redistribute it and/or modify
39-
* it under the terms of the GNU Affero General Public License as
40-
* published by the Free Software Foundation, either version 3 of the
41-
* License, or (at your option) any later version.
42-
*
43-
* This program is distributed in the hope that it will be useful,
44-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
45-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
46-
* GNU Affero General Public License for more details.
47-
*
48-
* You should have received a copy of the GNU Affero General Public License
49-
* along with this program. If not, see <http://www.gnu.org/licenses/>.
50-
*/
51-
5246
/**
5347
* @copyright Copyright (c) 2020 John Molakvoæ <[email protected]>
5448
*
@@ -71,29 +65,6 @@
7165
*
7266
*/
7367

74-
/**
75-
* @copyright Copyright (c) 2023 Ferdinand Thiessen <[email protected]>
76-
*
77-
* @author Ferdinand Thiessen <[email protected]>
78-
* @author John Molakvoæ <[email protected]>
79-
*
80-
* @license AGPL-3.0-or-later
81-
*
82-
* This program is free software: you can redistribute it and/or modify
83-
* it under the terms of the GNU Affero General Public License as
84-
* published by the Free Software Foundation, either version 3 of the
85-
* License, or (at your option) any later version.
86-
*
87-
* This program is distributed in the hope that it will be useful,
88-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
89-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
90-
* GNU Affero General Public License for more details.
91-
*
92-
* You should have received a copy of the GNU Affero General Public License
93-
* along with this program. If not, see <http://www.gnu.org/licenses/>.
94-
*
95-
*/
96-
9768
/**
9869
* @copyright Copyright (c) 2023 Mishel Shaji <[email protected]>
9970
* @copyright Copyright (c) 2023 Daniel Calviño Sánchez <[email protected]>

js/files_pdfviewer-main.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/files_pdfviewer-node_modules_nextcloud_dialogs_dist_chunks_index-CWnkpNim_mjs.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/files_pdfviewer-node_modules_nextcloud_dialogs_dist_chunks_index-CWnkpNim_mjs.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/files_pdfviewer-public.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/files_pdfviewer-public.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)