aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Template
Commit message (Collapse)AuthorAgeFilesLines
* fix: Apply new coding standard to all filesCôme Chilliet2024-04-021-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(JSRecourceLocator): Add missing slash after server rootFerdinand Thiessen2024-03-221-1/+1
| | | | | | The `OC::$SERVERROOT` is always returned without a trailing slash, so we need to add a slash between server root and apps directory. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* Merge branch 'master' into refactor/OC-Server-getShareManagerJohn Molakvoæ2024-03-153-50/+38
|\ | | | | Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
| * fix(JSResourceLocator): Consider configured app roots for filesFerdinand Thiessen2024-02-291-40/+22
| | | | | | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
| * Add global accessibility switchLouis Chemineau2023-12-191-1/+2
| | | | | | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
| * chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-232-15/+15
| | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
| * Add custom apps translation scripts and image path for consistencyAkhil2023-10-191-2/+7
| | | | | | | | Signed-off-by: Akhil <akhil@e.email>
* | Refactor `OC\Server::getShareManager`Andrew Summers2023-08-291-1/+2
|/ | | | Signed-off-by: Andrew Summers <18727110+summersab@users.noreply.github.com>
* Merge pull request #38261 from fsamapoor/replace_strpos_calls_in_lib_privateRobin Appelman2023-06-011-2/+2
|\ | | | | Refactors "strpos" calls in lib/private to improve code readability.
| * Refactors "strpos" calls in lib/private to improve code readability.Faraz Samapoor2023-05-151-2/+2
| | | | | | | | Signed-off-by: Faraz Samapoor <fsamapoor@gmail.com>
* | fix: Do not attempt to use l10n files as sources for combined js filesJulius Härtl2023-05-151-1/+1
|/ | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* fix(JSResourceLocator): Handle missing translations silentlyFerdinand Thiessen2023-05-111-9/+16
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(OC/Template): Allow `.mjs` files within custom app pathsFerdinand Thiessen2023-02-221-29/+21
| | | | | | | | | | If apps are installed in non standard app paths, we need to check `$app_path/$script` instead of only doing so for translations. Without this it would fallback to `.js` extension even if a `.mjs` file exists. Also tried make the code more selfe explaining. Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
* feat(template): Allow `JSResourceLocator` to find ES6 scriptsFerdinand Thiessen2023-02-221-17/+28
| | | | | | | | Enable module js (ES6) support on the `JSResourceLocator`. This changes `JSResourceLocator` to look for `.mjs` files first to allow applications to provide a fallback `.js` for older Nextcloud versions. Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
* fix(OC/Template): Remove usage of deprecated functions in `JSResourceLocator`Ferdinand Thiessen2023-02-221-5/+25
| | | | | | Move from `\OC_App::getAppPath` to `IAppManager::getAppPath`. Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
* fix: Fix loading styles from core/css/Julius Härtl2023-02-201-2/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* composer run cs:fixCôme Chilliet2023-01-202-2/+0
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Catch NotFoundException as well in JSCombinerThomas Citharel2022-12-081-1/+1
| | | | | | Follow-up to #35576 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* Drop 3rdparty root since it is unused and adjust testsJulius Härtl2022-12-073-9/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Use single resource locator instanceJulius Härtl2022-12-073-20/+11
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add config and fix seleniumJohn Molakvoæ2022-10-191-9/+9
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Fix various other small psalm issuesCarl Schwan2022-10-171-1/+1
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Make it possible to load theme/<themename>/distCarl Schwan2022-08-261-1/+3
| | | | | | | This fix a regression with the theming api following the change in webpack bundling introduced in 24 Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Hide deprecated projects in sharing tab by defaultChristopher Ng2022-08-181-0/+2
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Feature: Add and expose frontend loglevelFerdinand Thiessen2022-06-061-0/+4
| | | | | | | | | | This adds a new config variable `loglevel_frontend`, allowing to configure the logging level of the browser part as requested in nextcloud/nextcloud-logger#141 If not configured the `loglevel` is used as the fallback. Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
* Restore old behaviour of sending flase for not found appsJoas Schilling2022-05-301-2/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Improve JSConfigHelper code quality a bitJoas Schilling2022-05-301-53/+24
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Remove SCSSCacherJohn Molakvoæ2022-05-132-534/+2
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Remove old legacy SvgController and IconsCacherJohn Molakvoæ2022-05-102-294/+1
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Don't inject Bruteforce capability info in the webuiCarl Schwan2022-04-071-1/+1
| | | | | | | This capability do DB access and as far I know is not used by the webui. This remove one DB query for each page load. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Fix codestyleCôme Chilliet2022-03-242-2/+0
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Migrate from ILogger to LoggerInterface in lib/privateCôme Chilliet2022-03-246-42/+21
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Avoid double-loading dist/core-main.js when apps have scripts named mainJulius Härtl2022-03-081-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Remove shortFooter/longFooter to avoid unnecessary navigation loadingJulius Härtl2022-01-121-2/+0
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Detect app's script higher up as some scripts were shadowedLouis Chemineau2022-01-081-0/+1
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Restore some line in JSResourceLocator.phpLouis Chemineau2022-01-081-5/+7
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Move bundles to /distJohn Molakvoæ (skjnldsv)2022-01-081-8/+11
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Follow upstream security recommandationCarl Schwan2021-12-021-3/+2
| | | | | | See https://scssphp.github.io/scssphp/docs/#security-considerations Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Correct comment about OC_Defaults being usedMichaIng2021-11-151-1/+1
| | | | Signed-off-by: MichaIng <micha@dietpi.com>
* Fix core depending on theming appCarl Schwan2021-11-121-4/+3
| | | | | | | | | | This was introduced in https://github.com/nextcloud/server/commit/309354852f12ae88d5eef05d311d6ebcba8ee762 to fix a bug but I can't reproduce the bug after reverting this change. Ideally we would need to create an interface in OCP and cleanup OC_Defaults instead of depending on OC_Defaults. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Profile backendChristopher Ng2021-10-191-4/+5
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Fix Lots of Error: file_exists(): open_basedir restriction in effect. in LogKarel Hink2021-07-303-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>