Add plugin support to Sustone
|Assignee:||Hector Sanjuan||% Done:|
|Category:||Sunstone||Estimated time:||25.00 hours|
|Target version:||Release 3.0|
Prepare the Sunstone component to be extensible and customizable through plugins. Plugins should be able to add tabs to the main window and the info panels, add special buttons and actions and change the behaviour of standard ones.
Feature #507: Started reorganizing code.
- sunstone.js will be the main interface to use by plugins. It will set up the
layout on document ready(). It also contains the configuration now.
- sunstone-util.js will contain util functions for the plugins and the datatable
- plugins/* will contain the plugins
Feature #507: Progressions in the plugin model. Simple dashboard plugin and
hosts plugin added
Feature #507: Action buttons, custom buttons, list buttons, confirm dialogs
and confirm with select dialogs seem to be working now.
Feature #507: Set up info dialogs configuration. Set up host tab create
dialogs for hosts and clusters. Small Bugfixes.
Feature #507: Finished coding the rest of plugins (they are untested and
probably full of small bugs)
Feature #507: Fixed bugs, typos, image attributes dialogs, dashboard
This makes it an usable version , though there are some small fixes left.
Feature #507: Improved and fixed small bugs. Autorefresh and action conditions
now in place.
Feature #507: Finished reviewing code and adding comments. Small fixes here
feature #507: Made sunstone.js unaware of the existence of dataTables.
DataTables are a very particular object which is part of the
plugins. Therefore instead of having sunstone.js take a dataTable and find out
which elements are checked in order to run an action on them, this is now work
to be done by the plugins. They can use a helper called
getSelectedNodes(dataTable) to do that. Actions now define an "elements"
function which returns an array of elements, instead of having a "dataTable"
returning the dataTable of the plugin. runActionOnDatatableNodes not needed anymore.
Feature #507: Some fixes.
Fixed a couple of bad variable names in update/remove tab functions. Also
forced button enhancement when recreating the button sets.
Feature #507: Removed unused HTML in index.html. Added a commented line for
the dummy plugin.
Feature #507: Make Sunstone public functions homogeneus regarding parameters
names. Also fixed some typos.