summaryrefslogtreecommitdiffstats
path: root/lib/private/Template
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* 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>
* Icons cacher css url fixJohn Molakvoæ (skjnldsv)2018-08-071-1/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Append cache bump parameter to scss files URLJulius Härtl2018-08-011-1/+5
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Fix regex for icon urlsJulius Härtl2018-07-261-2/+2
| | | | | | | | Use the version from the url rather than hardcoding v=1. Also allow uppercase chars in the url, so that uppercase hex color values will also be included 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>
* UppercaseJohn Molakvoæ (skjnldsv)2018-07-241-1/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fix regex of iconsCacherJohn Molakvoæ (skjnldsv)2018-07-241-1/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Php code bumpJohn Molakvoæ (skjnldsv)2018-07-191-0/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fix icon url regexJulius Härtl2018-07-191-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* 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-192-15/+12
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>