Skip to content

Commit 52c40b3

Browse files
authored
Merge pull request #1410 from nextcloud/backport/1325/stable32
[stable32] Allow PDF Forms calculations
2 parents c9146e5 + 355abc1 commit 52c40b3

40 files changed

Lines changed: 1351 additions & 2137 deletions

File tree

LICENSES/BSD-2-Clause.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Copyright (c) <year> <owner>
2+
3+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
4+
5+
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
6+
7+
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
8+
9+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

appinfo/info.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,8 @@ Powered by [pdf.js](https://mozilla.github.io/pdf.js/)]]></description>
2828
<dependencies>
2929
<nextcloud min-version="32" max-version="32" />
3030
</dependencies>
31+
32+
<settings>
33+
<admin>OCA\Files_PDFViewer\Settings\AdminSettings</admin>
34+
</settings>
3135
</info>

appinfo/routes.php

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@
88
*/
99
namespace OCA\Files_PDFViewer\AppInfo;
1010

11-
return ['routes' => [
12-
['name' => 'display#showPdfViewer', 'url' => '/', 'verb' => 'GET'],
13-
]];
11+
return [
12+
'routes' => [
13+
['name' => 'display#showPdfViewer', 'url' => '/', 'verb' => 'GET'],
14+
],
15+
'ocs' => [
16+
['name' => 'settings#getSettings', 'url' => '/api/v1/settings', 'verb' => 'GET'],
17+
['name' => 'settings#setEnableScripting', 'url' => '/api/v1/settings/enable-scripting', 'verb' => 'PUT'],
18+
],
19+
];

js/files_pdfviewer-admin.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.

0 commit comments

Comments
 (0)