aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/DirectEditing
Commit message (Collapse)AuthorAgeFilesLines
* feat(directediting): Allow opening by file idJulius Härtl2023-02-201-4/+21
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Revert the token scope to not end up with storing the user used in the sessionJulius Härtl2023-02-171-1/+15
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* composer run cs:fixCôme Chilliet2023-01-201-1/+0
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix translation source in directEditing templatesAzul2021-12-161-1/+1
| | | | | | The 'Empty file' string is translated in `lib` - not in `core`. Signed-off-by: Azul <azul@riseup.net>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-042-4/+2
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Get the parent directory before creating a file from a templateJulius Härtl2021-04-011-1/+7
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Format code to a single space around binary operatorsChristoph Wurst2020-10-051-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Do not expose direct editing if no master key is availableJulius Härtl2020-09-011-6/+29
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-102-4/+0
| | | | | | | | | | | | | | | 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 exactly one empty line after the namespace declarationChristoph Wurst2020-04-091-1/+0
| | | | | | For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-311-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove unused importsChristoph Wurst2020-03-251-2/+0
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* use `nodeExists` instead of catching exceptionsRobin Appelman2020-01-141-3/+2
| | | | | | makes the intent of the code more clear imo Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #18805 from nextcloud/bugfix/direct-edit-createRoeland Jago Douma2020-01-141-7/+13
|\ | | | | Check if file already exists during file creation
| * CHeck if file already exists during file creationJulius Härtl2020-01-131-7/+13
| | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net> Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Fix license headersChristoph Wurst2020-01-131-0/+1
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Do not generate tokens for editor IDs that do not existChristoph Wurst2019-12-191-0/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Return empty template for default creatorsJulius Härtl2019-12-161-3/+25
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #18224 from nextcloud/bugfix/noid/direct-editing-pathRoeland Jago Douma2019-12-112-12/+24
|\ | | | | Use file path for direct editing
| * Use file path for direct editingJulius Härtl2019-12-052-12/+24
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Update license headersChristoph Wurst2019-12-052-2/+3
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Check for boolean valueJulius Härtl2019-11-281-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Code style fixes and cleanupJulius Härtl2019-11-271-4/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Move editor list to capabilitiesJulius Härtl2019-11-271-2/+7
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* encapsulate templatestobiasKaminsky2019-11-271-1/+3
| | | | Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
* Direct editing API to allow file editing using a one-time token forJulius Härtl2019-11-272-0/+308
mobile apps Signed-off-by: Julius Härtl <jus@bitgrid.net>