-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Theming: Add preview and hide undo buttons #770
Conversation
@juliushaertl, thanks for your PR! By analyzing the annotation information on this pull request, we identified @schiessle, @LukasReschke and @nickvergessen to be potential reviewers |
OK, CI seems to be happy, please review. cc @jancborchardt @nextcloud/theming |
public function getLogo() { | ||
$logo = $this->config->getAppValue('theming', 'logoMime'); | ||
$pathToLogo = $this->config->getSystemValue('datadirectory', \OC::$SERVERROOT . '/data/') . '/themedinstancelogo'; | ||
if(!$logo || !file_exists($pathToLogo)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you use IRootFolder
for that? @schiessle told me about some object store magic and so on that otherwise would not be compatible.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, always use the Nextcloud file system abstraction to make sure that it works with all underlying storages.
I like it 👍 @schiessle Mind taking a look at my remarks? Same as we had in the ThemingController itself |
I tested this and it works 👍 (only for translated slogans this doesn't work, because somehow the lib translation files aren't loaded -> but this is not caused by the code in here) |
As soon as the comments by @LukasReschke are addressed this can be merged. |
I've just pushed another commit. Please check if it is ok like this @LukasReschke @schiessle 😃 |
5447965
to
232cd38
Compare
Hmm tests are failing, but I don't have any idea why:
|
cc @icewind1991 any idea? 🚀 |
@@ -32,3 +32,17 @@ | |||
div#theming_settings_msg { | |||
margin-left: 10px; | |||
} | |||
|
|||
#theming-preview { | |||
width:230px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a nitpick, but coding style here and below: Always a space after the :
colon. ;)
232cd38
to
5eb5d1b
Compare
5eb5d1b
to
8e5eb01
Compare
any news here... @icewind1991 did you had a chance to look at the failing tests? |
8e5eb01
to
cc9dac3
Compare
cc9dac3
to
0e1b5d4
Compare
Ok, i've just rebased this to fix the conflicts with the new admin panel. Tests are still failing, but when I run "drone exec" locally everything works fine. Could there be an issue with the CI server? |
It's in
usually not, because it also doesn't do anything different 😕 Let me try it locally too. |
Works here too ... I restarted the job at the drone instance ... maybe it was a bad race condition due to load. |
I guess it's related to the loading order |
0e1b5d4
to
91e8b33
Compare
max-width: 20%; | ||
max-height: 20%; | ||
margin-top: 20px; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
new line missing
ba6698d
to
086b6ab
Compare
OK, I'll close this PR and try to split it up and resubmit. |
This pull requests adds the following to the theming app: