aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Template/JSConfigHelper.php
Commit message (Collapse)AuthorAgeFilesLines
* 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-241-28/+2
| | | | 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>
* Merge branch 'master' into refactor/OC-Server-getShareManagerJohn Molakvoæ2024-03-151-12/+13
|\ | | | | Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
| * 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-231-11/+11
| | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* | Refactor `OC\Server::getShareManager`Andrew Summers2023-08-291-1/+2
|/ | | | Signed-off-by: Andrew Summers <18727110+summersab@users.noreply.github.com>
* Add config and fix seleniumJohn Molakvoæ2022-10-191-9/+9
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* 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>
* 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>
* Remove shortFooter/longFooter to avoid unnecessary navigation loadingJulius Härtl2022-01-121-2/+0
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* 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-041-2/+2
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.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>
* 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>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-161-0/+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>
* 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-291-1/+0
| | | | 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-101-3/+2
| | | | | | | | | | | | | | | 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-101-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the short array syntax, everywhereChristoph Wurst2020-03-261-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-051-1/+4
| | | | 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-221-0/+1
| | | | | | | | | | | * 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>
* 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>
* Expose the info to the JSRoeland Jago Douma2018-11-021-3/+10
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* add global site selector as user back-end which doesn't support password ↵Bjoern Schiessle2018-10-271-1/+4
| | | | | | confirmation Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* expose capabilities in jsBjoern Schiessle2018-02-271-1/+11
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* 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>