summaryrefslogtreecommitdiffstats
path: root/lib/private/Template
Commit message (Collapse)AuthorAgeFilesLines
* Fix Lots of Error: file_exists(): open_basedir restriction in effect. in LogKarel Hink2021-10-013-3/+6
| | | | Signed-off-by: Karel Hink <info@karelhink.cz>
* Use product name in places where it is appropriate rather than the instance nameJulius Härtl2021-06-161-0/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-0410-18/+10
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Do not allow to overwrite some variablesJoas Schilling2021-04-271-1/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Separate settings for remote share expirationVincent Petry2021-04-151-0/+10
| | | | | | | Added separate settings for default and enforced expiration date for remote shares. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Fix types in the Group ManagerRoeland Jago Douma2021-03-031-2/+2
| | | | | | | | | Psalm found an issue. However the issue found was because of lying docblocks. Fixed those and did some typing to make it all better. For #25839 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Bump nextcloud/coding-standard from 0.3.0 to 0.5.0dependabot-preview[bot]2021-02-181-3/+3
| | | | | | | | | | Bumps [nextcloud/coding-standard](https://github.com/nextcloud/coding-standard) from 0.3.0 to 0.5.0. - [Release notes](https://github.com/nextcloud/coding-standard/releases) - [Changelog](https://github.com/nextcloud/coding-standard/blob/master/CHANGELOG.md) - [Commits](https://github.com/nextcloud/coding-standard/compare/v0.3.0...v0.5.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #25073 from nextcloud/psalm/24521/remove-unneeded-castsMorris Jobke2021-01-111-45/+45
|\ | | | | Remove unneeded casts that were found by Psalm
| * Remove unneeded casts that were found by PsalmMorris Jobke2021-01-111-45/+45
| | | | | | | | | | | | In preparation of the update of Psalm from 4.2.1 to 4.3.1+ (see https://github.com/nextcloud/server/pull/24521) Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Bump scssphp/scssphp from 1.0.3 to 1.4.0Christoph Wurst2021-01-111-8/+5
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Set the JSCombiner cache if neededRoeland Jago Douma2021-01-061-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>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-162-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* use a consistent default value for sharing.maxAutocompleteResultsArthur Schiwon2020-12-151-2/+3
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* 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>
* Show the full trace of an exceptionChristoph Wurst2020-11-101-1/+2
| | | | | | | | Because often we catch the exception at some point and then the trace is misleading. What's really interesting is the trace of the *previous* exception. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Avoid SCSS compilation if not neededRoeland Jago Douma2020-11-061-3/+13
| | | | | | | | Now we do on each template load a compile with the SCSS variables to see if they changed or not. However there is no real reason for this if the variables didn't change. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #23478 from nextcloud/fix/21059/fix-deadlock-in-scsscacherMorris Jobke2020-10-161-1/+7
|\ | | | | Clear cached app config while waiting for the SCSSCache lock to return
| * 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>
* Format code to a single space around binary operatorsChristoph Wurst2020-10-055-20/+20
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* 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>