summaryrefslogtreecommitdiffstats
path: root/apps/theming/lib
Commit message (Collapse)AuthorAgeFilesLines
* Improve caching policyCarl Schwan2022-02-181-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>
* 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>
* Merge pull request #29240 from nextcloud/work/admin-delegation-implementationCarl Schwan2021-10-152-2/+15
|\ | | | | Add support for Delegation Settings for more apps
| * Add support for Delegation Settings for more appsCarl Schwan2021-10-152-2/+15
| | | | | | | | | | | | | | | | | | * 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>
* | Don't setup the filesystem to check for a favicon we don't use anywayJoas Schilling2021-10-131-8/+11
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix translated app detailsJoas Schilling2021-09-301-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* improve webmanifestszaimen2021-08-242-3/+23
| | | | Signed-off-by: szaimen <szaimen@e.mail.de>
* Merge pull request #26481 from ghost/fdroidJulius Härtl2021-07-131-0/+9
|\
| * Add F-DroidHouraisanNEET2021-07-041-0/+9
| | | | | | | | Signed-off-by: HouraisanNEET <HouraisanNEET@users.noreply.github.com>
* | Fix Psalm code scanning alertsMichaIng2021-07-121-6/+9
| | | | | | | | | | | | | | | | | | | | | | InvalidScalarArgument (apps/theming/lib/IconBuilder.php#L213): https://github.com/nextcloud/server/security/code-scanning/6691 InvalidScalarArgument (apps/theming/lib/IconBuilder.php#L213): https://github.com/nextcloud/server/security/code-scanning/6692 MissingReturnType (apps/theming/lib/IconBuilder.php#L226): https://github.com/nextcloud/server/security/code-scanning/6693 MissingParamType (apps/theming/lib/IconBuilder.php#L226): https://github.com/nextcloud/server/security/code-scanning/6694 MissingParamType (apps/theming/lib/IconBuilder.php#L226): https://github.com/nextcloud/server/security/code-scanning/6695 PossiblyFalseArgument (apps/theming/lib/IconBuilder.php#L232): https://github.com/nextcloud/server/security/code-scanning/6696 Signed-off-by: MichaIng <micha@dietpi.com>
* | Validate the theming color also on CLIJoas Schilling2021-06-252-1/+10
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Fix default product name for old themesMorris Jobke2021-06-161-1/+1
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Add dedicated product name to OCP\DefaultsJulius Härtl2021-06-161-0/+7
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Update php licensesJohn Molakvoæ (skjnldsv)2021-06-0413-28/+17
|/ | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Allow webp as background imageste1012021-03-091-1/+1
|
* Bump nextcloud/coding-standard from 0.3.0 to 0.5.0dependabot-preview[bot]2021-02-181-2/+2
| | | | | | | | | | Bumps [nextcloud/coding-standard](https://github.com/nextcloud/coding-standard) from 0.3.0 to 0.5.0. - [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/v0.3.0...v0.5.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove unneeded casts that were found by PsalmMorris Jobke2021-01-111-2/+2
| | | | | | 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-168-5/+12
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Store scss variables under a different prefix for each theming config versionJulius Härtl2020-11-301-2/+3
| | | | | | | | | The main issue with using the general theming- prefix is that with APCu caching the cache is not shared between processes, so when trying to reset the cache through the CLI, e.g. when updating the theming config the old cache is never invalidated. Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Optimize chek if background is themedJulius Härtl2020-11-231-8/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Fix setting images through occ for themingJulius Härtl2020-11-191-4/+5
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* override default dashboard background with theming oneJulien Veyssier2020-11-135-10/+10
| | | | | | | | fix getAppValue default value in theming app fix cacheBuster value injection Signed-off-by: Julien Veyssier <eneiluj@posteo.net> Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
* Shortcut to avoid file system setup when generating the logo URLMorris Jobke2020-11-091-5/+14
| | | | | | If an SVG is requested and the app config value for logoMime is set then the logo is there. Otherwise we need to check it and maybe also generate a PNG from the SVG (that's done in getImage() which needs to be called then). Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Cleanup ImageManager::getImage()Morris Jobke2020-11-041-6/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add gif to if-statement to not convertJacob Neplokh2020-11-021-1/+1
| | | | | | - SVGs are already there, so I just added it alongside it (as recommended by https://github.com/nextcloud/server/issues/16232#issuecomment-679920284) Signed-off-by: Jacob Neplokh <me@jacobneplokh.com>
* Enable theming background transparencyJohn Molakvoæ (skjnldsv)2020-10-251-1/+5
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* 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>
* Allow setting favicon with a .ico fileGary Kim2020-10-141-0/+5
| | | | Signed-off-by: Gary Kim <gary@garykim.dev>
* Format code to a single space around binary operatorsChristoph Wurst2020-10-055-18/+18
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add occ command to set theming valuesJulius Härtl2020-09-244-72/+207
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-242-1/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use IBootstrap for the app themingMorris Jobke2020-07-242-15/+97
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Precalculate the primary element color for dark mode tooJoas Schilling2020-06-262-4/+15
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Set serverBackground if it is a custom background or default hubGretaD2020-06-081-2/+2
| | | | Signed-off-by: GretaD <gretadoci@gmail.com>
* Move theming js to initial stateRoeland Jago Douma2020-06-053-34/+85
| | | | | | | | 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-295-0/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Provide the proper language to the mailerRoeland Jago Douma2020-04-161-2/+2
| | | | | | | Else we can't properly translate the footer in the recipients e-mail language. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-107-26/+26
| | | | | | | | | | | | | | | 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>
* Remove trailing and in between spacesChristoph Wurst2020-04-091-2/+2
| | | | 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-312-2/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #20170 from nextcloud/techdebt/remove-unused-importsChristoph Wurst2020-03-271-2/+0
|\ | | | | Remove unused imports
| * Remove unused importsChristoph Wurst2020-03-251-2/+0
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Use the short array syntax, everywhereChristoph Wurst2020-03-261-3/+3
|/ | | | 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>
* Migrate leafo/scssphp to scssphp/scssphpChristoph Wurst2020-01-231-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use themed favicon-fbJulius Härtl2020-01-211-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Update license headers for 18Christoph Wurst2019-12-201-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-0510-15/+37
| | | | 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>