Uh oh!
There was an error while loading. Please reload this page.
Theming app - #59
Conversation
MariusBluem
commented
Jun 12, 2016
Will we also integrate generating branded clients like it was possible with ownBrander? |
blizzz
commented
Jun 12, 2016
PR against master → milestone 10. backport will be 9. |
MorrisJobke
commented
Jun 13, 2016
Branding clients is a bit harder, because you need a huge toolchain to build it. So this is limited to the web UI for now. |
jancborchardt
commented
Jun 13, 2016
@schiessle when rebasing this against master, I get an internal server error. Can you check this out and the color picker as well? cc @MorrisJobke@LukasReschke for JS help maybe ;) |
schiessle
commented
Jun 13, 2016
working at it at the moment. Seems to have more influences at the core as expected and also breaks initial installation at the moment. Let's see what i can do. |
2362856 to
ef66221Compareschiessle
commented
Jun 13, 2016
@jancborchardt please have a look. The basic functionality is now there but we can probably improve the visual presentation. I don't really understand why I can't update the logo directly after it was uploaded: https://github.com/nextcloud/server/pull/59/files#diff-7336f3dab52c02ef94f856620590f56bR34@blizzz do you have a idea why this doesn't work? |
👎 remote code execution. You can upload a PHP file as icon (e.g. phpinfo.php) and open it via |
blizzz
commented
Jun 13, 2016
For one, you need to wrap the path into logos[i].style.background="url('"+OC.getRootPath()+"/themes/theming-app/core/img/"+value+"')"; |
schiessle
commented
Jun 14, 2016
Thanks @blizzz, this works! @LukasReschke What's the best way to prevent people from uploading PHP files als background image? Maybe we can also just block all |
| * | ||
| */ | ||
| if(!file_exists(\OC::$SERVERROOT . '/themes/theming-app')) { |
There was a problem hiding this comment.
yes, I check it here https://github.com/nextcloud/server/pull/59/files#diff-d1ebf4e994bc54194a285284dda2224aR40
But good point to also add a check here to only enable the theme if we can write to the themes folder.
94c1c71 to
b230bfcCompareLukasReschke
commented
Jun 16, 2016
As discussed with @schiessle I'll hijack this branch with some security hardenings for this feature. |
joergmschulz
commented
Jun 16, 2016
Do you already have some kind of specification document for theming? This is the area where I could help - if somebody gives me a hint for a starting point. |
schiessle
commented
Jun 17, 2016
@joergmschulz great! 😄 Did you already saw our documentation repository? Would be great to have for the administration documentation a short description of the theming app, with a screenshot and so on: https://github.com/nextcloud/documentation/tree/master/admin_manual Would be great if you could help with this! |
jancborchardt
commented
Jun 17, 2016
@joergmschulz although the theming app ideally should be as self-explanatory as possible. :) Feedback on how it works is always good! For now we stick to the core 5 things:
|
Also adds support for having custom login backgrounds
AppManager has a dependency on Nc being installed
Otherwise dropping something somewhere can by mistake upload the file and make it available
The app is now enabled by default
LukasReschke
commented
Jun 27, 2016
#59 (comment) all done |
jancborchardt
commented
Jun 27, 2016
Should I also create new issues for the other 2 points in #59 (comment) or are they planned to be fixed as part of this? cc @LukasReschke@schiessle |
MariusBluem
commented
Jun 27, 2016
at least the second point with the non-working button should be fixed here 😁 |
MorrisJobke
commented
Jun 27, 2016
Tested and works 👍 |
LukasReschke
commented
Jun 27, 2016
@jancborchardt check fe1089e and 4b79420. Testing appreciated. |
Great stuff! 👍 works and looks nicely now |
jancborchardt
commented
Jun 28, 2016
Yeeha, awesome work! :) |
@schiessle let’s get a work-in-progress pull request going here. ;)
I found 2 good color pickers:
Also todo: