summaryrefslogtreecommitdiffstats
path: root/lib/private/Template
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* Fix accessibility invertJohn Molakvoæ (skjnldsv)2018-07-191-2/+2
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fixed icons detection and cachingJohn Molakvoæ (skjnldsv)2018-07-191-5/+13
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Mixin scss icon apiJohn Molakvoæ (skjnldsv)2018-07-192-36/+212
| | | | 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-072-8/+18
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Check if the cached js file existsRoeland Jago Douma2018-03-071-1/+8
| | | | | | | | | Fixes #8705 If the file does not exist (for whatever reason). It is never cached. No matter what the depscache etc tell you. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #7363 from nextcloud/default-share-permsMorris Jobke2018-02-271-1/+11
|\ | | | | Let the admin configure the default share permissions
| * expose capabilities in jsBjoern Schiessle2018-02-271-1/+11
| | | | | | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* | Expose parameters as variables to templatesJulius Härtl2018-02-271-1/+4
|/ | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Move depsCache clearing to SCSSCacher/JSCombinerJulius Härtl2018-02-032-6/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add repair step to clear frontend related cachesJulius Härtl2018-02-032-6/+24
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #8078 from nextcloud/theming-validate-scssMorris Jobke2018-01-291-16/+41
|\ | | | | SCSS hardening
| * 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>
* | Remove unneeded semicolon and parenthesesMorris Jobke2018-01-261-1/+1
|/ | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Simplify ternary operator statementsMorris Jobke2018-01-261-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use type casting instead of *val() methodMorris Jobke2018-01-261-2/+2
| | | | | | It should be up to 6x faster Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fixes password input being prompted every time.Abijeet2018-01-081-0/+1
| | | | | | | | | Fixes #7106 - Echoing the current server time via a JS variable and storing the current time on page load in JS. - Calculating the diff and taking it into account when deciding whether to show the password confirmation. Signed-off-by: Abijeet <abijeetpatro@gmail.com>
* disable password confirmation with SSOBjoern Schiessle2018-01-021-0/+3
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* 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-302-9/+11
| | | | | | 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>
* Hide delete button if the avatar is a generated oneJulius Härtl2017-12-191-0/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Reduce length of md5 in scss cachingJohn Molakvoæ (skjnldsv)2017-12-141-2/+2
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Merge pull request #7061 from kyrofa/bugfix/6028/app_path_realpathMorris Jobke2017-11-142-0/+12
|\ | | | | {J,CS}SResourceLocator: account for symlinks in app path
| * JSResourceLocator: re-use $app_pathKyle Fazzari2017-11-121-7/+9
| | | | | | | | Signed-off-by: Kyle Fazzari <kyrofa@ubuntu.com>
| * JSResourceLocator: account for symlinks in app pathKyle Fazzari2017-11-071-3/+8
| | | | | | | | Signed-off-by: Kyle Fazzari <kyrofa@ubuntu.com>
| * CSSResourceLocator: account for symlinks in app pathKyle Fazzari2017-11-031-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | Currently, if the app path includes a symlink, the calculated webDir will be incorrect when generating CSS and URLs will be pointing to the wrong place, breaking CSS. Use realpath when retrieving app path, and these issues go away. Fix #6028 Signed-off-by: Kyle Fazzari <kyrofa@ubuntu.com>