aboutsummaryrefslogtreecommitdiffstats
path: root/apps/theming/lib/Controller/IconController.php
Commit message (Collapse)AuthorAgeFilesLines
* refactor(OpenAPI): Adjust scopes to match previous behaviorprovokateurin2025-01-061-0/+4
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* refactor(apps): Use constructor property promotion when possibleprovokateurin2024-10-211-17/+4
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* chore(deps): Update nextcloud/coding-standard to v1.3.1provokateurin2024-09-191-1/+1
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* refactor(theming): Replace security annotations with respective attributesprovokateurin2024-07-271-9/+8
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* chore: Add SPDX headerAndy Scherzinger2024-05-311-25/+2
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix(manifest): Check if app exists instead of accessing null as an arrayJoas Schilling2024-01-171-11/+19
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-231-1/+1
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* theming: Add OpenAPI specjld31032023-07-101-7/+19
| | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* generate user themed favicon and touchiconSimon L2023-06-161-4/+6
| | | | Signed-off-by: Simon L <szaimen@e.mail.de>
* generate user themed iconsSimon L2022-11-181-3/+4
| | | | | | Signed-off-by: Simon L <szaimen@e.mail.de> Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com> Co-Authored-By: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
* Improve caching policyCarl Schwan2022-02-161-1/+1
| | | | | | | | | | | | | | * Cache css with version in url. This makes most js and css requests to be cached by the browser * Force caching previews, the etag is in the url so that if the propfind gives a new etag, we will refresh it otherwise it's no use to try to fetch the new etag and do tons of DB queries Tested with firefox and 'debug' => false (important so that the js/css urls are generated with ?v= parameter) Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Add better error handlingCarl Schwan2022-01-271-2/+8
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Fix registerEventListener issuesCarl Schwan2022-01-271-2/+1
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Fix psalm issues in theming appCarl Schwan2022-01-261-15/+8
| | | | | | | | After this change, we are down to only one psalm warning for this app and related to the Application.php. This also make composer psam:update-baseline not silently ignore new errors. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-2/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* 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-2/+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>
* Update license headersChristoph Wurst2019-12-051-1/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Some php-cs fixesRoeland Jago Douma2019-11-221-2/+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>
* Disables SVG favicon uploads when imagemagick is missing.Michael Weimann2018-09-051-1/+1
| | | | Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
* Merge pull request #9258 from nextcloud/theming-logo-pngMorris Jobke2018-06-151-2/+2
|\ | | | | Convert theming app logo to PNG to show it properly in emails
| * Minor fixes and cleanupJulius Härtl2018-06-061-2/+2
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Fix possible test timing issues in IconControllerRoeland Jago Douma2018-06-131-6/+0
|/ | | | | | | Since the response now handles the caching. We need to provide a default ITimeFactory mock. Else you might have failing tests. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix usageRoeland Jago Douma2018-06-041-15/+0
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Move to more generic image handling and add extra imagesJulius Härtl2018-04-191-21/+25
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Update license headersMorris Jobke2017-11-061-0/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Inject FileAccessHelper for proper testingJulius Härtl2017-05-181-7/+7
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add proper Content-Type to iconsJulius Härtl2017-05-171-2/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Fallback to default faviconJulius Härtl2017-05-171-17/+31
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Fix theming testsJoas Schilling2017-04-201-4/+4
| | | | | | | Trying to configure method "shouldReplaceIcons" which cannot be configured because it does not exist, has not been specified, is final, or is static Signed-off-by: Joas Schilling <coding@schilljs.com>
* Move OC_Defaults to OCP\DefaultsMorris Jobke2017-04-091-4/+4
| | | | | | | | | | | | | * currently there are two ways to access default values: OCP\Defaults or OC_Defaults (which is extended by OCA\Theming\ThemingDefaults) * our code used a mixture of both of them, which made it hard to work on theme values * this extended the public interface with the missing methods and uses them everywhere to only rely on the public interface Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Check if image files for theming are emptyJulius Haertl2016-12-091-0/+3
| | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
* Error handling and tests if file was not foundJulius Haertl2016-11-181-39/+38
| | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
* Sanitize input and small fixesJulius Haertl2016-11-181-2/+5
| | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
* Replace null return with NotFoundExceptionJulius Haertl2016-11-181-7/+11
| | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
* Improve cachingJulius Haertl2016-11-181-17/+30
| | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
* Caching for icon files using AppDataJulius Haertl2016-11-181-16/+37
| | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
* Theming: Code cleanup and cache buster for mime iconsJulius Haertl2016-11-181-32/+8
| | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
* Check if dynamic icons can be usedJulius Haertl2016-11-181-20/+14
| | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
* Add IconBuilder class to encapsulate icon generationJulius Haertl2016-11-181-84/+33
| | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
* Improve unit tests for image generationJulius Haertl2016-11-181-79/+5
| | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
* Theming: Add IconController testsJulius Haertl2016-11-181-19/+6
| | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
* Fix IconController after rebaseJulius Haertl2016-11-181-12/+12
| | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
* Theming: Add icon cachingJulius Haertl2016-11-181-3/+5
| | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
* Theming: Fix default parameters in icon routesJulius Haertl2016-11-181-2/+2
| | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
* Theming: Add PHPdoc and icon fallback to theming logoJulius Haertl2016-11-181-1/+26
| | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
* Theming: Add favicon-touch and fix icon creation with non svg imagesJulius Haertl2016-11-181-31/+65
| | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
* Theming: Add dynamic icon and favicon endpointsJulius Haertl2016-11-181-0/+241
Signed-off-by: Julius Haertl <jus@bitgrid.net>