On 04.02.2016 11:34, Stefano Zamboni wrote: > Hi all > > first of all thank you for this really impressive piece of code.
Thanks. Appreciate that. > Premise: > I'm a contributor of Koozali SME server linux distribution > (http://www.koozali.org); ATM our distro is C6 based, but we (finally) > starting moving to C7 > we need to rethink/redo our server manager (from here S-M) web gui and > cockpit come to our attention. > > the idea is to use cockpit as a base for our S-M, but we need to know if > it supports some kind of customization.. we don't want to create "our" > cockpit, just enhance it via plugin, trying to stay adherent to the > upstream version Yup, Cockpit supports plugins and customization. You can add stuff to the sidebar, or dashboards to the top navbar: http://stef.thewalter.net/creating-plugins-for-the-cockpit-user-interface.html > I have some question: > 1) I know that branding is possible/quite easy, but, for example, I > didn't find any way to change the background color of the main bar, on > top of the page.. I see that all the style is inline.. is it a choiche? > is editing that code the only way to change colors/fonts and so on? On the login page most of the styling is inline, to very simply serve a page without authentication or requiring access to the packages. I think it should be able to put CSS in the branding with the flag "!important" that would override the styling on the login page. > 2) is there any way to "override" some features? for example, I'd like > to replace users' logic creation with mine; is it feasible? moreover, is > possible to disable/hide some elements (buttons or a single menu item in > the left bar)? Yes, definitely, each part of Cockpit is its own package, including the local user modification stuff. See 'cockpit-bridge --packages' for a list of the packages installed. Here's the documentation: http://cockpit-project.org/guide/latest/packages.html For example, if you put a package in /usr/local/share/cockpit/users (ie: the same name as the one installed by default in /usr/share/cockpit) then it'll be used in its place. > 3) OTOH, is there an easy way to enhance an available panel with some > custom buttons/elements? Yup, see this documentation: http://cockpit-project.org/guide/latest/packages.html Or this example: http://stef.thewalter.net/creating-plugins-for-the-cockpit-user-interface.html > IIUC, supposing that only root will have access to cockpit, I can > override an existing module just creating a new one > in ////root///.local/share/cockpit/ /dir.. am I right? Yes, that's possible. In addition see /usr/local/share/cockpit above. Stef _______________________________________________ cockpit-devel mailing list [email protected] https://lists.fedorahosted.org/admin/lists/[email protected]
