summaryrefslogtreecommitdiffstats
path: root/apps/theming/tests
Commit message (Collapse)AuthorAgeFilesLines
* addjust footer height when legal links are present. fixes #9572Arthur Schiwon2018-05-241-1/+2
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* also add a privacy linkArthur Schiwon2018-05-243-11/+100
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Backport of #9437Arthur Schiwon2018-05-183-2/+81
| | | | | | | | | | | | | | | | | | | | | | | | allow to specify a link to a legal notice Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de> fix tests Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de> fix undo for url-typed inputs and minor adjustments Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de> Use link not address in labels for URLs Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de> this file does not belong here Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Fix testsJulius Härtl2018-03-281-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Fix tests to use ICacheFactoryJulius Härtl2018-03-091-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* theming: handle not being in the serverrootKyle Fazzari2018-02-261-2/+24
| | | | | | | | | | | | | | Currently, the theming app assumes it's in the serverroot. However, with Nextcloud's flexibility regarding configurable app paths, this is not a safe assumption to make. If it happens to be an incorrect assumption, the theming app fails to work. Instead of relying on the serverroot, just use the path from the AppManager and utilize relative paths for assets from there. Fix #8462 Signed-off-by: Kyle Fazzari <kyrofa@ubuntu.com>
* Fix theming testsJulius Härtl2018-02-021-8/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* More detailed theming capabilitiesJulius Härtl2018-01-103-41/+82
| | | | | | This will allow clients to easily check if a custom background is used Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add colors to testsJulius Härtl2018-01-081-7/+13
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Fix testsRoeland Jago Douma2017-12-181-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix email buttons for white themeMorris Jobke2017-12-111-6/+10
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Theming: Fix tests for favicon containing multiple sizesJulius Härtl2017-11-131-3/+15
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Theming: Generate favicon sizes to avoid resizing issues done by the browserJulius Härtl2017-11-131-0/+3
| | | | | | fixes #5193 Signed-off-by: Julius Haertl <jus@bitgrid.net>
* Merge pull request #7112 from nextcloud/theming-imagemagick-hintMorris Jobke2017-11-091-0/+4
|\ | | | | Theming: add hint about favicon generation
| * Fix unit testsMorris Jobke2017-11-091-0/+4
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Merge pull request #6788 from staabm/masterLukas Reschke2017-11-081-2/+2
|\ \ | |/ |/| Prevent XSS in links which open a new browser window
| * Prevent XSS in links which open a new browser windowMarkus Staab2017-10-191-2/+2
| |
* | Theming: expose element color though capabilities APIJulius Härtl2017-11-071-0/+3
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Update license headersMorris Jobke2017-11-0611-43/+75
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Use ::class in test mocksMorris Jobke2017-10-244-7/+7
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Theming: Add tests for mimetype and upload error checksJulius Härtl2017-10-031-4/+158
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Theming: Handle errors on uploaded files properlyJulius Härtl2017-10-031-16/+25
|/ | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Fix testsJulius Härtl2017-09-121-6/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Use IAppManager instead of private APIJulius Härtl2017-09-121-1/+6
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add themed manifest.json to theming appJulius Härtl2017-09-121-0/+49
| | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
* Move theming related imagePath logic to ThemingDefaultsJulius Härtl2017-09-121-0/+32
| | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
* Fix tests for primary element colorJulius Härtl2017-09-041-1/+4
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Update background image to the one used on the websiteJan-Christoph Borchardt2017-08-291-1/+1
| | | | Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
* Add the primary font color to the capabilities as wellJoas Schilling2017-08-151-8/+15
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Provide "server.css" URL in ThemingController responseDaniel Calviño Sánchez2017-08-101-1/+38
| | | | | | | | | | | | | | Pull request #5429 made cached SCSS files depend on a hash of the base URL, so the "/css/core/server.css" file does no longer exist. The "server.css" URL must be known by the Theming app in order to update the stylesheets when previewing the changes to the theme, so the DataResponse from the controller now provides the full URL to the "server.css" file that has to be reloaded (if any). The "server.css" URL provided by the response will be taken into account by the JavaScript front-end in a following commit. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Split updateStylesheet tests for success and errorDaniel Calviño Sánchez2017-08-101-17/+51
| | | | | | | | This is a preparatory step for a following commit in which the properties present in the response will change depending on whether the request was successful or not. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Unify DataResponse format with its uses in the rest of the fileDaniel Calviño Sánchez2017-08-101-6/+9
| | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Add Android and iOS URLs to theming appMorris Jobke2017-07-191-0/+61
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Prefer custom theme over theming appJulius Härtl2017-07-121-0/+20
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #4910 from nextcloud/make-the-logo-smaller-creamLukas Reschke2017-05-191-5/+9
|\ | | | | Fix logo being too big on log in page, fix #4585
| * Scale logo only for custom onesJulius Härtl2017-05-191-5/+9
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Merge pull request #4888 from nextcloud/theming-fallback-iconsLukas Reschke2017-05-181-7/+33
|\ \ | | | | | | Fallback to default favicon
| * | Inject FileAccessHelper for proper testingJulius Härtl2017-05-181-1/+14
| | | | | | | | | | | | 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-6/+19
| |/ | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Merge pull request #4918 from nextcloud/theming-capabilities-plain-backgroundMorris Jobke2017-05-171-25/+36
|\ \ | | | | | | OCS Return color when theming uses no background image
| * | Return color when theming uses no background imageJulius Härtl2017-05-171-25/+36
| |/ | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Fix testsJulius Härtl2017-05-171-5/+2
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Use appdata logo when generating iconsJulius Härtl2017-05-172-16/+35
|/ | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add function to request SVG or regular fallback imageLukas Reschke2017-05-081-3/+11
| | | | | | Fixes https://github.com/nextcloud/server/issues/4647 Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Fix tests for theming backgroundColorJulius Härtl2017-05-082-5/+49
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Fix invalid theming URLsMorris Jobke2017-05-051-8/+19
| | | | | | | * logo and background image had the cache buster applied twice: background-image: url(http://192.168.99.100/server/core/img/logo.svg?v=0?v=0); Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Delete theming images when logo/background is reset to defaultJulius Härtl2017-04-301-0/+50
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Make sure that ThemingDefaults uses the correct default values from \OC_DefaultsJulius Härtl2017-04-291-50/+31
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Mock itJoas Schilling2017-04-251-12/+39
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>