aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Template
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* 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>