summaryrefslogtreecommitdiffstats
path: root/apps/theming/tests
Commit message (Collapse)AuthorAgeFilesLines
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-163-1/+2
| | | | 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-18/+5
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Shortcut to avoid file system setup when generating the logo URLMorris Jobke2020-11-091-6/+0
| | | | | | 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>
* Remove ISection in favor of IIconSectionMorris Jobke2020-10-281-2/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix theming manifest testsJohn Molakvoæ (skjnldsv)2020-10-201-1/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Format code to a single space around binary operatorsChristoph Wurst2020-10-053-6/+6
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix testsJulius Härtl2020-09-242-90/+91
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-244-2/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to ↵Morris Jobke2020-08-126-38/+38
| | | | | | \PHPUnit\Framework\MockObject\MockObject Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix PHP CSJoas Schilling2020-06-261-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Precalculate the primary element color for dark mode tooJoas Schilling2020-06-262-2/+17
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Move theming js to initial stateRoeland Jago Douma2020-06-051-75/+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>
* compress some images with tinypng.comRuben Barkow-Kuder2020-05-225-0/+0
| | | | | Signed-off-by: Ruben Barkow-Kuder <github@r.z11.de> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Update license headers for 19Christoph Wurst2020-04-295-0/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-108-14/+8
| | | | | | | | | | | | | | | 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-092-12/+12
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use exactly one empty line after the namespace declarationChristoph Wurst2020-04-091-1/+0
| | | | | | For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix (array) indent style to always use one tabChristoph 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/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #20170 from nextcloud/techdebt/remove-unused-importsChristoph Wurst2020-03-275-7/+0
|\ | | | | Remove unused imports
| * Remove unused importsChristoph Wurst2020-03-255-7/+0
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Use the shorter phpunit syntax for mocked return valuesChristoph Wurst2020-03-251-20/+20
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headers for 18Christoph Wurst2019-12-202-2/+0
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-0510-17/+37
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix the theming testsRoeland Jago Douma2019-12-041-0/+6
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Mode to modern phpunitRoeland Jago Douma2019-11-276-11/+11
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make phpunit8 compatibleRoeland Jago Douma2019-11-2710-11/+11
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* add var for theming images , advanced options (#16815)John Molakvoæ2019-11-262-5/+13
|\ | | | | add var for theming images , advanced options
| * fix test for new css vars / logoheader and faviconGuillaume COMPAGNON2019-11-241-3/+11
| | | | | | | | Signed-off-by: Guillaume COMPAGNON <gcompagnon@outlook.com>
| * add var for theming images , advanced optionsGuillaume COMPAGNON2019-11-241-2/+2
| | | | | | | | Signed-off-by: Guillaume COMPAGNON <gcompagnon@outlook.com>
* | Some php-cs fixesRoeland Jago Douma2019-11-226-11/+16
|/ | | | | | | | | | | * 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>
* CapabilitiesTests are not DB testsRoeland Jago Douma2019-09-041-1/+0
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Validate urls in theming settings and properly handle error messagesJulius Härtl2019-07-311-4/+14
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Fix light primary button stylingJulius Härtl2019-03-272-2/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Revert "Where is your data?"Roeland Jago Douma2019-03-202-0/+81
|
* Add guest navigation typeJulius Härtl2019-02-181-1/+13
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Move server info to theming sectionMichael Weimann2019-01-142-81/+0
| | | | Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
* Adapts the theming util to the new core logo image pathMichael Weimann2018-10-041-1/+1
| | | | Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
* Fixes the logo testMichael Weimann2018-10-031-2/+2
| | | | Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
* Updates inverted logo handling to work like the app iconsMichael Weimann2018-10-021-65/+2
| | | | Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
* Moves the logo files to logoMichael Weimann2018-10-022-5/+5
| | | | Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
* Switches the default logo color depending on the primary colorMichael Weimann2018-10-021-2/+65
| | | | Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
* Disables SVG favicon uploads when imagemagick is missing.Michael Weimann2018-09-052-2/+57
| | | | Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
* Fix capabilities testJulius Härtl2018-08-301-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Make the default element color for bright theming colors lighterJulius Härtl2018-08-301-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Theming: Fix footer testsJulius Härtl2018-08-271-7/+22
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Fixed theming testsJohn Molakvoæ (skjnldsv)2018-06-201-15/+15
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Theming update on urlJohn Molakvoæ (skjnldsv)2018-06-201-2/+2
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Merge pull request #9258 from nextcloud/theming-logo-pngMorris Jobke2018-06-155-28/+81
|\ | | | | Convert theming app logo to PNG to show it properly in emails