Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-05-31Properly calculate primary element based on background luminancefix/theming-colours-primary-24John Molakvoæ
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2022-02-16Improve caching policyCarl Schwan
* 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>
2022-02-02Avoid file system access on checking if an image existsJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-01-27Add better error handlingCarl Schwan
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-01-27Fix registerEventListener issuesCarl Schwan
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-01-26Fix psalm issues in theming appCarl Schwan
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>
2022-01-08Fix dynamic loadingJohn Molakvoæ (skjnldsv)
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2021-12-02Follow upstream security recommandationCarl Schwan
See https://scssphp.github.io/scssphp/docs/#security-considerations Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2021-12-02Add rgb to hsl converterCarl Schwan
This ports away from using now internal functions from scssphp. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2021-11-23Fix ArrayAccess and JsonSerializable return typesCôme Chilliet
First round of modifications for PHP 8.1 Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2021-11-19App summary is optionalJoas Schilling
Fixing: Error: Undefined index: summary at /var/www/html/apps/theming/lib/Controller/ThemingController.php#392 Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-10-15Merge pull request #29240 from nextcloud/work/admin-delegation-implementationCarl Schwan
Add support for Delegation Settings for more apps
2021-10-15Add support for Delegation Settings for more appsCarl Schwan
* 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>
2021-10-13Don't setup the filesystem to check for a favicon we don't use anywayJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-09-30Fix translated app detailsJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-08-24improve webmanifestszaimen
Signed-off-by: szaimen <szaimen@e.mail.de>
2021-07-13Merge pull request #26481 from ghost/fdroidJulius Härtl
2021-07-12Fix Psalm code scanning alertsMichaIng
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>
2021-07-04Add F-DroidHouraisanNEET
Signed-off-by: HouraisanNEET <HouraisanNEET@users.noreply.github.com>
2021-06-25Validate the theming color also on CLIJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-06-16Fix default product name for old themesMorris Jobke
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2021-06-16Add dedicated product name to OCP\DefaultsJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-06-04Update php licensesJohn Molakvoæ (skjnldsv)
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2021-03-09Allow webp as background imageste101
2021-02-18Bump nextcloud/coding-standard from 0.3.0 to 0.5.0dependabot-preview[bot]
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>
2021-01-11Remove unneeded casts that were found by PsalmMorris Jobke
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>
2020-12-16Update all license headers for Nextcloud 21Christoph Wurst
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-11-30Store scss variables under a different prefix for each theming config versionJulius Härtl
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>
2020-11-23Optimize chek if background is themedJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-11-19Fix setting images through occ for themingJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-11-13override default dashboard background with theming oneJulien Veyssier
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>
2020-11-09Shortcut to avoid file system setup when generating the logo URLMorris Jobke
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>
2020-11-04Cleanup ImageManager::getImage()Morris Jobke
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2020-11-03Add gif to if-statement to not convertJacob Neplokh
- 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>
2020-10-25Enable theming background transparencyJohn Molakvoæ (skjnldsv)
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2020-10-16manifest to report correct favicon sizenhirokinet
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>
2020-10-15Allow setting favicon with a .ico fileGary Kim
Signed-off-by: Gary Kim <gary@garykim.dev>
2020-10-05Format code to a single space around binary operatorsChristoph Wurst
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-09-24Add occ command to set theming valuesJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-08-24Update the license headers for Nextcloud 20Christoph Wurst
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-07-24Use IBootstrap for the app themingMorris Jobke
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2020-06-26Precalculate the primary element color for dark mode tooJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-06-08Set serverBackground if it is a custom background or default hubGretaD
Signed-off-by: GretaD <gretadoci@gmail.com>
2020-06-05Move theming js to initial stateRoeland Jago Douma
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>
2020-04-29Update license headers for 19Christoph Wurst
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-04-16Provide the proper language to the mailerRoeland Jago Douma
Else we can't properly translate the footer in the recipients e-mail language. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2020-04-10Format control structures, classes, methods and functionChristoph Wurst
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>
2020-04-09Remove trailing and in between spacesChristoph Wurst
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-04-09Unify function spacing to PSR2 recommendationChristoph Wurst
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-03-31Update the license headers for Nextcloud 19Christoph Wurst
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>