summaryrefslogtreecommitdiffstats
path: root/lib/private/Template
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* | If for some reason the json can't be decoded it is not cachedRoeland Jago Douma2017-11-081-0/+4
| | | | | | | | | | | | Should fix #6898 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Update license headersMorris Jobke2017-11-066-0/+23
|/ | | | 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>
* Fixed webroot detectionJohn Molakvoæ (skjnldsv)2017-09-221-1/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fix "webroot not found" when installed to the root of the webserverRobin Appelman2017-09-202-4/+4
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix webroot throwJohn Molakvoæ (skjnldsv)2017-09-141-1/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fix undefined variable $tmpRootAxel Helmert2017-09-121-5/+5
| | | | | | Refactoring of webroot detection left an unused variable. Fixes: #6415 Signed-off-by: Axel Helmert <info@luka.de>
* Refactor webroot detection in resource locatortux-rampage2017-09-062-64/+68
| | | | | | | | | | | The current implementation breaks installations with symlinks to directories inside the webroot (i.E. apps). With this change both variants, directory and symlinks, will be detected correctly. Fixes: #6028 Signed-off-by: Axel Helmert <axel.helmert@luka.de>
* Rebuild SCSS files if frontend controller value changesJulius Härtl2017-09-031-1/+2
| | | | fixes #6271
* Cleanup unused methodsMorris Jobke2017-08-151-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Logo claim is not used anymoreMorris Jobke2017-08-021-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Properly handle if the deps file if for some reason emptyMorris Jobke2017-07-191-1/+14
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #5252 from derkostka/masterMorris Jobke2017-06-212-2/+2
|\ | | | | Use realpath to obtain the webroot.
| * Squashed the webroot fixSebastian Kostka2017-06-202-2/+2
| | | | | | | | Signed-off-by: Sebastian Kostka <sebastian.kostka@gmail.com>
* | 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>
* Stop infinit loop on invalid settings css/js fileJoas Schilling2017-05-193-0/+26
| | | | | | Don't try to find dirname of false... Signed-off-by: Joas Schilling <coding@schilljs.com>
* Cache deps list to memcache on write not on first readRoeland Jago Douma2017-05-161-2/+4
| | | | | | | | | | Fixes #4886 Caching on first read leads to the bug that if the files are updated we will never cache again. Since we will always fetch from the memcache (which works) and then see that the files are newer. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>