summaryrefslogtreecommitdiffstats
path: root/apps/theming
Commit message (Collapse)AuthorAgeFilesLines
* Workaround for PHP bug when calling imagescaleJulius Haertl2016-11-221-1/+3
| | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
* Merge pull request #840 from nextcloud/theming-icon-endpointMorris Jobke2016-11-1819-4/+1330
|\ | | | | Add dynamic icon creation
| * Use IAppManager instead of OC_AppJulius Haertl2016-11-185-36/+81
| | | | | | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
| * Error handling and tests if file was not foundJulius Haertl2016-11-184-51/+96
| | | | | | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
| * Sanitize input and small fixesJulius Haertl2016-11-187-45/+61
| | | | | | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
| * Replace null return with NotFoundExceptionJulius Haertl2016-11-184-21/+27
| | | | | | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
| * Fix icon-folder cssJulius Haertl2016-11-182-6/+6
| | | | | | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
| * Fix svg resizing and remove deprecated method callJulius Haertl2016-11-182-4/+11
| | | | | | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
| * Improve cachingJulius Haertl2016-11-185-31/+69
| | | | | | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
| * Caching for icon files using AppDataJulius Haertl2016-11-186-93/+433
| | | | | | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
| * Theming: Code cleanup and cache buster for mime iconsJulius Haertl2016-11-188-75/+33
| | | | | | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
| * Check if dynamic icons can be usedJulius Haertl2016-11-182-37/+90
| | | | | | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
| * Add IconBuilder class to encapsulate icon generationJulius Haertl2016-11-185-127/+341
| | | | | | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
| * Improve unit tests for image generationJulius Haertl2016-11-1811-151/+207
| | | | | | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
| * Theming: Add IconController testsJulius Haertl2016-11-182-19/+207
| | | | | | | | 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: Add colorized icon css from icons.cssJulius Haertl2016-11-182-0/+40
| | | | | | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
| * Theming: Fix default parameters in icon routesJulius Haertl2016-11-182-3/+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-182-32/+72
| | | | | | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
| * Theming: Add dynamic icon and favicon endpointsJulius Haertl2016-11-182-0/+254
| | | | | | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
* | Merge pull request #768 from nextcloud/s3-objectstoreRobin Appelman2016-11-182-30/+46
|\ \ | |/ |/| Add S3 objectstore backend
| * Fix themeing unit testsRoeland Jago Douma2016-11-161-20/+29
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
| * fix theming images when using primary storageRobin Appelman2016-11-161-10/+17
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #2151 from nextcloud/theming-fixesMorris Jobke2016-11-162-30/+53
|\ \ | | | | | | theming: move reset button into field and only show when focused
| * | theming: move reset button into field and only show when focusedJan-Christoph Borchardt2016-11-162-30/+53
| | | | | | | | | | | | Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
* | | Revert "Fix #1782"Julius Haertl2016-11-162-5/+5
| |/ |/| | | | | | | | | This reverts commit bc5268bdc84c9c9f302914ebb1b5304b614dfc2e. Signed-off-by: Julius Haertl <jus@bitgrid.net>
* | Use 11.0 instead 9.2Lukas Reschke2016-11-151-1/+1
|/ | | | | | As discussed we're changing the version from 9.2 to 11.0 to make some more sense. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Fix #1782John Molakvoæ2016-11-022-5/+5
| | | | | | | | Fix checkbox left margin glitch Fix tests fix unit tests Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #1903 from nextcloud/fix-log-in-buttonLukas Reschke2016-10-312-10/+3
|\ | | | | remove slight transparency of primary action button, ref #1615
| * also fix log in button confirm arrow when theming, fix #1615Jan-Christoph Borchardt2016-10-252-0/+3
| | | | | | | | Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
| * remove slight transparency of primary action button, ref #1615Jan-Christoph Borchardt2016-10-252-10/+0
| | | | | | | | Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
* | Add ContentSecurityPolicyNonceManagerLukas Reschke2016-10-241-1/+1
| | | | | | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* | Add support for CSP noncesLukas Reschke2016-10-241-0/+1
|/ | | | | | | | | | | | | | | | | CSP nonces are a feature available with CSP v2. Basically instead of saying "JS resources from the same domain are ok to be served" we now say "Ressources from everywhere are allowed as long as they add a `nonce` attribute to the script tag with the right nonce. At the moment the nonce is basically just a `<?php p(base64_encode($_['requesttoken'])) ?>`, we have to decode the requesttoken since `:` is not an allowed value in the nonce. So if somebody does on their own include JS files (instead of using the `addScript` public API, they now must also include that attribute.) IE does currently not implement CSP v2, thus there is a whitelist included that delivers the new CSP v2 policy to newer browsers. Check http://caniuse.com/#feat=contentsecuritypolicy2 for the current browser support list. An alternative approach would be to just add `'unsafe-inline'` as well as `'unsafe-inline'` is ignored by CSPv2 when a nonce is set. But this would make this security feature unusable at all in IE. Not worth it at the moment IMO. Implementing this offers the following advantages: 1. **Security:** As we host resources from the same domain by design we don't have to worry about 'self' anymore being in the whitelist 2. **Performance:** We can move oc.js again to inline JS. This makes the loading way quicker as we don't have to load on every load of a new web page a blocking dynamically non-cached JavaScript file. If you want to toy with CSP see also https://csp-evaluator.withgoogle.com/ Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Svgo optimizationskjnldsv2016-09-271-4/+1
| | | | Signed-off-by: John Molakvoæ <fremulon@protonmail.com>
* Add icon for the theming appFelix Epp2016-09-071-0/+4
|
* Add image URLs and testsJoas Schilling2016-09-063-1/+225
|
* Add theming information to capabilities for the clientJoas Schilling2016-09-052-0/+63
|
* Fix ThemingDefaults getMock deprecationRoeland Jago Douma2016-08-311-5/+5
|
* Theming: Show loading spinner while uploading filesJulius Haertl2016-08-302-8/+19
|
* Theming: fix primary button for bright colorsJulius Haertl2016-08-292-35/+77
|
* Update AdminTest.phpiamfool2016-08-291-3/+3
|
* Update Admin.phpiamfool2016-08-281-1/+1
|
* Use temporary file as cacheLukas Reschke2016-08-272-4/+16
|
* Increase theming performanceLukas Reschke2016-08-273-7/+92
| | | | | | | | 1. Set proper caching headers (`Pragma: cache`) 2. Resize image proportionally to a max size of 1920px 3. Store images with progressive mode This resizes a previous 2.8 MB picture to 300kb and makes it rendering going down from 11 seconds to less than 1 here. And future requests won't have to download the file newly.
* Theming: Preview for page titleJulius Haertl2016-08-261-0/+3
|
* Merge pull request #771 from nextcloud/theming-fixesRoeland Jago Douma2016-08-262-4/+121
|\ | | | | Theming: Fix missing color usage
| * Theming: Adjust jquery ui elementsJulius Haertl2016-08-262-2/+46
| |
| * Theming: colorize primary buttonsJulius Haertl2016-08-262-2/+75
| |