aboutsummaryrefslogtreecommitdiffstats
path: root/apps/theming/lib/Controller/ThemingController.php
Commit message (Collapse)AuthorAgeFilesLines
* chore(theming): remove scssphp and just native nested CSSFerdinand Thiessen2025-04-221-6/+2
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* feat(PWA): add `display_override` to set the display-mode to `minimal-ui` on ↵enh/49868/add-display-overrideSimon L.2025-02-281-1/+2
| | | | | | supported browsers Signed-off-by: Simon L. <szaimen@e.mail.de>
* feat(theming): allow to disable standalone windowsenh/noid/allow-disable-pwasSimon L.2025-02-061-1/+1
| | | | | Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de> Signed-off-by: Simon L. <szaimen@e.mail.de>
* fix(theming): Harden admin web link settingsFerdinand Thiessen2025-01-271-3/+5
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* refactor(OpenAPI): Adjust scopes to match previous behaviorprovokateurin2025-01-061-0/+4
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* fix(OpenAPI): Adjust array syntax to avoid ambiguitiesfix/openapi/array-syntaxprovokateurin2024-11-051-1/+1
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* chore(apps): Apply new rector configuration to autouse classesCôme Chilliet2024-10-151-1/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore: Use `IAppConfig` instead of `IConfig->getAppValue`Ferdinand Thiessen2024-09-101-28/+24
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(theming): Use NavigationManager to handle default entriesprovokateurin2024-09-091-3/+7
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* fix(psalm): named attribute argumentMaxence Lange2024-07-291-1/+1
| | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* refactor(theming): Replace security annotations with respective attributesprovokateurin2024-07-271-13/+17
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* chore: Add SPDX headerAndy Scherzinger2024-05-311-35/+2
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* feat(theming): Allow to configure primary color separate from background in ↵Ferdinand Thiessen2024-05-211-9/+6
| | | | | | admin settings Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(manifest): Check if app exists instead of accessing null as an arrayJoas Schilling2024-01-171-2/+10
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-231-5/+6
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* feat(theming): Allow to configure default apps and app order in frontend ↵Ferdinand Thiessen2023-10-201-0/+43
| | | | | | | | | settings * Also add API for setting the value using ajax. * Add cypress tests for app order and defaul apps Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* Fix background removal checkJohn Molakvoæ2023-10-191-1/+1
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Add single status code descriptions for OpenAPIjld31032023-09-271-0/+2
| | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* theming: Add OpenAPI specjld31032023-07-101-7/+30
| | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* Refactors "strpos" calls in /apps/theming to improve code readability.Faraz Samapoor2023-06-021-2/+2
| | | | Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
* Limit key names when uploading theme imagesVincent Petry2023-01-111-1/+14
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Faster theming tests, better colours comparison and properly follow admin ↵John Molakvoæ2022-11-301-0/+21
| | | | | | theming changes Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Add admin user customization kill switchJohn Molakvoæ2022-10-191-0/+5
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Allow to manually specify a theme to apply to a section of an appJohn Molakvoæ2022-08-161-1/+1
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Lint and psalm fixJohn Molakvoæ2022-04-211-1/+1
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Font fixes and design update for theme pickerJohn Molakvoæ2022-04-211-3/+7
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Fix twofactor loading and public imageJohn Molakvoæ2022-04-211-0/+2
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Start theming providersJoas Schilling2022-04-211-69/+40
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* App summary is optionalJoas Schilling2021-11-191-1/+1
| | | | | | | Fixing: Error: Undefined index: summary at /var/www/html/apps/theming/lib/Controller/ThemingController.php#392 Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add support for Delegation Settings for more appsCarl Schwan2021-10-151-0/+3
| | | | | | | | | * This adds support for the sharing, groupware, theming and user_ldap app * This adds some code who disapeared during a rebase in the initial delegation PR (provisioning_api) Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Fix translated app detailsJoas Schilling2021-09-301-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* improve webmanifestszaimen2021-08-241-2/+22
| | | | Signed-off-by: szaimen <szaimen@e.mail.de>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-2/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-161-2/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* manifest to report correct favicon sizenhirokinet2020-10-161-1/+1
| | | | | | | | | In the environment where php-imagick with SVG support is correctly installed, this endpoint returns 512x512 image. https://github.com/nextcloud/server/blob/d9015a8c94bfd71fe484618a06d276701d3bf9ff/apps/theming/lib/Controller/IconController.php#L146 The problem is in the environment without php-imagick or without SVG support, this will fall back to original, whose default is 128x128; but I thought this is a separate problem. (For this, default image may be enlarged. Should I create another issue if this is important one?) Signed-off-by: nhirokinet <nhirokinet@nhiroki.net>
* Format code to a single space around binary operatorsChristoph Wurst2020-10-051-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add occ command to set theming valuesJulius Härtl2020-09-241-60/+4
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Move theming js to initial stateRoeland Jago Douma2020-06-051-33/+0
| | | | | | | | A bit more elegant. Plus it will allow us to also write a proper @nextcloud/theming package. To make life easier down the line for all. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headers for 19Christoph Wurst2020-04-291-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-1/+1
| | | | | | | | | | | | | | | 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>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-311-1/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove unused importsChristoph Wurst2020-03-251-2/+0
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Don't try to resize a svg uploaded as background image.Daniel Kesselberg2020-03-011-2/+1
| | | | | | image* are gd functions without support for svg hence we are not able to resize svg. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Update license headersChristoph Wurst2019-12-051-1/+6
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Allow inline styles for theming imagesJulius Härtl2019-11-271-0/+3
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Some php-cs fixesRoeland Jago Douma2019-11-221-3/+3
| | | | | | | | | | | * 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>
* Validate urls in theming settings and properly handle error messagesJulius Härtl2019-07-311-36/+32
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Don't require Same Site Cookies on assetsThomas Citharel2018-10-171-0/+2
| | | | | | | | Which can be used for public iframe embeeding See https://github.com/nextcloud/calendar/issues/169 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* Disables SVG favicon uploads when imagemagick is missing.Michael Weimann2018-09-051-1/+19
| | | | Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
* [theming] reload css variables instead of the whole server cssJulius Härtl2018-06-201-6/+6
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>