aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/AppFramework
Commit message (Collapse)AuthorAgeFilesLines
...
* | Fix OCPSinceChecker and php-csMorris Jobke2020-05-081-0/+4
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Add InitialState Appframework serviceRoeland Jago Douma2020-05-071-0/+54
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Merge pull request #20782 from nextcloud/enh/appframework/appconfig_wrapperRoeland Jago Douma2020-05-071-0/+111
|\ \ | | | | | | Simple AppConfig wrapper for the AppFramework
| * | Simple AppConfig wrapper for the AppFrameworkRoeland Jago Douma2020-05-021-0/+111
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 9 out of 10 cases apps want to access their own appconfig. Hence it would be nice not to have to enter the app id all the time. This simple wrapper just passes on the appid in all calls. Basically this allows for simpler code in the apps. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | PHP 7.4 excludes the arguments from stack traces by default.Daniel Kesselberg2020-04-301-1/+4
|/ / | | | | | | | | | | | | That leads to a false positive is not setup via query() but directly warning for every app because the check does not work anymore. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* / Update license headers for 19Christoph Wurst2020-04-2917-4/+16
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Allow some apps to have root URLs in their own routing fileJoas Schilling2020-04-181-3/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add visibility to all constantsChristoph Wurst2020-04-102-61/+61
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-1035-113/+67
| | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use elseif instead of else ifChristoph Wurst2020-04-102-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove trailing and in between spacesChristoph Wurst2020-04-092-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-0914-40/+40
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use exactly one empty line after the namespace declarationChristoph Wurst2020-04-0910-9/+1
| | | | | | For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix (array) indent style to always use one tabChristoph Wurst2020-04-096-56/+56
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix multiline commentsChristoph Wurst2020-04-081-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-319-2/+11
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #20170 from nextcloud/techdebt/remove-unused-importsChristoph Wurst2020-03-272-2/+0
|\ | | | | Remove unused imports
| * Remove unused importsChristoph Wurst2020-03-252-2/+0
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Use the short array syntax, everywhereChristoph Wurst2020-03-267-14/+14
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* add docs for useJsNoncePavel Krasikov2020-03-151-0/+1
| | | | Signed-off-by: Pavel Krasikov <klonishe@gmail.com>
* Allow non integer ids in Entity MapperJoas Schilling2020-02-261-2/+7
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix requested changesTimObert2020-02-141-10/+5
| | | | Signed-off-by: Tim Obert <tobert@w-commerce.de>
* Change the route generation of AuthPublicShareController.php and adjust the ↵Tim Obert2020-02-141-3/+13
| | | | | | routes for file sharing Signed-off-by: Tim Obert <tobert@w-commerce.de>
* Fix license headersChristoph Wurst2020-01-131-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Split the menu entry for external shares in twoDaniel Calviño Sánchez2019-12-301-5/+6
| | | | | | | | | | | | | | | | The external shares entry showed a "button" that, when pressed, replaced the button with the input to set the remote share address. The "button" was actually a label for the input, so when the label was focused it transferred the focus to the input and thus pressing enter or space did not show the input. Moreover, inputs inside links are not valid HTML, and once shown there was no way to hide the input again. Due to all this, and for consistency with the direct link input, the external share input was moved to a different menu item that is shown and hidden when the button, which nows is also a real button, is clicked. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Format HTML elementsDaniel Calviño Sánchez2019-12-301-8/+8
| | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Update license headersChristoph Wurst2019-12-0551-84/+145
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #17948 from nextcloud/enh/check-if-property-is-boolRoeland Jago Douma2019-11-261-6/+18
|\ | | | | Make isXXX available for bool properties only
| * Make isXXX available for bool properties onlyDaniel Kesselberg2019-11-161-6/+18
| | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | Some php-cs fixesRoeland Jago Douma2019-11-2222-17/+13
|/ | | | | | | | | | | * Order the imports * No leading slash on imports * Empty line before namespace * One line per import * Empty after imports * Emmpty line at bottom of file Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Do not throw an exception for base App classJulius Härtl2019-11-081-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* mark getAppContainer as a valid way to construct app containersRobin Appelman2019-11-041-0/+8
| | | | | | this is triggerd (and not cought by the query arm) if an item from an app is queried before the app queries it's own Application instance Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #17562 from ↵Roeland Jago Douma2019-10-291-2/+25
|\ | | | | | | | | nextcloud/techdebt/17509/log-error-when-setting-up-application-incorrectly Log an error in development cases when the application class was set …
| * Log an error in development cases when the application class was set up ↵Joas Schilling2019-10-161-2/+25
| | | | | | | | | | | | incorrectly Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Add isXXX getter to EntityChristoph Wurst2019-10-221-9/+12
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* set default CSP on NotFoundResponseRoeland Jago Douma2019-09-091-0/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Remove reflect method form public interfaceRoeland Jago Douma2019-08-301-0/+1
| | | | | | | | The reflect method is (and should) only every be called internally. Since if you call it again it would otherwise start mixing and matching arguments etc. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add deprecation warningRoeland Jago Douma2019-08-291-0/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Do not enforce the parent constructor of response to be calledRoeland Jago Douma2019-08-191-10/+8
| | | | | | | If there is no policy set we just take the default empty ones. That way no obscure errors get thrown if the constructor is not called. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* frame-src doesn't respect the nonce attributeRoeland Jago Douma2019-08-161-3/+0
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add feature policy headerRoeland Jago Douma2019-08-104-0/+266
| | | | | | | This adds the events and the classes to modify the feature policy. It also adds a default restricted feature policy. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add form-action CSP elementRoeland Jago Douma2019-07-312-0/+35
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* No need to have these classes we tighten the default CSP from time toRoeland Jago Douma2019-07-273-0/+3
| | | | | | time Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Redirect to the right token on public sharesRoeland Jago Douma2019-05-231-0/+14
| | | | | | | | If the token doesn't match (or isn't set) during the redirect. We should properly set it. Else we might redirect to a later auth display that set these values. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Set empty CSP by defaultRoeland Jago Douma2019-04-1612-1/+34
| | | | | | | | | For #14179 By default responses should have the strictest (and simplest) CSP possible. Only template responses should require an actual CSP. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* [#11236] Set parameter type in QBMapperMarius David Wieschollek2019-03-241-3/+35
| | | | Signed-off-by: Marius David Wieschollek <git.public@mdns.eu>
* CSP: set nonce for iframesRoeland Jago Douma2019-03-161-1/+5
| | | | | | | This for now uses the jsNonce. That way we can easily backport it. For 17 I will fix it properly. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Avoid duplicate App container creationJoas Schilling2019-03-051-1/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Allow apps to redirect to the default appJoas Schilling2019-03-011-0/+40
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add StandaloneTemplateResponseRoeland Jago Douma2019-02-061-0/+37
| | | | | | | This can be used by pages that do not have the full Nextcloud UI. So notifications etc do not load there. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>