nextcloud/apps/files_sharing
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
..
appinfo Don't call getUID on null when the app is loaded for a guest 2018-07-23 16:39:03 +02:00
composer Add API to undelete delete group shares 2018-07-05 12:43:56 +02:00
css Design fixes 2018-07-21 18:31:06 +02:00
img Svgo optimization 2016-09-27 20:56:26 +02:00
js Fixed scrolling container 2018-07-24 11:01:11 +02:00
l10n [tx-robot] updated from transifex 2018-07-24 00:12:01 +00:00
lib Add event to load additional scripts in the auth page for public shares 2018-07-24 14:04:22 +02:00
templates Acceptance and mobile navigation fixes 2018-07-24 11:01:11 +02:00
tests Add support for sending the password by Talk to ShareAPIController 2018-07-24 14:04:17 +02:00
list.php Fix apps/ 2016-07-21 18:13:57 +02:00
public.php Replace hardcoded status headers with calls to http_response_code() 2018-06-26 16:14:15 +02:00