aboutsummaryrefslogtreecommitdiffstats
path: root/apps/settings/lib/Controller/AppSettingsController.php
Commit message (Collapse)AuthorAgeFilesLines
* fix(AppDiscover): Ensure created cache folder is safe-chars onlyappStoreCacheFolderGit'Fellow2025-03-101-1/+3
| | | | Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
* chore: Apply new rector configuration to apps folderCôme Chilliet2025-02-131-2/+3
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore: re-apply current rector configuration to apps folderCôme Chilliet2025-02-131-1/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: Replace isInstalled calls with isEnabledForAnyone or isEnabledForUserCôme Chilliet2025-02-131-2/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(apps-store): Remove apps from force-enabled state when uninstalledfix/app-store-remove-force-enableFerdinand Thiessen2024-11-181-3/+5
| | | | | | | | | If an app is force-enabled and then uninstalled the force-enabled state was kept. This is now removed, so when the app should be re-installed the compatibility should be reevaluated. Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de> Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(ci): psalm, suppress undefined for viewAppsAndrey Borysenko2024-10-291-0/+2
| | | | Signed-off-by: Andrey Borysenko <andrey18106x@gmail.com>
* WIP: address review comments, small fixesAndrey Borysenko2024-10-291-35/+7
| | | | Signed-off-by: Andrey Borysenko <andrey18106x@gmail.com>
* fix(ci): suppress UndefinedClass for AppAPI related classes since it's bundledAndrey Borysenko2024-10-291-0/+3
| | | | Signed-off-by: Andrey Borysenko <andrey18106x@gmail.com>
* feat(app_api): add initial state data for AppAPI UI partAndrey Borysenko2024-10-291-0/+34
| | | | | | | | | | Signed-off-by: Andrey Borysenko <andrey18106x@gmail.com> # Conflicts: # apps/settings/lib/Controller/AppSettingsController.php # Conflicts: # apps/settings/lib/Controller/AppSettingsController.php
* fix(appsmanagement): Fix exception on generating preview url for screenshotsClaudio Cambra2024-10-281-2/+8
| | | | | | | | | Some installed apps meant for older server versions might unexpectedly offer up screenshot values in a non-string format (e.g. health). Avoid an exception by checking first if the first app screenshot is indeed a string and otherwise we take the value of the parameter Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
* Merge pull request #48854 from nextcloud/fix/proxy-app-screenshotKate2024-10-231-1/+15
|\
| * fix(app-store): Also proxy images of locally installed appsfix/proxy-app-screenshotFerdinand Thiessen2024-10-231-1/+15
| | | | | | | | | | | | | | Before this only app store apps got their screenshots proxied, but this will cause locally installed apps to not be correctly shown on the app-store. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* | fix(app-store): Ensure the `groups` property is always an arrayfix/app-store-groupsFerdinand Thiessen2024-10-231-0/+4
|/ | | | | | | If the value was a string, like a single group, then `json_decode` will also yield only a string. So in this case we ensure the property is always an array with that value. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(appstore): Hide last modified information for shipped appsfix/45717/hide-last-modified-for-shipped-appsMarcel Müller2024-10-161-1/+1
| | | | Signed-off-by: Marcel Müller <marcel-mueller@gmx.de>
* chore(apps): Apply new rector configuration to autouse classesCôme Chilliet2024-10-151-3/+5
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: Ensure app discover section is returned as listfix/app-discoverFerdinand Thiessen2024-09-241-1/+1
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* chore(deps): Update nextcloud/coding-standard to v1.3.1provokateurin2024-09-191-1/+1
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* chore: Migrate cleanAppId and getAppPath calls to IAppManager from OC_AppCôme Chilliet2024-09-131-6/+5
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* refactor(settings): Replace security annotations with respective attributesprovokateurin2024-07-271-16/+12
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* chore: Add SPDX headerAndy Scherzinger2024-06-031-30/+3
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix: Migrate a few more classes away from OC_App::getAppPathCôme Chilliet2024-04-221-1/+1
| | | | | | Also fixed AppTest Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(AppDiscoverFetcher): Do not remove entries as expired that have no ↵Ferdinand Thiessen2024-03-191-1/+1
| | | | | | expiry date Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* feat(settings): Cache app discover images to ensure privacy of usersFerdinand Thiessen2024-03-141-4/+104
| | | | | | | Co-authored-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com> Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de> Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* feat: Allow to fetch app discover json and provide frontend API routeFerdinand Thiessen2024-03-141-0/+14
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* Merge branch 'master' into fix/pages-titles-appsAndrii Rublov2024-02-251-77/+30
|\ | | | | Signed-off-by: Andrii Rublov <github.a@rublov.me>
| * fix(settings): Use initial state instead of custom state for server dataFerdinand Thiessen2024-02-231-67/+26
| | | | | | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
| * fix(settings): Only use `id` in categories - drop duplicated `ident` propertyFerdinand Thiessen2024-02-231-10/+4
| | | | | | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* | [Bugfix]: Titles of pages (dashboard, apps-settings, users-settings) #43327Andrii Rublov2024-02-231-1/+1
|/ | | | Signed-off-by: Andrii Rublov <airublev@outlook.com>
* refactor: Migrate IgnoreOpenAPI attributes to OpenAPIprovokateurin2024-01-181-2/+2
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* Fix AppSettingsController.php overwriting currentLanguage1 Man Projects2023-12-051-1/+1
| | | | | Fix for CurrentLanguage being overwritten by currentVersion thus breaking App-View Signed-off-by: 1 Man Projects <reed@1manprojects.de>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-231-12/+12
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* settings: Add OpenAPI specjld31032023-07-101-0/+3
| | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* Uses "Null Coalescing Operator" to improve code readability.Faraz Samapoor2023-05-311-4/+4
| | | | Signed-off-by: Faraz Samapoor <fsa@adlas.at>
* Create headings for settings pagesjulia.kirschenheuter2023-03-071-1/+1
| | | | Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com>
* Extract $ignoreMaxApps from array_map callback in AppSettingsControllerThomas Citharel2022-10-221-7/+7
| | | | Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* l10n: Delete apostropheValdnet2022-06-071-2/+2
| | | Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
* Cleanup admin settings js filesCarl Schwan2022-02-171-1/+0
| | | | | | | | | | | | | * Move admin.js to webpack, so that this use the bundled jquery files instead of the deprecated window.$ Also fixing formatting * Remove log.js that seems to be from a time where logreader was bundled with server and I couldn't find an usage of it anymore * Fix recent regression in rebuild navigation function (now not depending on jquery anymore and bundled by webpack). Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* fix appstoreenabled check in Fetcher so it's coherent with AppSettingsControllerJulien Veyssier2021-10-181-1/+1
| | | | Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
* add 'supported'-label to all supported apps, also if they are not downloaded yetBjoern Schiessle2021-10-061-0/+5
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-2/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Move away some ILoggersRoeland Jago Douma2021-03-021-6/+6
| | | | | | Makes psalm happier Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Show changelog in apps managementJulius Härtl2020-09-031-0/+1
| | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-27/+23
| | | | | | | | | | | | | | | 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>
* Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-091-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-311-0/+2
| | | | 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>
* Make sure app_install_overwrite is an arrayDaniel Kesselberg2020-03-161-0/+4
| | | | | | otherwise in_array will complain. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* apps can have polyamorous relationships with bundlesArthur Schiwon2020-01-241-1/+1
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Allow to force enable apps via CLIJoas Schilling2019-12-131-7/+1
| | | | | | Co-authored-by: Christoph Wurst <christoph@winzerhof-wurst.at> Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-051-4/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>