aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Template/SCSSCacher.php
Commit message (Collapse)AuthorAgeFilesLines
* Some php-cs fixesRoeland Jago Douma2019-11-221-2/+2
| | | | | | | | | | | * Order the imports * No leading slash on imports * Empty line before namespace * One line per import * Empty after imports * Emmpty line at bottom of file Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make sure the cache is only reset once at a timeJulius Härtl2019-10-151-1/+5
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Use a distributed cache for the isCachedCacheJulius Härtl2019-10-151-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Lock SCSS so we only run 1 job at a timeRoeland Jago Douma2019-07-121-18/+74
| | | | | | | | | This is bit hacky but a start to lock the SCSS compiler properly Retry during 10s then give up Properly get error message Do not clear locks and properly debug scss caching Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Move SCSS variable fetching before the variables.scss to properly calculate ↵Julius Härtl2018-08-291-2/+2
| | | | | | color values Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Append cache bump parameter to scss files URLJulius Härtl2018-08-011-1/+5
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* cache isCached state for scss resourcesRobin Appelman2018-07-241-11/+37
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Use proper URL prefix for iconsJulius Härtl2018-07-191-3/+10
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Fixed testsJohn Molakvoæ (skjnldsv)2018-07-191-7/+4
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Mixin scss icon apiJohn Molakvoæ (skjnldsv)2018-07-191-36/+74
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Svg icon api sass function and upgrade of all stylesJohn Molakvoæ (skjnldsv)2018-07-191-0/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Svg color apiJohn Molakvoæ (skjnldsv)2018-07-191-0/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Issue #9318: catch exceptions in SCSSCacher::resetCache()Roland Tapken2018-05-021-1/+5
| | | | Signed-off-by: Roland Tapken <roland@bitarbeiter.net>
* Use app version to generate scss filenameJohn Molakvoæ (skjnldsv)2018-03-281-5/+21
| | | | | | Fixed scsscacher tests Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Actually clear cache values for all base urlsJulius Härtl2018-03-071-4/+9
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Move depsCache clearing to SCSSCacher/JSCombinerJulius Härtl2018-02-031-3/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add repair step to clear frontend related cachesJulius Härtl2018-02-031-5/+4
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add typehinting an fix some minor cleanupJulius Härtl2018-01-261-16/+24
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Do not rewrite absolute URLsJulius Härtl2018-01-261-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Clear injectect variables when resetting the cacheJulius Härtl2018-01-261-0/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Make sure that injected variables do not break the CSS generationJulius Härtl2018-01-261-0/+15
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* SCSS files are only cached if their size is > 0Julius Härtl2018-01-261-1/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Fixed testsJohn Molakvoæ (skjnldsv)2017-12-301-1/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Added tests for various installations typesJohn Molakvoæ (skjnldsv)2017-12-301-8/+10
| | | | | | | | | | | | | - With root installation - Core css - App inside server root - Secondary apps directory outside server root - With an installation in a sub directory - Core css - App inside server root - Secondary apps directory outside server root Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fixup! getWebdir returnJohn Molakvoæ (skjnldsv)2017-12-301-6/+2
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Use OC_Util function for app web pathJohn Molakvoæ (skjnldsv)2017-12-301-11/+14
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* getWebDir functionJohn Molakvoæ (skjnldsv)2017-12-301-15/+19
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fixed webroot for scss filesJohn Molakvoæ (skjnldsv)2017-12-301-7/+9
| | | | | | Fixed tests Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fixed scss url rewritingJohn Molakvoæ (skjnldsv)2017-12-301-8/+14
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Reduce length of md5 in scss cachingJohn Molakvoæ (skjnldsv)2017-12-141-2/+2
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Update license headersMorris Jobke2017-11-061-0/+7
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Do not stop on scss compilation failureJohn Molakvoæ (skjnldsv)2017-09-261-0/+2
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Rebuild SCSS files if frontend controller value changesJulius Härtl2017-09-031-1/+2
| | | | fixes #6271
* Fix theming app to also use the prefixJulius Härtl2017-06-161-5/+10
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Make cache and scss caching depend on the baseUrlJulius Härtl2017-06-151-2/+6
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Set SCSS dependencies to memcache on compileRoeland Jago Douma2017-05-211-1/+3
| | | | | | | Else when an upgrade happens we will recompile all the SCSS files all the time (until the cache expires). Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Implement scss variable injection by OC_DefaultsJulius Haertl2017-04-251-4/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Julius Haertl <jus@bitgrid.net> Add Scss variables to example theme and theming app Signed-off-by: Julius Haertl <jus@bitgrid.net> Use SCSSCacher to build theming css Signed-off-by: Julius Härtl <jus@bitgrid.net> Update theming.scss Signed-off-by: Julius Härtl <jus@bitgrid.net> Code cleanup Signed-off-by: Julius Härtl <jus@bitgrid.net> Fix tests Signed-off-by: Julius Härtl <jus@bitgrid.net> Inject SCSSCacher for easier testing Signed-off-by: Julius Härtl <jus@bitgrid.net> Fix typehint Signed-off-by: Lukas Reschke <lukas@statuscode.ch> Generate absolute URLs Signed-off-by: Lukas Reschke <lukas@statuscode.ch> Fix tests to always use absolute urls for theming images Signed-off-by: Julius Härtl <jus@bitgrid.net> MailheaderColor -> ColorPrimary Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Remove unused use statementsMorris Jobke2017-04-221-1/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix gzip files for SafariMorris Jobke2017-03-291-2/+2
| | | | | | | * Safari support gzip only if the filename does not end on .gz - so this renames them to .gzip Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix testsRoeland Jago Douma2017-03-281-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Allow to gzip CSS/JS filesRoeland Jago Douma2017-03-281-1/+10
| | | | | | | | | | Since in production the SCSS files are compiled once and the javascript files are combined once we can just as well gzip them aggresively. This means that once they are requested and the browser supports gzip we can just serve the gzipped file saving precious bandwidth. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Cache SCSS dependency file in memcacheRoeland Jago Douma2017-03-221-8/+20
| | | | | | | Since reading a file from disks can be costly. Lets store the dependency json also in memcache. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add tests for SCSSCacherJulius Härtl2017-03-201-24/+3
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add tests for SCSSCacherJulius Haertl2017-03-201-6/+7
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add variables.scss and import it for each scss fileJulius Haertl2017-03-201-6/+31
| | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
* Properly calculate webdir using the serverrootRoeland Jago Douma2017-03-101-4/+11
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Allow using import in sass filesRoeland Jago Douma2017-03-091-3/+18
| | | | | | | | | This allows us to combine multiple sass files that we have to always load together anyway. Fixes #3389 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Enable every app to generate their scss fileJohn Molakvoæ (skjnldsv)2017-01-221-3/+4
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fix css url prefix for IgnoreFrontController enabled configsJohn Molakvoæ (skjnldsv)2017-01-061-1/+6
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Camelcase fixJohn Molakvoæ (skjnldsv)2017-01-061-2/+2
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>