aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/Collaboration
Commit message (Collapse)AuthorAgeFilesLines
* chore: apply new CSFixer rulesFerdinand Thiessen2025-07-016-0/+6
| | | | | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de> # Conflicts: # apps/settings/lib/SetupChecks/PhpOpcacheSetup.php
* chore: Add proper deprecation dates where missingFerdinand Thiessen2024-09-201-1/+1
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(autocomplete): Move known array keys to psalm docsbugfix/noid/array-keysJoas Schilling2024-09-182-2/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix(collaboration): Reduce timeouts to 3s for link reference connectsfix/issue-34720Josh2024-09-131-3/+3
| | | | | | | Fixes rest of #34720 https://github.com/nextcloud/server/issues/34720#issuecomment-1286609205 Signed-off-by: Josh <josh.t.richards@gmail.com>
* fix(linkReferenceProvider): better size checkJulien Veyssier2024-08-301-4/+14
| | | | Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-254-6/+6
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* fix: Do not log link reference exceptions as errorJulius Härtl2024-08-051-5/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* docs: update docs for ocp eventsDaniel Kesselberg2024-07-231-2/+4
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* feat(Reference): Add public API endpoints to get referencesJonas2024-07-173-3/+54
| | | | | | | | | | | | | | | | | | | | | | | Calling the public API endpoints will check for matching registered reference providers that implement `IPublicReferenceProvider` and call their respective functions. If no matching provider is found, the default `LinkReferenceProvider` will be used to provide open graph data. The frontend reference widget components will call these endpoints from unauthorized sessions, e.g. in public shares. If present, the sharing token of the origin URL is passed to `resolveReferencePublic()` as additional information for the reference provider to determine the access scope. This allows the respective reference providers to determine whether the origin share has access to the linked resource. `getCacheKeyPublic` also gets the sharing token so it can scope the cached entry to it. Contributes to #45978 Signed-off-by: Jonas <jonas@freesources.org>
* chore: Add SPDX headerAndy Scherzinger2024-05-2425-473/+50
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix: Apply new coding standard to all filesCôme Chilliet2024-04-021-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(OCP): Add since tag to all constantsJoas Schilling2024-02-151-3/+9
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* feat: Migrate LinkReferenceProvider to OCPAnupam Kumar2024-02-141-0/+215
| | | | | | | | | This would be useful to eleminate the need for using this OC class when an app dev wants to implement a custom reference provider for the web client but wants to fall back on opengraph for mobile clients. Signed-off-by: Anupam Kumar <kyteinsky@gmail.com>
* feat(events): Add typed event for filtering autocompletion suggestionsJoas Schilling2023-11-022-0/+108
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* core: Fix OpenAPI for reference APIjld31032023-09-142-1/+8
| | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* core: Add OpenAPI specjld31032023-07-131-0/+4
| | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* Fix typos in lib/public subdirectorySimon L2023-05-101-1/+1
| | | | | | | | | | | | | Found via `codespell -q 3 -S l10n -L jus ./lib/public` Signed-off-by: luz paz <luzpaz@github.com> Update lib/public/Accounts/IAccount.php Signed-off-by: luz paz <luzpaz@github.com> Signed-off-by: Simon L <szaimen@e.mail.de> Co-Authored-By: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
* style: Fix php-cs and psalmJulius Härtl2023-01-271-2/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* handle and return touchProvider errorsJulien Veyssier2023-01-271-2/+2
| | | | Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
* ADiscoverableReferenceProvider implements JsonSerializableJulien Veyssier2023-01-271-1/+3
| | | | Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
* add 'last used timestamp' management for reference providersJulien Veyssier2023-01-271-1/+21
| | | | Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
* extend the reference API for the new link pickerJulien Veyssier2023-01-274-0/+151
| | | | | | | | | - add 2 interfaces for discoverable and searchable reference providers - new OCS route to get info on discoverable/searchable reference providers - new abstract ADiscoverableReferenceProvider that only implements jsonSerialize - listen to RenderReferenceEvent to inject provider list with initial state Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
* composer run cs:fixCôme Chilliet2023-01-208-8/+0
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* reference url can always fallback to the link itselfJulien Veyssier2022-09-302-3/+3
| | | | Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
* Add sinceJoas Schilling2022-09-261-9/+97
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Move Reference class to public namespaceJulius Härtl2022-09-261-0/+161
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add event to load scripts for reference renderingJulius Härtl2022-09-011-0/+36
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Refactor cache handlingJulius Härtl2022-08-312-2/+28
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* CleanupJulius Härtl2022-08-313-12/+26
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Move registration to IBootstrapJulius Härtl2022-08-311-7/+0
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add full public interfacesJulius Härtl2022-08-313-4/+142
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Implement reference provider based cachingJulius Härtl2022-08-311-0/+3
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* API for fetching reference metadataJulius Härtl2022-08-313-0/+89
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Introduce event for loading additional script on projectsJulius Härtl2022-05-121-0/+40
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-0414-28/+14
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* ignore mail shares of related remote share resultsArthur Schiwon2021-04-201-0/+8
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Remove @package annotations from public namespaceJulius Härtl2020-08-266-6/+0
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Move AutoComplete::filterResults to new event dispatcher and GenericEventJoas Schilling2020-07-011-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update license headers for 19Christoph Wurst2020-04-291-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-105-6/+2
| | | | | | | | | | | | | | | 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-092-2/+0
| | | | | | For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headers for 18Christoph Wurst2019-12-202-1/+6
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Decouple resource provider registrationDaniel Kesselberg2019-12-072-0/+42
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Update license headersChristoph Wurst2019-12-0513-13/+45
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use rich objects instead of name, link and iconJoas Schilling2019-03-192-36/+5
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Replace the icon-class with an absolute link to an imageJoas Schilling2019-03-192-2/+3
| | | | | | Otherwise the icon can not be displayed in mobile apps Signed-off-by: Joas Schilling <coding@schilljs.com>
* Register providers via class namesJoas Schilling2019-03-011-2/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Also cache the resource type because it is part of the identifierJoas Schilling2019-03-011-0/+13
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix doc blockJoas Schilling2019-03-011-2/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add invalidation methods to the interfaceJoas Schilling2019-03-011-0/+19
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>