Skip to content

Commit 5a86d4a

Browse files
committed
Dev changes
1 parent 6d30735 commit 5a86d4a

File tree

13 files changed

+145
-42
lines changed

13 files changed

+145
-42
lines changed

.gitattributes

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
# Denote all files that are truly binary and should not be modified
55
js/* binary
66
screenshots/* binary
7-
lib/Proto/* binary
87
lib/TProto/* binary
98
img/* binary
109

.l10nignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
js/
22
vendor/
3+
3rdparty/

.nextcloudignore

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,39 @@
11
.git
22
.github
3+
.tx
4+
.vscode
5+
/build
36
/node_modules
47
/screenshots
58
/src
69
tests
10+
/vendor
711
/.eslintrc.js
812
/.gitattributes
913
/.gitignore
1014
/.l10nignore
1115
/.nextcloudignore
12-
/.pgp_cs.dist
13-
/.pylintrc
16+
/.php-cs-fixer.dist.php
17+
.pre-commit-config.yaml
1418
/babel.config.js
19+
/CODE_OF_CONDUCT.md
1520
/composer.json
1621
/composer.lock
17-
/krankerl.toml
22+
/jest.config.js
1823
/Makefile
24+
/MANIFEST.in
1925
/package-lock.json
2026
/package.json
2127
/postcss.config.js
2228
/psalm.xml
29+
/pyproject.toml
30+
/setup.cfg
31+
/setup.py
2332
/stylelint.config.js
24-
/webpack.*
33+
/webpack.config.js
34+
2535
/docs
2636
/nc_py_api
2737
/proto
2838
/tmp
2939
.readthedocs.yaml
30-
pyproject.toml
31-
/pyfrm/_srv_example.py

appinfo/info.xml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Nextcloud Python API Framework
1717
<documentation>
1818
<admin>https://github.com/cloud_py_api/cloud_py_api/wiki</admin>
1919
</documentation>
20+
<category>integration</category>
2021
<category>tools</category>
2122
<website>https://github.com/cloud_py_api/cloud_py_api</website>
2223
<bugs>https://github.com/cloud_py_api/cloud_py_api/issues</bugs>
@@ -29,9 +30,6 @@ Nextcloud Python API Framework
2930
<install>
3031
<step>OCA\Cloud_Py_API\Migration\AppDataInitializationStep</step>
3132
</install>
32-
<pre-migration>
33-
<step>OCA\Cloud_Py_API\Migration\AppUpdateStep</step>
34-
</pre-migration>
3533
</repair-steps>
3634
<commands>
3735
<command>OCA\Cloud_Py_API\Command\GetFileContentsCommand</command>

appinfo/routes.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@
3030
'routes' => [
3131
// SETTINGS API
3232
['name' => 'settings#index', 'url' => '/api/v1/settings', 'verb' => 'GET'],
33-
['name' => 'settings#systemInfo', 'url' => '/api/v1/system-info', 'verb' => 'GET'],
33+
['name' => 'settings#update', 'url' => '/api/v1/settings', 'verb' => 'PUT'],
34+
['name' => 'settings#getSettingById', 'url' => '/api/v1/settings/{id}', 'verb' => 'GET'],
35+
['name' => 'settings#getSettingByName', 'url' => '/api/v1/settings/name/{name}', 'verb' => 'GET'],
36+
['name' => 'settings#updateSetting', 'url' => '/api/v1/settings/name/{name}', 'verb' => 'PUT'],
37+
['name' => 'settings#systemInfo', 'url' => '/api/v1/system-info', 'verb' => 'GET']
3438
]
3539
];

js/cloud_py_api-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/cloud_py_api-main.js.LICENSE.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
* @license MIT
2525
*/
2626

27+
/*! For license information please see NcCheckboxRadioSwitch.js.LICENSE.txt */
28+
2729
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
2830

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

js/cloud_py_api-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.

lib/Migration/data/AppInitialData.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,13 @@ class AppInitialData {
4141
"description" => "Absolute path to the python runnable (e.g. \"/usr/bin/python3\"). Can be obtained by `which python3` command.",
4242
"helpUrl" => "https://cloud-py-api.readthedocs.io/{todo-url:/settings/setting_name}"
4343
],
44+
[
45+
"name" => "remote_filesize_limit",
46+
"value" => 536870912,
47+
"displayName" => "Remote/Encrypted file size limit to process",
48+
"description" => "Maximum file size for requesting from php core. Used when file hosts on remote NC instance or have encrypted flag. Must be less then total available RAM size.",
49+
"helpUrl" => "https://cloud-py-api.readthedocs.io/{todo-url:/settings/setting_name}"
50+
],
4451
[
4552
"name" => "use_php_path_from_settings",
4653
"value" => false,
@@ -73,6 +80,8 @@ private function _stringsForL10N(): void {
7380
// TRANSLATORS Admin settings strings for localization (Eng versions stored in the database and translated on front-end)
7481
$this->l10n->t("Full path to python interpreter");
7582
$this->l10n->t("Absolute path to the python runnable (e.g. \"/usr/bin/python3\"). Can be obtained by `which python3` command.");
83+
$this->l10n->t("Remote/Encrypted file size limit to process");
84+
$this->l10n->t("Maximum file size for requesting from php core. Used when file hosts on remote NC instance or have encrypted flag. Must be less then total available RAM size.");
7685
$this->l10n->t("Use path to PHP interpreter for Python from settings");
7786
$this->l10n->t("Determine whether to use path from settings or detect it automatically (may not work with some unusual PHP install locations). Used in Python part.");
7887
$this->l10n->t("Full path to PHP interpreter for Python");

lib/Service/UtilsService.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,8 @@ private function checkForNewSettings(array $app_data, array $settings): void {
268268
json_encode($setting['value'])
269269
: str_replace('\\', '', json_encode($setting['value'])),
270270
'displayName' => $setting['displayName'],
271-
'description' => $setting['description']
271+
'description' => $setting['description'],
272+
'helpUrl' => $setting['helpUrl']
272273
]));
273274
}
274275
}

0 commit comments

Comments
 (0)