nextcloud/apps/files_sharing/lib/Controller
Daniel Calviño Sánchez 96108ab858 Add event to load additional scripts in the auth page for public shares
Before the public share authentication page is rendered now an event to
load additional scripts is dispatched. Thanks to this any app can load
its own scripts that, when run on the browser, adjust as needed the page
generated by the server.

Note, however, that during the handling of the event apps are only able
to add scripts or styles to be loaded; they can not render arbitrary
content on the page, or change how the content is rendered by the
original template; all those changes have to be done by the scripts at
run-time.

This implies that the scripts of the apps can use only those parameters,
like the token of the share, added to the page when it is generated by
the "publicshareauth" template. Due to this, and given that the event is
being introduced to be used by Talk to inject the UI needed to request
the password for a share, the token of the share is now provided in the
generated page, just like done in the public share page.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-07-24 14:04:22 +02:00
..
DeletedShareAPIController.php Fix exception 2018-07-05 12:43:57 +02:00
ExternalSharesController.php Move files_sharing Controllers => Controller 2016-10-24 11:46:25 +02:00
PublicPreviewController.php Move public preview endpoint over 2018-06-20 08:53:37 +02:00
RemoteController.php Update license headers 2017-11-06 16:56:19 +01:00
ShareAPIController.php Add support for sending the password by Talk to ShareAPIController 2018-07-24 14:04:17 +02:00
ShareController.php Add event to load additional scripts in the auth page for public shares 2018-07-24 14:04:22 +02:00
ShareInfoController.php Remove unused import statements 2018-02-14 16:55:43 +01:00
ShareesAPIController.php update unit tests 2018-07-11 10:11:48 +02:00