aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Template
Commit message (Collapse)AuthorAgeFilesLines
* fix(JSResourceLocator) fix incorrect parameter being used.Robert Zenz2025-04-261-1/+1
|
* Check that user actually can validate password for jszorn-v-patch-1zorn-v2025-04-161-1/+1
| | | Signed-off-by: zorn-v <zorn7@yandex.ru>
* fix: Fix types for sharingDisabledForUserCôme Chilliet2025-04-071-2/+5
| | | | | | and use the non-deprecated version whenever possible Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: Remove some call and references to deprecated OC_Util classCôme Chilliet2025-04-071-2/+3
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore(legacy): Remove deprecated OC_Util::addScript and functions depending ↵feat/cleanup-oc-utilCôme Chilliet2025-04-011-17/+1
| | | | | | | | | | on it Deprecated since 24, currently unused. Sadly not all related functions were officially marked as deprecated, but all of them were unused. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: Go back to soft typing for template function pfix/fix-loginflow-v1Côme Chilliet2025-03-241-1/+4
| | | | | | Strong typing breaks legacy code in this case. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore: cleanup human_file_size usageCôme Chilliet2025-03-201-3/+4
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: Remove obsolete component template functionCôme Chilliet2025-03-201-18/+0
| | | | | | | HTML imports are not a thing anymore, they are not supported by any browser. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: Clean up typing and remove deprecated calls in template functionsCôme Chilliet2025-03-201-27/+35
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore: Move template functions out of legacy folderCôme Chilliet2025-03-202-1/+321
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: Remove multiple require_once calls for template functionsCôme Chilliet2025-03-202-2/+1
| | | | | | Only require them when include the template file instead Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: Use a dedicated Exception class for when a template is not foundfix/deprecate-oc-template-and-cleanupCôme Chilliet2025-03-063-20/+20
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: Migrate all uses of OCP\Template to OCP\Template\ITemplateManagerCôme Chilliet2025-03-061-3/+3
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: Cleanup of internal class TemplateLayoutCôme Chilliet2025-03-061-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: Fix signatures and types in template related classesCôme Chilliet2025-03-062-5/+4
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: Fix psalm issues and add missing methods to ITemplate interfaceCôme Chilliet2025-03-062-8/+7
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: Add missing ITemplate interface and clean code in Template classCôme Chilliet2025-03-061-51/+39
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: Deprecate OC_Template, add proper template manager insteadCôme Chilliet2025-03-063-21/+340
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: Replace getInstalledApps calls with getEnabledAppsfix/clarify-app-manager-methodsCôme Chilliet2025-02-131-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* refactor(provisioning_api): Rename AUserData to AUserDataOCSController to ↵provokateurin2025-01-061-2/+2
| | | | | | allow openapi-extractor to detect it as OCS Signed-off-by: provokateurin <kate@provokateurin.de>
* chore(deps): Bump nextcloud/coding-standard in /vendor-bin/cs-fixerdependabot/composer/vendor-bin/cs-fixer/nextcloud/coding-standard-1.3.2dependabot[bot]2024-10-191-13/+13
| | | | | | | | | | | | | | | | | Bumps [nextcloud/coding-standard](https://github.com/nextcloud/coding-standard) from 1.3.1 to 1.3.2. - [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/v1.3.1...v1.3.2) --- updated-dependencies: - dependency-name: nextcloud/coding-standard dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: provokateurin <kate@provokateurin.de>
* chore(legacy): Introduce public version ct plass and drop version methods ↵clean/version-ocpJulius Knorr2024-09-201-3/+5
| | | | | | from OC_Util Signed-off-by: Julius Knorr <jus@bitgrid.net>
* chore(deps): Update nextcloud/coding-standard to v1.3.1provokateurin2024-09-196-33/+33
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* chore: adjust code to adhere to coding standardAnna Larch2024-09-051-1/+1
| | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-251-16/+16
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* feat: Provide CSP nonce as `<meta>` elementFerdinand Thiessen2024-08-131-3/+6
| | | | | | | | This way we use the CSP nonce for dynamically loaded scripts. Important to notice: The CSP nonce must NOT be injected in `content` as this can lead to value exfiltration using e.g. side-channel attacts (CSS selectors). Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* feat: let users configure their first day of weekRichard Steinmetz2024-07-221-1/+5
| | | | Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* feat: Add new forbidden filename options to CapabilitiesFerdinand Thiessen2024-07-111-2/+7
| | | | | | | | | Allow clients to access the new filename validation options and make frontend name validation possible. Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de> Co-authored-by: Kate <26026535+provokateurin@users.noreply.github.com> Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* refactor(Token): introduce scope constantsArthur Schiwon2024-06-051-1/+2
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* fix(Session): avoid password confirmation on SSOArthur Schiwon2024-06-051-36/+37
| | | | | | | | | | | SSO backends like SAML and OIDC tried a trick to suppress password confirmations as they are not possible by design. At least for SAML it was not reliable when existing user backends where used as user repositories. Now we are setting a special scope with the token, and also make sure that the scope is taken over when tokens are regenerated. Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* chore: Add SPDX headerAndy Scherzinger2024-05-248-196/+28
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* feat: Add `forbidden_filename_characters` to JSConfig for use in frontend ↵Ferdinand Thiessen2024-05-161-0/+1
| | | | | | | | | libraries Add the filename restrictions to our JS config so we can create a common frontend library function to check filename validity (de-duplicate code). Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* 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>