]> source.dussan.org Git - nextcloud-server.git/commit
Provide "server.css" URL in ThemingController response
authorDaniel Calviño Sánchez <danxuliu@gmail.com>
Thu, 10 Aug 2017 09:33:12 +0000 (11:33 +0200)
committerDaniel Calviño Sánchez <danxuliu@gmail.com>
Thu, 10 Aug 2017 11:44:49 +0000 (13:44 +0200)
commit5b0d7056e81de003acd529a9d35470904e73a91c
tree29702ad37e867b55a0f2fdab539b17b2d140de74
parente883061f58cc9a021b92d34ff66de19f30d0502c
Provide "server.css" URL in ThemingController response

Pull request #5584 made cached SCSS files depend on a hash of the base
URL, so the "/css/core/server.css" file does no longer exist. The
"server.css" URL must be known by the Theming app in order to update the
stylesheets when previewing the changes to the theme, so the
DataResponse from the controller now provides the full URL to the
"server.css" file that has to be reloaded (if any).

The "server.css" URL provided by the response will be taken into account
by the JavaScript front-end in a following commit.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
apps/theming/lib/Controller/ThemingController.php
apps/theming/tests/Controller/ThemingControllerTest.php