summaryrefslogtreecommitdiffstats
path: root/lib/private/Template
Commit message (Collapse)AuthorAgeFilesLines
* Set the JSCombiner cache if neededRoeland Jago Douma2021-01-071-0/+6
| | | | | | | | | | | | Found while debugging a customer setup. They had to flush their Redis. Hence the info was no longer there. Since they also used S3 this meant requesting the files over and over on template render. Which on S3 is not cheap. Now we just write it back if we can't get it from the cache in the first place. So that the next run has it cached properly again. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix the config key on the sharing expire checkboxChristoph Wurst2020-11-241-1/+1
| | | | | | | We don't use `shareapi_internal_enforce_expire_date` anywhere. `shareapi_enforce_internal_expire_date` is the one we want. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Clear cached app config while waiting for the SCSSCache to finish processing ↵Morris Jobke2020-10-161-1/+7
| | | | | | the file Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* SCSSCacher - Lock should not be removedMorris Jobke2020-10-161-1/+0
| | | | | | This is within the failed lock acquiring branch. So the lock is free by another process and should not be removed because the cached file (that was created by the process having the lock) appeared on the filesystem. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Provide log statements for SCSS cacheMorris Jobke2020-10-161-10/+25
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use the correct root to determinate the webroot for the resourceJoas Schilling2020-09-021-2/+2
| | | | | | | Since all the compiled routes are based on the server webroot, we have to use this, independent from which app this belongs to. Signed-off-by: Joas Schilling <coding@schilljs.com>
* Give up after 10 seconds in SCSS timeoutRoeland Jago Douma2020-06-191-1/+1
| | | | | | Else we keep idling for ages which leads to bad UX Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Move to @nextcloud/capabilities packageRoeland Jago Douma2020-05-291-1/+0
| | | | | | And kill of oc_capabilities and _oc_capabilities globals Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Provide capabilities via initialstateRoeland Jago Douma2020-05-181-0/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update license headers for 19Christoph Wurst2020-04-294-1/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Provide config though initial state serviceJulius Härtl2020-04-231-23/+34
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-107-27/+18
| | | | | | | | | | | | | | | 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 elseif instead of else ifChristoph Wurst2020-04-102-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove trailing and in between spacesChristoph Wurst2020-04-091-4/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-092-5/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-315-0/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the short array syntax, everywhereChristoph Wurst2020-03-265-7/+7
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use lowercase true, false and null constantsChristoph Wurst2020-03-251-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Migrate leafo/scssphp to scssphp/scssphpChristoph Wurst2020-01-231-6/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-0510-12/+26
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Expose internal expiration dates to JSRoeland Jago Douma2019-11-271-1/+11
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Some php-cs fixesRoeland Jago Douma2019-11-224-5/+7
| | | | | | | | | | | * 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-122-18/+77
| | | | | | | | | 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>
* Fall back to black for non-color valuesJoas Schilling2019-06-201-0/+5
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Move OC.theme to the bundle and deprecate oc_defaultsChristoph Wurst2019-05-141-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Move OC.getCapabilities to the bundle and deprecate OC._capabilities, ↵Christoph Wurst2019-05-131-1/+1
| | | | | | oc_capabilities Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Move OC.appswebroots to the bundle and deprecate oc_appswebrootsChristoph Wurst2019-05-071-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Move oc_webroot, OC.webroot and OC.getRootPath() to the bundleChristoph Wurst2019-05-061-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Move oc_debug to the bundleChristoph Wurst2019-05-061-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Deprecate oc_isadmin and move OC.isUserAdmin() to the bundleChristoph Wurst2019-05-031-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Move oc_config to the bundleChristoph Wurst2019-05-021-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove spaming debug logsJoas Schilling2019-03-151-1/+0
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Cleanup some PHPDoc leftovers and unused variablesMorris Jobke2019-03-061-1/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix colorizeSvg with transformations that contain a comma (,)Joas Schilling2019-01-171-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* more caching for themingRobin Appelman2018-12-071-2/+13
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Do not fail if the icon file doesn't existsJulius Härtl2018-11-121-2/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Make sure to always load the latest icons-vars.css fileJulius Härtl2018-11-121-3/+15
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Expose the info to the JSRoeland Jago Douma2018-11-021-3/+10
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #12085 from nextcloud/add-gss-to-excluded-backendsMorris Jobke2018-10-301-1/+4
|\ | | | | add global site selector as user back-end which doesn't support password confirmation
| * add global site selector as user back-end which doesn't support password ↵Bjoern Schiessle2018-10-271-1/+4
| | | | | | | | | | | | confirmation Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* | Fix testsJulius Härtl2018-10-291-1/+4
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Fix icon cacher url matchingJulius Härtl2018-10-291-14/+13
|/ | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Keep list of icons in a separate file for use in the accessibility appJulius Härtl2018-10-251-49/+85
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Remove default which didn't workJulius Härtl2018-10-251-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Properly track data urls as wellJulius Härtl2018-10-251-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Directly embed icons into the icon-vars css fileJulius Härtl2018-10-251-1/+48
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Load apps/APP/l10n/*.js and themes/THEME/apps/APP/l10n/*.jsMorris Jobke2018-10-221-0/+1
| | | | | | Before it quit right after finding the theme version of the l10n file which results in a not translated part of the UI. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix icons cacher regex for compressed outputJohn Molakvoæ (skjnldsv)2018-09-191-1/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>